/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --color-bg: #fff;
    --color-text: #333;
    --color-primary: #2563eb;
    --color-primary-dark: #1d4ed8;
    --color-section-bg: #f8fafc;
    --color-footer-bg: #1f2937;
    --color-footer-text: #fff;
    --color-card-bg: #fff;
    --color-card-shadow: rgba(0, 0, 0, 0.05);
    --color-link: #2563eb;
    --color-link-hover: #1d4ed8;
    --color-tag-bg: #e0e7ff;
    --color-tag-text: #3730a3;
    --color-navbar-bg: rgba(255, 255, 255, 0.95);
    --color-input-bg: #fff;
    --color-input-border: #e5e7eb;
    --color-input-text: #333;
}

.dark-mode {
    --color-bg: #181a1b;
    --color-text: #e5e7eb;
    --color-primary: #60a5fa;
    --color-primary-dark: #2563eb;
    --color-section-bg: #23272a;
    --color-footer-bg: #111418;
    --color-footer-text: #e5e7eb;
    --color-card-bg: #23272a;
    --color-card-shadow: rgba(0,0,0,0.25);
    --color-link: #60a5fa;
    --color-link-hover: #2563eb;
    --color-tag-bg: #374151;
    --color-tag-text: #a5b4fc;
    --color-navbar-bg: rgba(30, 32, 34, 0.98);
    --color-input-bg: #23272a;
    --color-input-border: #374151;
    --color-input-text: #e5e7eb;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--color-text);
    overflow-x: hidden;
    background: var(--color-bg);
    transition: background 0.3s, color 0.3s;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: var(--color-navbar-bg) !important;
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 1rem 0;
    transition: all 0.3s ease;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo a {
    display: flex;
    align-items: center;
    text-decoration: none;
    transition: transform 0.3s ease;
}

.nav-logo a:hover {
    transform: scale(1.05);
}

.logo-img {
    height: 40px;
    width: auto;
    object-fit: contain;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    color: var(--color-link);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: var(--color-link-hover);
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--color-primary);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.bar {
    width: 25px;
    height: 3px;
    background-color: var(--color-text);
    margin: 3px 0;
    transition: 0.3s;
}

.nav-socials {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-left: 1.5rem;
}

.nav-socials a {
    color: var(--color-link);
    font-size: 1.3rem;
    transition: color 0.2s;
}

.nav-socials a:hover {
    color: var(--color-link-hover);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, var(--color-primary) 0%, #764ba2 100%);
    color: white;
    padding-top: 80px;
    transition: background 0.3s;
}

.dark-mode .hero {
    background: linear-gradient(135deg, #23272a 0%, #181a1b 100%);
    color: var(--color-text);
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-title, .hero-subtitle, .hero-description {
    color: inherit;
    transition: color 0.3s;
}

.dark-mode .hero-title, .dark-mode .hero-subtitle, .dark-mode .hero-description {
    color: var(--color-text);
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    animation: fadeInUp 1s ease;
}

.hero-subtitle {
    font-size: 1.5rem;
    font-weight: 400;
    margin-bottom: 1.5rem;
    opacity: 0.9;
    animation: fadeInUp 1s ease 0.2s both;
}

.hero-description {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    opacity: 0.8;
    line-height: 1.8;
    animation: fadeInUp 1s ease 0.4s both;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    animation: fadeInUp 1s ease 0.6s both;
}

.btn {
    padding: 12px 30px;
    border: none;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    display: inline-block;
}

.btn-primary {
    background: var(--color-primary);
    color: white;
}

.btn-primary:hover {
    background: var(--color-primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(37, 99, 235, 0.3);
}

.btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.dark-mode .hero-buttons .btn-secondary {
    color: var(--color-primary);
    border: 2px solid var(--color-primary);
    background: transparent;
}

.dark-mode .hero-buttons .btn-secondary:hover {
    background: var(--color-primary);
    color: #fff;
}

.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
    animation: fadeInRight 1s ease 0.8s both;
}

.profile-image-container {
    width: 350px;
    height: 350px;
    border-radius: 50%;
    overflow: hidden;
    border: 5px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.profile-image-container:hover {
    transform: scale(1.05);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.3);
}

.profile-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* Section Styles */
section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 3rem;
    color: var(--color-text);
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 2px;
}

/* About Section */
.about {
    background: var(--color-section-bg);
}

.about-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 4rem;
    align-items: start;
}

.about-text p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--color-text);
}

.about-stats {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.stat-item {
    text-align: center;
    padding: 2rem;
    background: var(--color-card-bg);
    border-radius: 15px;
    box-shadow: 0 4px 6px var(--color-card-shadow);
    transition: transform 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-5px);
}

.stat-item h3 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 0.5rem;
}

.stat-item p {
    color: var(--color-text);
    font-weight: 500;
}

/* Skills Section */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.skill-card {
    background: var(--color-card-bg);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 4px 6px var(--color-card-shadow);
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid #e5e7eb;
}

.skill-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px var(--color-card-shadow);
}

.skill-card i {
    font-size: 3rem;
    color: var(--color-primary);
    margin-bottom: 1rem;
}

.skill-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--color-text);
}

.skill-card p {
    color: var(--color-text);
    line-height: 1.6;
}

/* Services Section */
.services {
    background: var(--color-section-bg);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.service-card {
    background: var(--color-card-bg);
    padding: 2.5rem;
    border-radius: 15px;
    box-shadow: 0 4px 6px var(--color-card-shadow);
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid #e5e7eb;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px var(--color-card-shadow);
}

.service-card i {
    font-size: 3rem;
    color: var(--color-primary);
    margin-bottom: 1.5rem;
}

.service-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--color-text);
}

.service-card p {
    color: var(--color-text);
    line-height: 1.6;
}

/* Portfolio Section */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.portfolio-item {
    background: var(--color-card-bg);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 6px var(--color-card-shadow);
    transition: all 0.3s ease;
    border: 1px solid #e5e7eb;
}

.portfolio-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px var(--color-card-shadow);
}

.portfolio-image {
    height: 200px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    color: white;
}

.portfolio-content {
    padding: 2rem;
}

.portfolio-content h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--color-text);
}

.portfolio-content p {
    color: var(--color-text);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.portfolio-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.portfolio-tags span {
    background: var(--color-tag-bg);
    color: var(--color-tag-text);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 500;
}

/* Contact Section */
.contact {
    background: var(--color-section-bg);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    background: var(--color-card-bg);
    border-radius: 15px;
    box-shadow: 0 4px 6px var(--color-card-shadow);
}

.contact-item i {
    font-size: 1.5rem;
    color: var(--color-primary);
    width: 40px;
    text-align: center;
}

.contact-item h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
    color: var(--color-text);
}

.contact-item p {
    color: var(--color-text);
}

.contact-form {
    background: var(--color-card-bg);
    padding: 2.5rem;
    border-radius: 15px;
    box-shadow: 0 4px 6px var(--color-card-shadow);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    background: var(--color-input-bg, #fff);
    color: var(--color-input-text, #333);
    border: 2px solid var(--color-input-border, #e5e7eb);
    border-radius: 10px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
    font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-primary);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #888;
    opacity: 1;
}

.dark-mode .form-group input::placeholder,
.dark-mode .form-group textarea::placeholder {
    color: #aaa;
    opacity: 1;
}

/* Footer */
.footer {
    background: var(--color-footer-bg);
    color: var(--color-footer-text);
    text-align: center;
    padding: 2rem 0;
}

.footer-connect-label {
    text-align: center;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    letter-spacing: 0.01em;
}

.back-to-top-btn {
    margin-top: 2rem;
    display: block;
    background: var(--color-primary);
    color: white;
    border: none;
    border-radius: 24px;
    padding: 0.7rem 2.2rem;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s, box-shadow 0.2s;
    box-shadow: 0 2px 8px rgba(37,99,235,0.08);
}

.back-to-top-btn:hover {
    background: var(--color-primary-dark);
    box-shadow: 0 4px 16px rgba(37,99,235,0.15);
}

@media (max-width: 600px) {
    .back-to-top-btn {
        width: 100%;
        max-width: 320px;
        font-size: 0.98rem;
        padding: 0.7rem 0;
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: white;
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        padding: 2rem 0;
    }

    .nav-menu.active {
        left: 0;
    }

    .logo-img {
        height: 35px;
    }

    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-buttons {
        justify-content: center;
        flex-wrap: wrap;
    }

    .profile-image-container {
        width: 280px;
        height: 280px;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .about-stats {
        flex-direction: row;
        justify-content: space-around;
    }

    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .skills-grid,
    .services-grid,
    .portfolio-grid {
        grid-template-columns: 1fr;
    }

    .section-title {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .logo-img {
        height: 30px;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1.2rem;
    }

    .profile-image-container {
        width: 250px;
        height: 250px;
    }

    .about-stats {
        flex-direction: column;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .btn {
        width: 100%;
        max-width: 250px;
        text-align: center;
    }
}

/* Blogs Section */
.blogs {
    background: var(--color-section-bg);
}

.blogs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.blog-card {
    background: var(--color-card-bg);
    border-radius: 15px;
    box-shadow: 0 4px 6px var(--color-card-shadow);
    padding: 2rem;
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.blog-card:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 20px 25px rgba(37,99,235,0.08);
}

.blog-meta {
    margin-bottom: 0.5rem;
    color: var(--color-text);
    font-size: 0.95rem;
}

.blog-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: 0.75rem;
}

.blog-desc {
    color: var(--color-text);
    margin-bottom: 1.5rem;
    flex: 1 1 auto;
}

.blog-link {
    color: var(--color-link);
    font-weight: 500;
    text-decoration: none;
    transition: color 0.2s;
    align-self: flex-start;
}

.blog-link:hover {
    color: var(--color-link-hover);
    text-decoration: underline;
}

@media (max-width: 768px) {
    .blogs-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .blog-post-content-wrap {
        padding-left: 2rem;
        padding-right: 2rem;
    }
}

.footer-socials {
    display: flex;
    justify-content: center;
    gap: 1.2rem;
    margin-top: 1rem;
}

.footer-socials a {
    color: var(--color-link);
    font-size: 1.4rem;
    transition: color 0.2s;
}

.footer-socials a:hover {
    color: var(--color-link-hover);
}

.footer-socials img {
    height: 1.2rem;
    width: 1.2rem;
    vertical-align: middle;
    border-radius: 3px;
    margin-top: -2px;
}

.dark-mode-toggle-header {
    margin-left: 1.5rem;
    background: #23272a;
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 2.5rem;
    height: 2.5rem;
    font-size: 1.2rem;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, color 0.2s, box-shadow 0.2s;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
.dark-mode-toggle-header:hover {
    background: var(--color-primary);
    color: #fff;
}

.dark-mode-toggle-floating {
    position: fixed;
    bottom: 5.5rem;
    right: 1.35rem;
    z-index: 2000;
    background: #23272a;
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 3rem;
    height: 3rem;
    font-size: 1.5rem;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(0,0,0,0.18);
    transition: background 0.2s, color 0.2s, box-shadow 0.2s;
}
.dark-mode-toggle-floating:hover {
    background: var(--color-primary);
    color: #fff;
    box-shadow: 0 8px 24px rgba(37,99,235,0.18);
}
@media (max-width: 600px) {
    .dark-mode-toggle-floating {
        bottom: 4.5rem;
        right: 1.5rem;
        width: 2.5rem;
        height: 2.5rem;
        font-size: 1.1rem;
    }
} 