/* Variables & Reset */
:root {
    --primary-color: #2563eb;
    --secondary-color: #1e293b;
    --accent-color: #3b82f6;
    --neon-blue: #00d4ff;
    --neon-purple: #a855f7;
    --text-dark: #334155;
    --text-light: #f8fafc;
    --bg-light: #f1f5f9;
    --bg-white: #ffffff;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    scroll-behavior: smooth;
}


a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* Layout Utilities */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

.section { padding: 80px 0; }
.bg-light { background-color: var(--bg-light); }
.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 50px;
    color: var(--secondary-color);
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--primary-color);
    margin: 10px auto 0;
}

/* ============================================
   MODERN HIGH-TECH NAVIGATION
   ============================================ */

/* Navbar Base Styles */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    background: transparent;
}

/* Glassmorphism effect when scrolled */
.navbar.scrolled {
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
    position: relative;
}

/* Progress Indicator */
.nav-indicator {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--neon-blue), var(--neon-purple));
    width: 0%;
    transition: width 0.3s ease;
    box-shadow: 0 0 10px var(--neon-blue);
}

/* Logo Styling */
.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 4px;
    transition: var(--transition);
    position: relative;
    z-index: 10;
}

.logo-bracket {
    color: var(--neon-blue);
    font-size: 1.8rem;
    font-weight: 400;
    opacity: 0.8;
    transition: var(--transition);
}

.logo-accent {
    background: linear-gradient(135deg, var(--neon-blue), var(--neon-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.logo:hover .logo-bracket {
    color: var(--neon-purple);
    transform: scale(1.1);
}

/* Navigation Links Container */
.nav-links {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0;
    margin: 0;
}

.nav-links li {
    list-style: none;
}

/* Individual Nav Links */
.nav-link {
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    color: rgba(255, 255, 255, 0.85);
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 8px;
}

.nav-link::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--neon-blue), var(--neon-purple));
    transform: translateX(-50%);
    transition: width 0.3s ease;
}

.nav-link:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.05);
}

.nav-link:hover::before {
    width: 60%;
}

/* Contact Me Button */
.nav-contact-me {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 28px;
    margin-left: 20px;
    background: linear-gradient(135deg, var(--neon-blue), var(--neon-purple));
    color: #fff;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.95rem;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(0, 212, 255, 0.3);
}

.nav-contact-me::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.nav-contact-me:hover::before {
    left: 100%;
}

.nav-contact-me:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 212, 255, 0.5);
}

.btn-icon {
    transition: transform 0.3s ease;
}

.nav-contact-me:hover .btn-icon {
    transform: translateX(4px);
}

/* Hamburger Menu */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    padding: 10px;
    z-index: 10;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: var(--transition);
}

.hamburger:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--neon-blue);
}

.hamburger-line {
    width: 28px;
    height: 3px;
    background: linear-gradient(90deg, var(--neon-blue), var(--neon-purple));
    border-radius: 3px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 0 8px var(--neon-blue);
}

/* Hamburger Animation */
.hamburger.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.hamburger.active .hamburger-line:nth-child(2) {
    opacity: 0;
    transform: translateX(-20px);
}

.hamburger.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(8px, -8px);
}

/* Mobile Navigation Styles */
@media (max-width: 768px) {
    .navbar .container {
        height: 70px;
    }

    .hamburger {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 70px;
        right: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: rgba(15, 23, 42, 0.98);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: flex-start;
        padding: 40px 20px;
        gap: 0;
        transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        overflow-y: auto;
        border-left: 1px solid rgba(255, 255, 255, 0.1);
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links li {
        width: 100%;
        opacity: 0;
        transform: translateX(20px);
        animation: slideInRight 0.4s ease forwards;
    }

    .nav-links.active li:nth-child(1) { animation-delay: 0.1s; }
    .nav-links.active li:nth-child(2) { animation-delay: 0.15s; }
    .nav-links.active li:nth-child(3) { animation-delay: 0.2s; }
    .nav-links.active li:nth-child(4) { animation-delay: 0.25s; }
    .nav-links.active li:nth-child(5) { animation-delay: 0.3s; }

    @keyframes slideInRight {
        to {
            opacity: 1;
            transform: translateX(0);
        }
    }

    .nav-link {
        width: 100%;
        padding: 18px 24px;
        font-size: 1.1rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
        justify-content: space-between;
    }

    .nav-link::before {
        display: none;
    }

    .nav-link::after {
        content: '→';
        opacity: 0;
        transition: all 0.3s ease;
        color: var(--neon-blue);
    }

    .nav-link:hover::after {
        opacity: 1;
        transform: translateX(5px);
    }

    .nav-contact-me {
        width: 100%;
        margin: 20px 0 0 0;
        justify-content: center;
        padding: 18px 28px;
        font-size: 1.1rem;
    }

    .logo {
        font-size: 1.3rem;
    }

    .logo-bracket {
        font-size: 1.5rem;
    }
}

/* Tablet Responsive */
@media (max-width: 991px) and (min-width: 769px) {
    .nav-links {
        gap: 4px;
    }

    .nav-link {
        padding: 10px 14px;
        font-size: 0.9rem;
    }

    .nav-contact-me {
        padding: 10px 20px;
        margin-left: 10px;
        font-size: 0.9rem;
    }
}

/* ============================================
   END NAVIGATION STYLES
   ============================================ */

/* ============================================
   MODERNIZED BUTTON STYLES - ALL CONSISTENT
   ============================================ */

.btn-primary, .btn-secondary, .btn-submit {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 32px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    border: none;
    cursor: pointer;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
}

.btn-primary, .btn-submit {
    background: linear-gradient(135deg, var(--neon-blue), var(--neon-purple));
    color: white;
    box-shadow: 0 4px 15px rgba(0, 212, 255, 0.3);
}

.btn-primary::before, .btn-submit::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.btn-primary:hover, .btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 212, 255, 0.5);
}

.btn-primary:hover::before, .btn-submit:hover::before {
    left: 100%;
}

.btn-primary .btn-icon, .btn-submit .btn-icon {
    transition: transform 0.3s ease;
    display: inline-flex;
    align-items: center;
}

.btn-primary:hover .btn-icon, .btn-submit:hover .btn-icon {
    transform: translateX(4px);
}

.btn-secondary {
    background: transparent;
    border: 2px solid var(--neon-blue);
    color: var(--neon-blue);
}

.btn-secondary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: linear-gradient(135deg, var(--neon-blue), var(--neon-purple));
    transition: width 0.4s ease;
    z-index: -1;
}

.btn-secondary:hover {
    color: white;
    border-color: var(--neon-purple);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 212, 255, 0.3);
}

.btn-secondary:hover::before {
    width: 100%;
}

.btn-secondary .btn-icon {
    transition: transform 0.3s ease;
    display: inline-flex;
    align-items: center;
}

.btn-secondary:hover .btn-icon {
    transform: translateX(4px);
}

.cta-group {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.cta-group .btn-secondary {
    margin-left: 0;
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    color: white;
    padding-top: 70px;
}

.hero-content {
    display: flex;
    align-items: center;
    width: 100%;
}

.hero-text { max-width: 700px; }
.hero-text h1 { font-size: 3.5rem; margin: 20px 0; line-height: 1.2; }
.highlight { color: var(--accent-color); }
.badge {
    background: rgba(59, 130, 246, 0.2);
    color: var(--accent-color);
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
}
.hero-text p { font-size: 1.1rem; color: #cbd5e1; margin-bottom: 30px; }

.tech-stack-icons { margin-top: 40px; font-size: 2rem; color: #94a3b8; }
.tech-stack-icons i { margin-right: 20px; transition: var(--transition); }
.tech-stack-icons i:hover { color: var(--accent-color); transform: translateY(-3px); }

/* About - Content */
.about-wrapper {
    position: relative;
}

#about {
    position: relative;
}

.code-icon-bg {
    position: absolute;
    right: 0;
    bottom: 0;
    font-size: 15rem;
    color: var(--primary-color);
    opacity: 0.08;
    pointer-events: none;
    z-index: 0;
}

.about-content {
    text-align: center;
    max-width: 900px;
    margin: 0 auto 40px;
    font-size: 1.05rem;
    line-height: 1.8;
    color: #475569;
    position: relative;
    z-index: 1;
}
.about-content p {
    margin-bottom:15px;
}
.highlight-years {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
    font-size: 1.1rem;
}

/* About - Strengths */
.strengths-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.strength-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    padding: 40px 30px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(37, 99, 235, 0.08);
    text-align: center;
    transition: var(--transition);
    border: 1px solid rgba(37, 99, 235, 0.1);
}
.strength-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(37, 99, 235, 0.15);
    border-color: rgba(37, 99, 235, 0.3);
}
.strength-card i {
    font-size: 3.5rem;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 20px;
    display: block;
}
.strength-card h3 {
    font-size: 1.3rem;
    color: var(--secondary-color);
    margin-bottom: 12px;
    font-weight: 700;
}
.strength-card p {
    color: #64748b;
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Skills Grid */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.skill-category {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    padding: 40px 35px;
    border-radius: 14px;
    border: 1px solid rgba(37, 99, 235, 0.1);
    box-shadow: 0 10px 30px rgba(37, 99, 235, 0.08);
    transition: var(--transition);
}

.skill-category:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(37, 99, 235, 0.15);
    border-color: rgba(37, 99, 235, 0.3);
}

.skill-category h3 {
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 1.25rem;
    color: var(--secondary-color);
    font-weight: 700;
}

.skill-category h3 i {
    font-size: 1.8rem;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.skill-category ul li {
    margin-bottom: 14px;
    padding-left: 28px;
    position: relative;
    color: #475569;
    font-size: 0.95rem;
    line-height: 1.5;
    transition: var(--transition);
}

.skill-category ul li:hover {
    color: var(--primary-color);
    transform: translateX(4px);
}

.skill-category ul li::before {
    content: '✓';
    color: var(--primary-color);
    position: absolute;
    left: 0;
    font-weight: 700;
    font-size: 1.1rem;
}

/* Tools Section */
.tools-header {
    text-align: center;
    margin-bottom: 60px;
}

.tools-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--secondary-color);
    line-height: 1.4;
    max-width: 700px;
    margin: 0 auto;
}

.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.tool-card {
    display: flex;
    align-items: center;
    padding: 0;
    transition: var(--transition);
    animation: slideInUp 0.5s ease-out forwards;
    opacity: 0;
    text-align: center;
}

.tool-card:nth-child(1) { animation-delay: 0.05s; }
.tool-card:nth-child(2) { animation-delay: 0.1s; }
.tool-card:nth-child(3) { animation-delay: 0.15s; }
.tool-card:nth-child(4) { animation-delay: 0.2s; }
.tool-card:nth-child(5) { animation-delay: 0.25s; }
.tool-card:nth-child(6) { animation-delay: 0.3s; }
.tool-card:nth-child(7) { animation-delay: 0.35s; }
.tool-card:nth-child(8) { animation-delay: 0.4s; }
.tool-card:nth-child(9) { animation-delay: 0.45s; }
.tool-card:nth-child(10) { animation-delay: 0.5s; }
.tool-card:nth-child(11) { animation-delay: 0.55s; }
.tool-card:nth-child(12) { animation-delay: 0.6s; }

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.tool-card:hover {
    box-shadow: 0 10px 30px rgba(37, 99, 235, 0.1);
    border-color: rgba(37, 99, 235, 0.2);
    transform: translateY(-3px);
}

.tool-icon {
    margin: 0 auto;
    display: block;
    text-align: center;
}

.tool-icon i {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.tool-info {
    flex: 1;
    min-width: 0;
}

.tool-info h3 {
    margin: 0 0 4px 0;
    font-size: 1rem;
    font-weight: 700;
    color: var(--secondary-color);
}

.tool-info p {
    margin: 0;
    font-size: 0.85rem;
    color: #94a3b8;
}

.tool-percentage {
    flex-shrink: 0;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary-color);
}

/* Recent Projects Section */
.projects-header {
    text-align: center;
    margin-bottom: 60px;
}

.projects-label {
    color: #94a3b8;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 1px;
    display: block;
    margin-bottom: 15px;
}

.projects-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--secondary-color);
    line-height: 1.2;
    margin: 0;
    margin-bottom: 30px;
}

/* Project Filter Styles */
.projects-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    margin-bottom: 50px;
}

.filter-btn {
    padding: 10px 24px;
    background: white;
    color: var(--text-dark);
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 0.95rem;
    white-space: nowrap;
}

.filter-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    background: rgba(37, 99, 235, 0.05);
}

.filter-btn.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3);
}

/* Project Category Badge */
.project-category {
    display: inline-block;
    padding: 6px 12px;
    background: rgba(37, 99, 235, 0.1);
    color: var(--primary-color);
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Hide projects that don't match filter */
.project-card {
    animation: fadeInScale 0.6s ease-out forwards;
}

.project-card.hidden {
    display: none;
    animation: none;
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Pagination Styles */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 50px;
    flex-wrap: wrap;
}

.pagination-btn {
    padding: 10px 16px;
    background: white;
    color: var(--text-dark);
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    min-width: 44px;
    text-align: center;
}

.pagination-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    background: rgba(37, 99, 235, 0.05);
}

.pagination-btn.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3);
}

.pagination-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.pagination-info {
    color: #94a3b8;
    font-size: 0.9rem;
    margin: 0 10px;
}

.projects-description {
    color: #475569;
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 20px;
}

.btn-projects {
    display: inline-block;
    padding: 14px 36px;
    background: var(--secondary-color);
    color: white;
    border-radius: 8px;
    font-weight: 600;
    transition: var(--transition);
    text-decoration: none;
    border: none;
    cursor: pointer;
}

.btn-projects:hover {
    background: #0f172a;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(30, 41, 59, 0.3);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    transition: all 0.3s ease;
}

@media (max-width: 1024px) {
    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

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

.project-card {
    border-radius: 12px;
    overflow: hidden;
    background: white;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.07);
    transition: var(--transition);
    animation: slideInUp 0.6s ease-out forwards;
    opacity: 0;
}

.project-card:nth-child(1) { animation-delay: 0.1s; }
.project-card:nth-child(2) { animation-delay: 0.2s; }
.project-card:nth-child(3) { animation-delay: 0.3s; }
.project-card:nth-child(4) { animation-delay: 0.4s; }
.project-card:nth-child(5) { animation-delay: 0.5s; }
.project-card:nth-child(6) { animation-delay: 0.6s; }

.project-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.project-image {
    width: 100%;
    height: 400px;
    overflow: hidden;
    background: #f1f5f9;
    user-select: none;
    position: relative;
    border-radius: 12px 12px 0 0;
    display: flex;
    align-items: baseline;
    justify-content: center;
}

.project-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: ease-in-out 3s;
    position: relative;
    top: 0;
}

.project-details-btn {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    padding: 12px 30px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: ease-in-out 0.3s;
    opacity: 0;
    z-index: 10;
}

.project-image:hover .project-details-btn {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

.project-details-btn:hover {
    background: #1d4ed8;
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.4);
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 2000;
    align-items: center;
    justify-content: center;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: white;
    padding: 40px;
    border-radius: 12px;
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.3s ease-out;
}

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

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 15px;
}

.modal-header h2 {
    color: var(--secondary-color);
    margin: 0;
    font-size: 1.8rem;
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #94a3b8;
    transition: var(--transition);
}

.modal-close:hover {
    color: var(--secondary-color);
}

.modal-body h3 {
    color: var(--primary-color);
    font-size: 1.2rem;
    margin-top: 25px;
    margin-bottom: 15px;
}

.modal-body ul {
    list-style: none;
    padding: 0;
}

.modal-body li {
    padding: 10px 0;
    padding-left: 25px;
    color: #475569;
    position: relative;
    line-height: 1.6;
}

.modal-body li::before {
    content: '✓';
    color: var(--primary-color);
    position: absolute;
    left: 0;
    font-weight: 700;
}

.project-info {
    padding: 25px;
}

.project-info h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--secondary-color);
    margin: 0 0 15px 0;
}

.project-link {
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

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

.project-link i {
    font-size: 0.8rem;
    transition: var(--transition);
}

.project-link:hover i {
    transform: translateX(3px);
}

/* Timeline (Experience) */
.timeline {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
}

.timeline::after {
    content: '';
    position: absolute;
    width: 3px;
    background: linear-gradient(180deg, var(--primary-color) 0%, var(--accent-color) 100%);
    top: 0;
    bottom: 0;
    left: 20px;
    margin-left: -1px;
    border-radius: 2px;
}

.timeline-item {
    position: relative;
    padding-left: 70px;
    margin-bottom: 50px;
    animation: slideInLeft 0.6s ease-out forwards;
    opacity: 0;
}

.timeline-item:nth-child(1) { animation-delay: 0.1s; }
.timeline-item:nth-child(2) { animation-delay: 0.2s; }
.timeline-item:nth-child(3) { animation-delay: 0.3s; }
.timeline-item:nth-child(4) { animation-delay: 0.4s; }

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

.timeline-item::after {
    content: '';
    position: absolute;
    left: 8px;
    top: 8px;
    width: 24px;
    height: 24px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border: 4px solid white;
    border-radius: 50%;
    z-index: 2;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.2), 0 4px 12px rgba(37, 99, 235, 0.3);
    animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
    0%, 100% {
        box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.2), 0 4px 12px rgba(37, 99, 235, 0.3);
        transform: scale(1);
    }
    50% {
        box-shadow: 0 0 0 8px rgba(37, 99, 235, 0.1), 0 4px 12px rgba(37, 99, 235, 0.4);
        transform: scale(1.1);
    }
}

.timeline-date {
    font-size: 0.85rem;
    color: white;
    font-weight: 700;
    margin-bottom: 8px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    padding: 6px 12px;
    border-radius: 6px;
    display: inline-block;
    letter-spacing: 0.5px;
}

.timeline-content {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    padding: 30px;
    border-radius: 12px;
    border: 1px solid rgba(37, 99, 235, 0.1);
    box-shadow: 0 10px 30px rgba(37, 99, 235, 0.08);
    transition: var(--transition);
}

.timeline-item:hover .timeline-content {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(37, 99, 235, 0.15);
    border-color: rgba(37, 99, 235, 0.3);
}

.timeline-content h3 {
    font-size: 1.4rem;
    margin-bottom: 5px;
    color: var(--secondary-color);
    font-weight: 700;
}

.timeline-content h4 {
    font-size: 0.95rem;
    color: var(--primary-color);
    margin-bottom: 15px;
    font-weight: 600;
}

.timeline-content ul {
    list-style: none;
    margin-left: 0;
    color: #475569;
    padding: 0;
}

.timeline-content ul li {
    margin-bottom: 10px;
    padding-left: 24px;
    position: relative;
    font-size: 0.95rem;
    line-height: 1.6;
}

.timeline-content ul li::before {
    content: '▹';
    color: var(--primary-color);
    position: absolute;
    left: 0;
    font-weight: 700;
}

/* Contact */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0px;
    align-items: top;
    border-radius:5px;
}
.contact-form-wrapper {
    padding: 0 50px;
}
.contact-info {
    background: #2563eb;
    color: #FFF;
    padding: 100px 50px;
}
.contact-info h2 {
    margin-bottom:30px;
}
.contact-item { font-size: 1.1rem; margin-bottom: 20px; }
.contact-item i { width: 30px; color: #FFF; }

.contact-form .form-group { margin-bottom: 20px; }
.contact-form input, .contact-form textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #cbd5e1;
    border-radius: 5px;
    font-family: inherit;
}
.contact-form input:focus, .contact-form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}
section#contact {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
}
#contact .section-title {
    color:#FFF
}

/* Footer */
footer {
    background: var(--secondary-color);
    color: white;
    text-align: center;
    padding: 20px 0;
}

/* Hero Layout */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    color: white;
    padding-top: 100px;
    padding-bottom: 50px;
    overflow: hidden;
}

.hero-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    gap: 50px;
}

.hero-text {
    flex: 1;
    max-width: 600px;
    z-index: 2;
}

.hero-img-container {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    max-width: 500px;
}

.profile-pic {
    width: 100%;
    max-width: 480px;
    height: 480px;
    object-fit: cover;
    position: relative;
    z-index: 2;
    border-radius: 100%;
    transform: scaleX(-1);
    animation: float 6s ease-in-out infinite, gaming-glow 2s ease-in-out infinite;
    box-shadow: 0 0 20px rgba(255, 0, 255, 0.6), 0 0 40px rgba(0, 255, 255, 0.4), 0 0 60px rgba(0, 255, 0, 0.3);
}

.glow-circle {
    position: absolute;
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, rgba(37,99,235,0.4) 0%, rgba(37,99,235,0) 70%);
    border-radius: 50%;
    z-index: 1;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: pulse-glow 4s ease-in-out infinite alternate;
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-25px); }
    100% { transform: translateY(0px); }
}

@keyframes pulse-glow {
    0% {
        transform: translate(-50%, -50%) scale(0.9);
        opacity: 0.6;
    }
    100% {
        transform: translate(-50%, -50%) scale(1.2);
        opacity: 1;
    }
}

@keyframes gaming-glow {
    0%, 100% {
        box-shadow: 0 0 20px rgba(255, 0, 255, 0.6), 0 0 40px rgba(0, 255, 255, 0.4), 0 0 60px rgba(0, 255, 0, 0.3);
    }
    50% {
        box-shadow: 0 0 30px rgba(0, 255, 255, 0.8), 0 0 50px rgba(255, 0, 255, 0.6), 0 0 70px rgba(0, 255, 0, 0.5);
    }
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .cta-group {
        gap: 15px;
        display: flex;
        flex-direction: column;
        width: 100%;
    }
    
    .cta-group a {
        width: 100%;
        justify-content: center;
    }
    
    .section-title {
        margin-bottom: 30px;
        font-size: 2rem;
    }
    .tools-title {
        font-size: 1.7rem;
    }
    .section {
        padding: 30px 0;
    }
    
    .contact-info,
    .contact-form-wrapper{
        padding: 15px;
    }
    .contact-item {
        font-size: 15px;
    }
    .contact-wrapper { 
        grid-template-columns: 1fr; 
    }
    
    .timeline::after { left: 0; }
    .timeline-item { padding-left: 25px; }
    .timeline-item::after { left: -9px; }
    
    .hero {
        text-align: center;
        padding-top: 120px;
        height: auto;
    }
    
    .hero-content {
        flex-direction: column-reverse;
        gap: 30px;
    }

    .hero-img-container {
        width: 100%;
    }

    .profile-pic {
        max-height: 280px;
        max-width: 280px;
    }

    .hero-text {
        padding: 0 10px;
    }
    
    .hero-text h1 { 
        font-size: 2.5rem; 
    }

    .cta-group {
        justify-content: center;
    }
    
    .tech-stack-icons {
        justify-content: center;
        display: flex;
    }
    
    .tools-grid {
        grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
        gap: 12px;
    }

    .tool-card {
        padding: 20px 10px;
        min-height: 120px;
    }

    .tool-icon-wrapper {
        width: 50px;
        height: 50px;
        margin-bottom: 10px;
    }

    .tool-name {
        font-size: 0.75rem;
    }

    .contact-wrapper {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .contact-info-card,
    .contact-form-card {
        padding: 30px 20px;
    }

    .form-row {
        flex-direction: column;
        gap: 20px;
    }

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

    .tools-title {
        font-size: 1.8rem;
    }
}

/* ============================================
   MODERN SECTION LABELS
   ============================================ */

.section-label {
    display: inline-block;
    color: var(--neon-blue);
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 15px;
    position: relative;
    padding-left: 50px;
}

.section-label::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 2px;
    background: linear-gradient(90deg, var(--neon-blue), transparent);
}

.about-section .section-label,
.skills-section .section-label,
.tools-section .section-label {
    display: block;
    text-align: center;
    padding-left: 0;
    margin-bottom: 10px;
}

.about-section .section-label::before,
.skills-section .section-label::before,
.tools-section .section-label::before {
    display: none;
}

/* ============================================
   MODERN TOOLS SECTION
   ============================================ */

.tools-section {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    position: relative;
    overflow: hidden;
}

.tools-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(0, 212, 255, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(168, 85, 247, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

.tools-header {
    text-align: center;
    margin-bottom: 60px;
    position: relative;
    z-index: 1;
}

.tools-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #fff;
    line-height: 1.3;
    max-width: 700px;
    margin: 0 auto 15px;
}

.tools-description {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 20px;
    max-width: 1000px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

/* Modern Tool Card with Glassmorphism */
.tool-card {
    position: relative;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 25px 15px;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 140px;
}

.tool-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.1), rgba(168, 85, 247, 0.1));
    opacity: 0;
    transition: opacity 0.4s ease;
}

.tool-card:hover {
    transform: translateY(-10px);
    border-color: rgba(0, 212, 255, 0.5);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.3),
        0 0 40px rgba(0, 212, 255, 0.2);
}

.tool-card:hover::before {
    opacity: 1;
}

.tool-icon-wrapper {
    position: relative;
    width: 70px;
    height: 70px;
    margin: 0 auto 15px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tool-icon-wrapper img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    filter: grayscale(50%) brightness(1.2);
    transition: all 0.4s ease;
    position: relative;
    z-index: 2;
}

.tool-card:hover .tool-icon-wrapper img {
    filter: grayscale(0%) brightness(1);
    transform: scale(1.15);
}

/* Glow Effect */
.tool-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100px;
    height: 100px;
    background: radial-gradient(circle, rgba(0, 212, 255, 0.3) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 1;
}

.tool-card:hover .tool-glow {
    opacity: 1;
    animation: pulse-glow 2s ease-in-out infinite;
}

.tool-name {
    display: block;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.85rem;
    font-weight: 600;
    transition: color 0.3s ease;
    margin-top: auto;
    position: relative;
    z-index: 2;
}

.tool-card:hover .tool-name {
    color: #fff;
    text-shadow: 0 0 10px rgba(0, 212, 255, 0.5);
}

/* Tooltip */
.tool-card::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: calc(100% + 10px);
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(10px);
    color: #fff;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 500;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 212, 255, 0.3);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    z-index: 10;
}

.tool-card:hover::after {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* ============================================
   MODERN EXPERIENCE SECTION (HIDDEN TEMPORARILY)
   ============================================ */

/* Hidden at user's request; can be re-enabled by removing this rule */
#experience,
.experience-section {
    display: none !important;
}

/* Resume Download Button - Eye-catching modern style */
.btn-resume {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 9px 32px;
    border-radius: 999px;
    color: #fff;
    font-weight: 600;
   font-size:1rem;
    transform: translateZ(0);
    transition: transform 0.18s ease, box-shadow 0.18s ease, opacity 0.18s ease;
    border: 0;
    background: linear-gradient(135deg, var(--neon-blue), var(--neon-purple));
    color: white;
    box-shadow: 0 4px 15px rgba(0, 212, 255, 0.3);
}

.btn-resume:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 212, 255, 0.5);
}

.btn-resume:active {
    transform: translateY(-1px) scale(0.995);
}

.btn-resume-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    /* width: 38px;
    height: 38px; */
    background: rgba(255,255,255,0.12);
    border-radius: 10px;
    font-size: 1.05rem;
}

.btn-resume-text {
    font-size: 1rem;
}

/* Small screen adjustments for resume button */
@media (max-width: 768px) {
    .btn-resume { padding: 12px 14px; gap: 10px; }
    .btn-resume-icon { width: 34px; height: 34px; }
}

/* Make resume button hover behave like primary button */
.btn-resume::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.25), transparent);
    transition: left 0.5s ease;
    border-radius: 50px;
}

.btn-resume .btn-resume-icon {
    transition: transform 0.3s ease;
}

.btn-resume:hover::before {
    left: 100%;
}

.btn-resume:hover .btn-resume-icon {
    transform: translateX(4px);
}

.section-subtitle {
    text-align: center;
    color: var(--text-dark);
    font-size: 1.1rem;
    margin-bottom: 60px;
    opacity: 0.8;
}

.experience-container {
    display: flex;
    flex-direction: column;
    gap: 50px;
}

/* Featured Experience Card */
.experience-card-featured {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border-radius: 20px;
    padding: 50px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(37, 99, 235, 0.1);
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.experience-card-featured::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.05) 0%, rgba(168, 85, 247, 0.05) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.experience-card-featured:hover {
    transform: translateY(-5px);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.12);
    border-color: rgba(37, 99, 235, 0.3);
}

.experience-card-featured:hover::before {
    opacity: 1;
}

/* Regular Experience Card (Non-Featured) */
.experience-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(248, 250, 252, 0.95) 100%);
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(37, 99, 235, 0.08);
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.experience-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.02) 0%, rgba(168, 85, 247, 0.02) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.experience-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.08);
    border-color: rgba(37, 99, 235, 0.2);
}

.experience-card:hover::before {
    opacity: 1;
}

.experience-header {
    position: relative;
    z-index: 1;
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 2px solid rgba(37, 99, 235, 0.1);
}

.experience-badge {
    display: inline-block;
    padding: 8px 16px;
    background: linear-gradient(135deg, var(--neon-blue), var(--neon-purple));
    color: white;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 15px;
    box-shadow: 0 4px 15px rgba(0, 212, 255, 0.3);
}

.experience-badge.latest {
    background: linear-gradient(135deg, #ff6b6b, #ff8787);
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.3);
}

.experience-company {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: 8px;
}

.experience-period {
    font-size: 1rem;
    color: var(--primary-color);
    font-weight: 600;
}

.experience-content {
    position: relative;
    z-index: 1;
}

.experience-description {
    font-size: 1.05rem;
    color: var(--text-dark);
    line-height: 1.8;
    margin-bottom: 40px;
    opacity: 0.9;
}

.experience-responsibilities {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

.responsibility-item {
    display: flex;
    gap: 20px;
    padding: 20px;
    background: rgba(37, 99, 235, 0.05);
    border-radius: 12px;
    border-left: 4px solid var(--primary-color);
    transition: all 0.3s ease;
}

.responsibility-item:hover {
    background: rgba(37, 99, 235, 0.1);
    transform: translateX(5px);
}

.responsibility-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--neon-blue), var(--neon-purple));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.3rem;
    flex-shrink: 0;
}

.responsibility-text h4 {
    font-size: 1.05rem;
    color: var(--secondary-color);
    margin-bottom: 5px;
    font-weight: 700;
}

.responsibility-text p {
    font-size: 0.95rem;
    color: var(--text-dark);
    opacity: 0.8;
    line-height: 1.5;
}

.experience-achievements {
    padding: 25px;
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.05), rgba(168, 85, 247, 0.05));
    border-radius: 12px;
    border: 1px solid rgba(37, 99, 235, 0.2);
}

.experience-achievements h4 {
    font-size: 1.1rem;
    color: var(--secondary-color);
    margin-bottom: 20px;
    font-weight: 700;
}

.experience-achievements ul {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
}

.experience-achievements li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    color: var(--text-dark);
    font-size: 0.95rem;
    line-height: 1.6;
}

.experience-achievements i {
    color: var(--primary-color);
    font-size: 1.1rem;
    margin-top: 3px;
    flex-shrink: 0;
}

/* Experience Timeline */
.experience-timeline {
    display: grid;
    gap: 30px;
    position: relative;
    padding-left: 40px;
}

.experience-timeline::before {
    content: '';
    position: absolute;
    left: 8px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(180deg, var(--primary-color), var(--neon-purple));
    border-radius: 2px;
}

.timeline-item {
    position: relative;
    padding: 25px;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 12px;
    border-left: 4px solid var(--primary-color);
    transition: all 0.3s ease;
}

.timeline-item:hover {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transform: translateX(5px);
}

.timeline-marker {
    position: absolute;
    left: -73px;
    top: 35px;
    width: 16px;
    height: 16px;
    background: white;
    border: 4px solid var(--primary-color);
    border-radius: 50%;
    transition: all 0.3s ease;
}

.timeline-item:hover .timeline-marker {
    width: 20px;
    height: 20px;
    left: -75px;
    top: 33px;
    box-shadow: 0 0 20px rgba(37, 99, 235, 0.5);
}

.timeline-content h4 {
    font-size: 1.15rem;
    color: var(--secondary-color);
    margin-bottom: 10px;
    font-weight: 700;
}

.timeline-content p {
    color: var(--text-dark);
    font-size: 0.95rem;
    line-height: 1.6;
    opacity: 0.85;
}

/* ============================================
   MODERN CONTACT SECTION
   ============================================ */

.contact-section {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    position: relative;
    overflow: hidden;
}

.contact-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 30% 20%, rgba(0, 212, 255, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 70% 80%, rgba(168, 85, 247, 0.08) 0%, transparent 50%);
    pointer-events: none;
}

.contact-header {
    text-align: center;
    margin-bottom: 60px;
    position: relative;
    z-index: 1;
}

.contact-header .section-label {
    display: inline-block;
    padding-left: 0;
}

.contact-header .section-label::before {
    display: none;
}

.contact-section .section-title {
    color: #fff;
    font-size: 2.8rem;
    margin-bottom: 20px;
}

.contact-subtitle {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 40px;
    max-width: 1100px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

/* Contact Info Card */
.contact-info-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 40px;
    transition: all 0.4s ease;
}

.contact-info-card:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(0, 212, 255, 0.3);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.info-card-header {
    margin-bottom: 35px;
    padding-bottom: 25px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.header-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--neon-blue), var(--neon-purple));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    box-shadow: 0 4px 15px rgba(0, 212, 255, 0.3);
}

.header-icon i {
    font-size: 1.8rem;
    color: #fff;
}

.info-card-header h3 {
    color: #fff;
    font-size: 1.5rem;
    font-weight: 700;
}

.contact-details {
    margin-bottom: 35px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 25px;
    padding: 15px;
    border-radius: 12px;
    transition: all 0.3s ease;
    text-align: center;
}

.contact-item:hover {
    background: rgba(255, 255, 255, 0.05);
}

.contact-icon {
    width: 45px;
    height: 45px;
    background: rgba(0, 212, 255, 0.1);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.contact-item:hover .contact-icon {
    background: rgba(0, 212, 255, 0.2);
    transform: scale(1.1);
}

.contact-icon i {
    font-size: 1.2rem;
    color: var(--neon-blue);
}

.contact-text {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.contact-label {
    text-align:left;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.contact-value {
    color: #fff;
    font-size: 1rem;
    font-weight: 500;
    transition: color 0.3s ease;
}

.contact-value:hover {
    color: var(--neon-blue);
}

/* Social Links */
.contact-social {
    padding-top: 25px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.social-label {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-link {
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.7);
    transition: all 0.3s ease;
}

.social-link:hover {
    background: linear-gradient(135deg, var(--neon-blue), var(--neon-purple));
    border-color: transparent;
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(0, 212, 255, 0.4);
}

.social-link i {
    font-size: 1.1rem;
}

/* Contact Form Card */
.contact-form-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 40px;
    transition: all 0.4s ease;
}

.contact-form-card:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(0, 212, 255, 0.3);
}

.form-card-header {
    margin-bottom: 30px;
}

.form-card-header h3 {
    color: #fff;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.form-card-header p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.95rem;
}

/* Form Styling */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-row {
    display: flex;
    gap: 20px;
}

.form-group {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    font-weight: 600;
}

.form-group input,
.form-group textarea {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 14px 18px;
    color: #fff;
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--neon-blue);
    box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.1);
}

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

.btn-submit {
    width: 100%;
    margin-top: 10px;
    padding: 16px 32px;
    font-size: 1.05rem;
}

.form-status {
    text-align: center;
    margin-top: 15px;
    font-size: 0.95rem;
    font-weight: 600;
}

/* ============================================
   RESPONSIVE UPDATES
   ============================================ */

@media (max-width: 991px) {
    .tools-grid {
        grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
        gap: 15px;
    }

    .tool-card {
        padding: 20px 12px;
        min-height: 130px;
    }

    .tool-icon-wrapper {
        width: 60px;
        height: 60px;
        margin-bottom: 12px;
    }

    .tool-name {
        font-size: 0.8rem;
    }
}

@media (max-width: 768px) {
    .tools-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 12px;
    }

    .tool-card {
        padding: 18px 10px;
        min-height: 115px;
    }

    .tool-icon-wrapper {
        width: 50px;
        height: 50px;
        margin-bottom: 10px;
    }

    .tool-name {
        font-size: 0.75rem;
    }

    .contact-wrapper {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .contact-info-card,
    .contact-form-card {
        padding: 30px 20px;
    }

    .form-row {
        flex-direction: column;
        gap: 0;
    }

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

    .tools-title {
        font-size: 1.8rem;
    }
    
    .contact-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .social-links {
        flex-wrap: wrap;
    }
}

/* ============================================
   MODERN PROJECT MODALS
   ============================================ */

.modern-modal {
    max-width: 900px;
    width: 95%;
    max-height: 90vh;
    padding: 0;
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border-radius: 20px;
    overflow: hidden;
}

.modal-project-header {
    position: relative;
    width: 100%;
    height: 300px;
    overflow: hidden;
    background: #f1f5f9;
}

.modal-project-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border: none;
    border-radius: 50%;
    font-size: 1.5rem;
    color: var(--secondary-color);
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.modal-close:hover {
    background: var(--secondary-color);
    color: white;
    transform: rotate(90deg);
}

.modal-project-body {
    padding: 40px;
    overflow-y: auto;
    max-height: calc(90vh - 300px);
}

.modal-project-title {
    font-size: 2.2rem;
    color: var(--secondary-color);
    margin-bottom: 30px;
    font-weight: 700;
}

.modal-section {
    margin-bottom: 35px;
}

.modal-section-title {
    font-size: 1.3rem;
    color: var(--primary-color);
    margin-bottom: 15px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
}

.modal-section-title::before {
    content: '';
    width: 4px;
    height: 24px;
    background: linear-gradient(135deg, var(--neon-blue), var(--neon-purple));
    border-radius: 2px;
}

.modal-description {
    color: #475569;
    font-size: 1.05rem;
    line-height: 1.8;
}

.modal-features-list {
    list-style: none;
    padding: 0;
    display: grid;
    gap: 12px;
}

.modal-features-list li {
    padding: 12px 15px 12px 45px;
    background: rgba(37, 99, 235, 0.05);
    border-left: 3px solid var(--primary-color);
    border-radius: 8px;
    color: #475569;
    position: relative;
    transition: all 0.3s ease;
}

.modal-features-list li::before {
    content: '✓';
    position: absolute;
    left: 15px;
    color: var(--primary-color);
    font-weight: 700;
    font-size: 1.1rem;
}

.modal-features-list li:hover {
    background: rgba(37, 99, 235, 0.1);
    transform: translateX(5px);
}

.modal-role-badge {
    display: inline-block;
    padding: 10px 20px;
    background: linear-gradient(135deg, var(--neon-blue), var(--neon-purple));
    color: white;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.95rem;
}

.modal-tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tech-badge {
    display: inline-block;
    padding: 8px 18px;
    background: rgba(255, 255, 255, 0.8);
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.85rem;
    transition: all 0.3s ease;
}

.tech-badge:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.modal-visit-btn {
    margin-top: 30px;
    width: 100%;
    justify-content: center;
    padding: 16px 32px;
    font-size: 1.05rem;
}

/* Modal Responsive */
@media (max-width: 768px) {
    /* Experience Section Responsive */
    .experience-card-featured {
        padding: 30px 20px;
    }

    .experience-card {
        padding: 25px 18px;
    }

    .experience-company {
        font-size: 1.4rem;
    }

    .experience-responsibilities {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .responsibility-item {
        padding: 15px;
    }

    .experience-timeline {
        padding-left: 25px;
    }

    .experience-timeline::before {
        left: 0px;
    }

    .timeline-marker {
        left: -50px;
    }

    .timeline-item:hover .timeline-marker {
        left: -50px;
    }

    .timeline-item {
        padding: 20px 15px;
    }

    .timeline-content h4 {
        font-size: 1rem;
    }

    .timeline-content p {
        font-size: 0.9rem;
    }

    .experience-achievements ul {
        grid-template-columns: 1fr;
    }

    /* Modern Modal */
    .modern-modal {
        width: 100%;
        max-height: 95vh;
        border-radius: 20px 20px 0 0;
        margin: auto 0 0 0;
    }
    
    .modal-project-header {
        height: 200px;
    }
    
    .modal-project-body {
        padding: 30px 20px;
        max-height: calc(95vh - 200px);
    }
    
    .modal-project-title {
        font-size: 1.8rem;
    }
    
    .modal-section-title {
        font-size: 1.1rem;
    }
    
    .modal-description {
        font-size: 0.95rem;
    }
    
    .modal-features-list li {
        padding: 10px 12px 10px 40px;
        font-size: 0.9rem;
    }
    
    .tech-badge {
        font-size: 0.8rem;
        padding: 6px 14px;
    }
}

/* Fade‑in utility for scroll animations */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Testimonials section */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.testimonial-card {
    background: var(--bg-white);
    padding: 24px;
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.1);
    position: relative;
    font-style: italic;
    color: var(--secondary-color);
}

.testimonial-card .testimonial-author {
    display: block;
    margin-top: 20px;
    text-align: right;
    font-weight: 600;
    color: var(--primary-color);
    font-style: normal;
}

/* Project card hover effect */
.project-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-card:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

/* ensure images maintain relative positioning and smooth top scroll */
.project-image img {
    transition: transform 0.3s ease, top 3s ease-in-out;
    position: relative;
    top: 0;
}

.project-card:hover .project-image img {
    transform: scale(1.05);
}

/* Footer */
.footer {
    background: var(--secondary-color);
    color: #fff;
    padding: 20px 0;
    text-align: center;
}

/* Blog post styles */
.blog-post, .blog-post-full {
    max-width: 800px;
    margin: 0 auto 60px;
}

.blog-post .post-title, .blog-post-full h1 {
    color: var(--secondary-color);
    margin-bottom: 10px;
}

.post-meta {
    font-size: 0.9rem;
    color: #64748b;
    margin-bottom: 20px;
}

.post-excerpt p {
    line-height: 1.7;
}

.blog-post-full img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 20px 0;
}

/* Utility to automatically optimize blog images: add attributes in markup */
/* Images in blog posts should include loading="lazy" and width/height or srcset directly in HTML. */
.footer a {
    color: inherit;
    margin: 0 8px;
    font-size: 1.2rem;
}

.footer-social {
    margin-top: 8px;
}