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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #111827;
    background: linear-gradient(90deg, #f8fbff 0%, #d2ebff 40%, #758a97 100%);
    overflow-x: hidden;
    transition: background 0.3s ease, color 0.3s ease;
}

body.dark {
    color: #e5e7eb;
    background: linear-gradient(90deg, #3d7ba4 0%, #020617 55%, #01030c 100%);
}

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

/* Top Navigation */
.top-nav {
    position: sticky;
    top: 0;
    z-index: 50;
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    background: linear-gradient(135deg, rgba(248, 251, 255, 0.96) 0%, rgba(210, 235, 255, 0.96) 40%, rgba(117, 138, 151, 0.96) 100%);
    border-bottom: 1px solid rgba(148, 163, 184, 0.35);
}

body.dark .top-nav {
    background: linear-gradient(135deg, rgba(61, 123, 164, 0.96) 0%, rgba(2, 6, 23, 0.96) 55%, rgba(1, 3, 12, 0.96) 100%);
    border-bottom-color: rgba(30, 64, 175, 0.8);
}

.nav-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0.9rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}

.nav-left {
    min-width: 0;
}

.nav-name {
    font-weight: 700;
    font-size: 1rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #111827;
}

body.dark .nav-name {
    color: #e5e7eb;
}

.nav-center {
    flex: 1;
    display: flex;
    justify-content: center;
    gap: 0.6rem;
}

.nav-link {
    position: relative;
    padding: 0.45rem 0.95rem;
    border-radius: 999px;
    font-size: 0.88rem;
    font-weight: 500;
    color: #4b5563;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s ease, background-color 0.2s ease, transform 0.18s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    inset: 4px;
    border-radius: inherit;
    border: 1px solid transparent;
    opacity: 0;
    transition: opacity 0.22s ease, border-color 0.22s ease;
}

.nav-link:hover {
    background: rgba(15, 23, 42, 0.04);
    transform: translateY(-1px);
}

.nav-link.active {
    color: #111827;
    background: rgba(37, 99, 235, 0.08);
}

.nav-link.active::after {
    opacity: 1;
    border-color: rgba(37, 99, 235, 0.6);
}

body.dark .nav-link {
    color: #e5e7eb;
}

body.dark .nav-link.active {
    color: #f9fafb;
    background: rgba(37, 99, 235, 0.22);
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.theme-toggle {
    position: relative;
    width: 46px;
    height: 24px;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.6);
    background: #e5e7eb;
    display: flex;
    align-items: center;
    padding: 0 4px;
    cursor: pointer;
    outline: none;
    transition: background-color 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.theme-toggle i {
    position: relative;
    z-index: 1;
    font-size: 0.75rem;
    color: #111827;
    transition: transform 0.3s ease;
}

.theme-toggle-knob {
    position: absolute;
    top: 2px;
    left: 3px;
    width: 18px;
    height: 18px;
    border-radius: 999px;
    background: #ffffff;
    box-shadow: 0 4px 10px rgba(15, 23, 42, 0.25);
    transition: transform 0.25s ease, background-color 0.25s ease;
}

body.dark .theme-toggle {
    background: rgba(15, 23, 42, 0.9);
    border-color: rgba(30, 64, 175, 0.9);
    box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.8), 0 12px 35px rgba(15, 23, 42, 0.9);
}

body.dark .theme-toggle i {
    color: #020617;
}

body.dark .theme-toggle-knob {
    transform: translateX(18px);
    background: #fbbf24;
}

@media (max-width: 900px) {
    .nav-center {
        gap: 0.25rem;
    }

    .nav-link {
        padding: 0.35rem 0.7rem;
        font-size: 0.8rem;
    }
}

@media (max-width: 640px) {
    .nav-container {
        padding-inline: 1rem;
        gap: 0.9rem;
    }

    .nav-center {
        justify-content: flex-start;
        overflow-x: auto;
        white-space: nowrap;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }

    .nav-center::-webkit-scrollbar {
        display: none;
    }

    .nav-name {
        font-size: 0.9rem;
    }
}

/* Cover Page Styles */
.cover-page {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: linear-gradient(135deg, #0f0f23 0%, #1a1a2e 50%, #16213e 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

.cover-page::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 80%, rgba(79, 172, 254, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(0, 242, 254, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(120, 119, 198, 0.1) 0%, transparent 50%);
    animation: pulse 4s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

.cover-page.scrolled {
    transform: translateX(-100%);
}

.cover-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    max-width: 1200px;
    padding: 0 2rem;
    position: relative;
    z-index: 2;
}

.cover-text {
    color: white;
}

.cover-title {
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.cover-name {
    display: block;
    color: #4facfe;
    margin-bottom: 0.5rem;
    text-shadow: 0 0 20px rgba(79, 172, 254, 0.5);
}

.cover-subtitle {
    display: block;
    font-size: 1.5rem;
    font-weight: 400;
    opacity: 0.9;
}

.cover-description {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.8;
    line-height: 1.6;
}

.cover-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.cover-btn {
    padding: 15px 30px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
}

.cover-btn.primary {
    background: linear-gradient(135deg, #4facfe, #00f2fe);
    color: white;
    border: 1px solid rgba(79, 172, 254, 0.3);
    box-shadow: 0 0 20px rgba(79, 172, 254, 0.3);
}

.cover-btn.primary:hover {
    background: linear-gradient(135deg, #00f2fe, #4facfe);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(79, 172, 254, 0.5);
}

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

.cover-btn.secondary:hover {
    background: white;
    color: #333;
    transform: translateY(-2px);
}

.cover-visual {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.cover-avatar {
    width: 300px;
    height: 412px;
    background: rgba(79, 172, 254, 0.1);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    color: #4facfe;
    border: 3px solid rgba(79, 172, 254, 0.3);
    animation: float 6s ease-in-out infinite;
    box-shadow: 
        0 0 30px rgba(79, 172, 254, 0.3),
        inset 0 0 30px rgba(79, 172, 254, 0.1);
    overflow: hidden;
}

.cover-decoration {
    position: absolute;
    width: 100%;
    height: 100%;
}

.floating-element {
    position: absolute;
    width: 60px;
    height: 60px;
    background: rgba(79, 172, 254, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: #4facfe;
    border: 1px solid rgba(79, 172, 254, 0.2);
    animation: float-around 8s ease-in-out infinite;
    animation-delay: var(--delay);
    box-shadow: 0 0 20px rgba(79, 172, 254, 0.2);
}

.floating-element:nth-child(1) {
    top: 20%;
    left: 10%;
}

.floating-element:nth-child(2) {
    top: 60%;
    right: 20%;
}

.floating-element:nth-child(3) {
    bottom: 20%;
    left: 20%;
}

@keyframes float-around {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    25% {
        transform: translateY(-20px) rotate(90deg);
    }
    50% {
        transform: translateY(0px) rotate(180deg);
    }
    75% {
        transform: translateY(20px) rotate(270deg);
    }
}

.cover-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.bg-pattern {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 25% 25%, rgba(255, 255, 255, 0.1) 1px, transparent 1px),
        radial-gradient(circle at 75% 75%, rgba(255, 255, 255, 0.1) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: pattern-move 20s linear infinite;
}

.bg-gradient {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, 
        rgba(79, 172, 254, 0.3) 0%, 
        rgba(0, 242, 254, 0.3) 50%, 
        rgba(255, 215, 0, 0.1) 100%);
    animation: gradient-shift 10s ease-in-out infinite;
}

@keyframes pattern-move {
    0% { transform: translate(0, 0); }
    100% { transform: translate(50px, 50px); }
}

@keyframes gradient-shift {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 0.8; }
}

/* Sidebar Navigation */
.sidebar-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 280px;
    height: 100vh;
    background: rgba(15, 15, 35, 0.95);
    backdrop-filter: blur(20px);
    border-right: 1px solid rgba(79, 172, 254, 0.2);
    z-index: 1000;
    transform: translateX(-100%);
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    padding: 2rem 0;
    color: white;
    overflow: hidden;
}

.sidebar-nav.visible {
    transform: translateX(0);
}

.sidebar-header {
    text-align: center;
    padding: 0 2rem 1.5rem;
    border-bottom: 1px solid rgba(79, 172, 254, 0.2);
    margin-bottom: 1.5rem;
}

.sidebar-avatar {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #4facfe, #00f2fe);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 0.75rem;
    font-size: 1.5rem;
    color: white;
    overflow: hidden;
}

.profile-image {
    width: 100%;
    height: 100%;
    object-fit: fill;
    border-radius: 20px;
}

.sidebar-name {
    font-size: 1.2rem;
    font-weight: 700;
    color: white;
    margin-bottom: 0.4rem;
}

.sidebar-title {
    color: #4facfe;
    font-size: 0.8rem;
}

.sidebar-menu {
    list-style: none;
    flex: 1;
    padding: 0 2rem;
    margin-bottom: 0.75rem;
}

.sidebar-menu li {
    margin-bottom: 0.4rem;
}

.sidebar-link {
    display: block;
    padding: 0.8rem 1.2rem;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-weight: 500;
    border-radius: 8px;
    transition: all 0.3s ease;
    position: relative;
}

.sidebar-link:hover,
.sidebar-link.active {
    background: linear-gradient(135deg, #4facfe, #00f2fe);
    color: white;
    transform: translateX(5px);
    box-shadow: 0 0 20px rgba(79, 172, 254, 0.3);
}

.sidebar-link::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 0;
    background: #4facfe;
    transition: height 0.3s ease;
}

.sidebar-link:hover::before,
.sidebar-link.active::before {
    height: 60%;
}

.sidebar-footer {
    padding: 1.5rem;
    border-top: 1px solid rgba(79, 172, 254, 0.2);
    margin-top: auto;
    flex-shrink: 0;
}

.sidebar-footer .social-links {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.sidebar-footer .social-link {
    width: 40px;
    height: 40px;
    background: rgba(79, 172, 254, 0.1);
    color: #4facfe;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid rgba(79, 172, 254, 0.2);
}

.sidebar-footer .social-link:hover {
    background: linear-gradient(135deg, #4facfe, #00f2fe);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 0 20px rgba(79, 172, 254, 0.4);
}

/* Main Content */
.main-content {
    margin-left: 0;
    transition: margin-left 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1;
}

.main-content.shifted {
    margin-left: 280px;
}



/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #f8fbff 0%, #d2ebff 40%, #758a97 100%);
    color: #111827;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="1" fill="white" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
}

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

.hero-title {
    font-size: 2.8rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.highlight {
    color: #4facfe;
    position: relative;
    text-shadow: 0 0 5px rgba(79, 172, 254, 0.3);
}

.highlight::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: #4facfe;
    transform: scaleX(0);
    transform-origin: left;
    animation: underline 3s ease-in-out infinite;
    box-shadow: 0 0 3px rgba(79, 172, 254, 0.3);
}

@keyframes underline {
    0%, 100% { transform: scaleX(0); }
    50% { transform: scaleX(1); }
}

.hero-subtitle {
    font-size: 1.2rem;
    font-weight: 500;
    margin-bottom: 1rem;
    opacity: 0.95;
}

.hero-roles {
    font-size: 0.98rem;
    font-weight: 500;
    color: #4b5563;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    min-height: 1.4em;
}

.hero-roles-label {
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 0.78rem;
    color: #6b7280;
}

.hero-roles-text {
    font-size: 0.98rem;
    color: #111827;
    white-space: nowrap;
}

.hero-roles-caret {
    font-size: 1rem;
    color: #4b5563;
    animation: blink 1s steps(2, start) infinite;
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    50.01%, 100% { opacity: 0; }
}

body.dark .hero-roles {
    color: #e5e7eb;
}

body.dark .hero-roles-label {
    color: #9ca3af;
}

body.dark .hero-roles-text {
    color: #f9fafb;
}

body.dark .hero-roles-caret {
    color: #9ca3af;
}

.hero-description {
    font-size: 1rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    line-height: 1.7;
}

.hero-social {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 2rem;
}

.hero-social-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.3rem 0.8rem;
    border-radius: 999px;
    font-size: 0.9rem;
    font-weight: 500;
    color: #111827;
    text-decoration: none;
    background: rgba(15, 23, 42, 0.03);
    border: 1px solid rgba(148, 163, 184, 0.5);
    transition: background-color 0.2s ease, color 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
}

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

.hero-social-link:hover {
    background: rgba(37, 99, 235, 0.08);
    color: #1d4ed8;
    transform: translateY(-1px);
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.08);
}

body.dark .hero-social-link {
    background: rgba(15, 23, 42, 0.85);
    color: #e5e7eb;
    border-color: rgba(37, 99, 235, 0.6);
}

body.dark .hero-social-link:hover {
    background: linear-gradient(135deg, #3b82f6, #0ea5e9);
    color: #f9fafb;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.95);
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

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

.btn-primary {
    background: linear-gradient(135deg, rgb(4, 81, 140), rgb(4, 81, 140));
    color: #f8f9fa;
    border: 1px solid rgb(4, 81, 140);
    box-shadow: 0 0 20px rgba(79, 172, 254, 0.3);
}

.btn-primary:hover {
    background: #ffffff;
    color: rgb(4, 81, 140);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(79, 172, 254, 0.25);
}

body.dark .btn-primary {
    background: linear-gradient(135deg, #f4f7fa, #f6f8fa);
    color: #173049;
    border: 1px solid rgba(79, 172, 254, 0.5);
    box-shadow: 0 0 20px rgba(79, 172, 254, 0.5);
}

body.dark .btn-primary:hover {
    background: linear-gradient(135deg, #00f2fe, #4facfe);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(79, 172, 254, 0.7);
}

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

.btn-secondary:hover {
    background: white;
    color: #333;
    transform: translateY(-2px);
}

.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.profile-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 2rem;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.2);
    animation: float 6s ease-in-out infinite;
}

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

.profile-avatar {
    width: 240px;
    height: 330px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 3rem;
    color: white;
    overflow: hidden;
}

.profile-info h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.profile-info p {
    opacity: 0.9;
}

/* Dark mode overrides for hero & sections */
body.dark .hero {
    background: linear-gradient(135deg, #3d7ba4 0%, #020617 55%, #01030c 100%);
    color: #f9fafb;
}

body.dark .hero::before {
    opacity: 0.4;
}

body.dark .hero-subtitle,
body.dark .hero-description {
    color: #e5e7eb;
}

body.dark section {
    color: #e5e7eb;
}

body.dark .project-card,
body.dark .skill-group,
body.dark .achievement-item {
    background-color: #020617;
    border-color: #1f2937;
    box-shadow: 0 18px 55px rgba(15, 23, 42, 0.9);
}

/* Section Styles */
section {
    padding: 5rem 0;
}

.section-title {
    text-align: center;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 3rem;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, #007acc, #4facfe);
    border-radius: 2px;
}

/* About Section */
.about-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 4rem;
    align-items: center;
}

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

.about-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 2rem;
}

.stat {
    text-align: center;
    padding: 1.5rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

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

.stat h3 {
    font-size: 2rem;
    font-weight: 700;
    color: #007acc;
    margin-bottom: 0.5rem;
}

.stat p {
    color: #666;
    font-weight: 500;
}

.about-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.image-placeholder {
    width: 300px;
    height: 300px;
    background: linear-gradient(135deg, #4facfe, #00f2fe);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    color: white;
    box-shadow: 0 20px 40px rgba(79, 172, 254, 0.3);
}

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

.project-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

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

.project-image {
    height: 200px;
    background: linear-gradient(135deg, #4facfe, #00f2fe);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: white;
}

.project-content {
    padding: 2rem;
}

.project-content h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #333;
}

.project-content p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

body:not(.dark) .tech-tag {
    background: #f0f0f0;
    color: #333;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
}

body.dark .tech-tag {
    background: #374151;
    color: #e5e7eb;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
}


.project-links {
    display: flex;
    gap: 1rem;
}

.project-link {
    color: #007acc;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.project-link:hover {
    color: #005a9e;
}

/* Skills Section */
.skills {
    background: transparent;
}
.skills-container {
    max-width: 1200px;
    margin: 0 auto;
}

.skills-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.skill-group {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.skill-group:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.skill-group h3 {
    font-size: 1.4rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.skill-group h3 i {
    color: #4facfe;
    font-size: 1.2rem;
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.skill-tag {
    background: linear-gradient(135deg, #4facfe, #00f2fe);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
    cursor: default;
}

.skill-tag:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(79, 172, 254, 0.4);
}

/* Experience Section */
.experience-timeline {
    max-width: 1100px;
    margin: 0 auto;
    position: relative;
}

/* Vertical line connecting all experiences */
.experience-timeline::before {
    content: '';
    position: absolute;
    left: 6.5rem;
    top: 1.5rem;
    bottom: 1.5rem;
    width: 3px;
    background: linear-gradient(180deg, #4facfe 0%, #00f2fe 50%, rgba(79, 172, 254, 0.6) 100%);
    border-radius: 2px;
    z-index: 0;
}

body.dark .experience-timeline::before {
    background: linear-gradient(180deg, rgba(79, 172, 254, 0.9) 0%, rgba(0, 242, 254, 0.7) 50%, rgba(59, 130, 246, 0.5) 100%);
    box-shadow: 0 0 12px rgba(79, 172, 254, 0.3);
}

.experience-item {
    display: flex;
    align-items: flex-start;
    gap: 1.25rem;
    width: 100%;
    max-width: 1100px;
    margin: 0 auto 2rem auto;
    position: relative;
    z-index: 1;
}

/* Left column: date + location + timeline dot (outside box; text wraps by line) */
.experience-meta {
    flex-shrink: 0;
    width: 6.5rem;
    min-width: 6.5rem;
    max-width: 6.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    padding-top: 0.2rem;
    position: relative;
}

.experience-meta::before {
    content: '';
    position: absolute;
    left: calc(6.5rem - 7px);
    top: 0.4rem;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: linear-gradient(135deg, #4facfe, #00f2fe);
    border: 3px solid #ffffff;
    box-shadow: 0 0 0 2px rgba(79, 172, 254, 0.5), 0 2px 8px rgba(79, 172, 254, 0.4);
    z-index: 2;
}

body.dark .experience-meta::before {
    background: linear-gradient(135deg, #3b82f6, #0ea5e9);
    border-color: #020617;
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.6), 0 2px 12px rgba(79, 172, 254, 0.5);
}

.experience-date {
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
    line-height: 1.35;
    word-wrap: break-word;
    overflow-wrap: break-word;
    max-width: 6.5rem;
}

.experience-location {
    font-size: 1.0rem;
    color: #666;
    line-height: 1.35;
    word-wrap: break-word;
    overflow-wrap: break-word;
    max-width: 6.5rem;
}

body.dark .experience-date {
    font-size: 1.1rem;
    font-weight: 600;
    color: #e5e7eb;
    line-height: 1.35;
    word-wrap: break-word;
    overflow-wrap: break-word;
    max-width: 6.5rem;
}

body.dark .experience-location {
    font-size: 1.0rem;
    color: #dadcde;
    line-height: 1.35;
    word-wrap: break-word;
    overflow-wrap: break-word;
    max-width: 6.5rem;
}

.experience-content {
    flex: 1;
    min-width: 0;
    border-radius: 16px;
    padding: 1.5rem 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

body:not(.dark) .experience-content {
    background: #ffffff;
}

body.dark .experience-content {
    background-color: #020617;
    border-color: #1f2937;
    box-shadow: 0 18px 55px rgba(15, 23, 42, 0.9);
}

.experience-content:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

body.dark .experience-content:hover {
    box-shadow: 0 22px 50px rgba(15, 23, 42, 0.95);
}

/* .experience-item::before {
    decorative left accent; kept commented out for now
} */


.experience-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    gap: 1rem;
}

body:not(.dark) .experience-company h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 0.5rem;
}

body.dark .experience-company h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #c4cefa;
    margin-bottom: 0.5rem;
}

.experience-company {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.company-logo {
    width: 60px;
    height: 60px;
    background: white;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    box-shadow: 0 0 20px rgba(79, 172, 254, 0.3);
    flex-shrink: 0;
    overflow: hidden;
}

.company-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 12px;
    padding: 6px;
}


body.dark .company-info h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #bfc5d6;
    margin-bottom: 0.5rem;
}

body:not(.dark) .company-info h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #234766;
    margin-bottom: 0.5rem;
}

.company-info h4 {
    font-size: 1.1rem;
    color: #007acc;
    font-weight: 500;
}

.experience-period {
    text-align: right;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.experience-period span:first-child {
    font-weight: 600;
    color: #333;
}

.experience-period span:last-child {
    color: #666;
    font-size: 0.9rem;
}

.experience-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.experience-description {
    margin-top: 0.5rem;
}

.experience-description.collapsed {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transform: translateY(-4px);
    transition: max-height 0.25s ease, opacity 0.2s ease, transform 0.2s ease;
}

.experience-description.expanded {
    max-height: 800px;
    opacity: 1;
    transform: translateY(0);
}

.experience-description ul {
    list-style: none;
    padding: 0;
}

.experience-description li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.75rem;
    line-height: 1.6;
    color: #555;
}

body.dark .experience-description li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.75rem;
    line-height: 1.6;
    color: #aaa7a7;
}

.experience-description li::before {
    content: '▸';
    position: absolute;
    left: 0;
    color: #007acc;
    font-weight: bold;
}

.experience-toggle {
    margin-top: 0.25rem;
    margin-bottom: 0.5rem;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.35rem 0.85rem;
    border-radius: 999px;
    border: 1px solid rgba(37, 99, 235, 0.4);
    background: rgba(37, 99, 235, 0.04);
    color: #1d4ed8;
    font-size: 0.82rem;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
}

.experience-toggle:hover {
    background: rgba(37, 99, 235, 0.12);
    border-color: rgba(37, 99, 235, 0.7);
    transform: translateY(-1px);
}

body.dark .experience-toggle {
    background: rgba(15, 23, 42, 0.9);
    border-color: rgba(59, 130, 246, 0.8);
    color: #e5e7eb;
}

body.dark .experience-toggle:hover {
    background: linear-gradient(135deg, #3b82f6, #0ea5e9);
    border-color: transparent;
    color: #f9fafb;
}

/* Education Section – date/location outside box, timeline on left */
.education-timeline {
    max-width: 1100px;
    margin: 0 auto;
    position: relative;
}

.education-timeline::before {
    content: '';
    position: absolute;
    left: 6.5rem;
    top: 1.5rem;
    bottom: 1.5rem;
    width: 3px;
    background: linear-gradient(180deg, #4facfe 0%, #00f2fe 50%, rgba(79, 172, 254, 0.6) 100%);
    border-radius: 2px;
    z-index: 0;
}

body.dark .education-timeline::before {
    background: linear-gradient(180deg, rgba(79, 172, 254, 0.9) 0%, rgba(0, 242, 254, 0.7) 50%, rgba(59, 130, 246, 0.5) 100%);
    box-shadow: 0 0 12px rgba(79, 172, 254, 0.3);
}

.education-item {
    display: flex;
    align-items: flex-start;
    gap: 1.25rem;
    width: 100%;
    max-width: 1100px;
    margin: 0 auto 2rem auto;
    position: relative;
    z-index: 1;
}

.education-meta {
    flex-shrink: 0;
    width: 6.5rem;
    min-width: 6.5rem;
    max-width: 6.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    padding-top: 0.2rem;
    position: relative;
}

.education-meta::before {
    content: '';
    position: absolute;
    left: calc(6.5rem - 7px);
    top: 0.4rem;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: linear-gradient(135deg, #4facfe, #00f2fe);
    border: 3px solid #ffffff;
    box-shadow: 0 0 0 2px rgba(79, 172, 254, 0.5), 0 2px 8px rgba(79, 172, 254, 0.4);
    z-index: 2;
}

body.dark .education-meta::before {
    background: linear-gradient(135deg, #3b82f6, #0ea5e9);
    border-color: #020617;
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.6), 0 2px 12px rgba(79, 172, 254, 0.5);
}

.education-date {
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
    line-height: 1.35;
    word-wrap: break-word;
    overflow-wrap: break-word;
    max-width: 6.5rem;
}

.education-location {
    font-size: 1.0rem;
    color: #666;
    line-height: 1.35;
    word-wrap: break-word;
    overflow-wrap: break-word;
    max-width: 6.5rem;
}

body.dark .education-date {
    font-size: 1.1rem;
    font-weight: 600;
    color: #e5e7eb;
    line-height: 1.35;
    word-wrap: break-word;
    overflow-wrap: break-word;
    max-width: 6.5rem;
}

body.dark .education-location {
    font-size: 1.0rem;
    color: #9ca3af;
    line-height: 1.35;
    word-wrap: break-word;
    overflow-wrap: break-word;
    max-width: 6.5rem;
}

.education-content {
    flex: 1;
    min-width: 0;
    border-radius: 16px;
    padding: 1.5rem 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

body:not(.dark) .education-content {
    background: #ffffff;
}

body.dark .education-content {
    background-color: #020617;
    border-color: #1f2937;
    box-shadow: 0 18px 55px rgba(15, 23, 42, 0.9);
}

.education-content:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

body.dark .education-content:hover {
    box-shadow: 0 22px 50px rgba(15, 23, 42, 0.95);
}

.education-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.education-institution {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.institution-logo {
    width: 80px;
    height: 80px;
    background: white;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    box-shadow: 0 0 20px rgba(79, 172, 254, 0.3);
    flex-shrink: 0;
    overflow: hidden;
}

.institution-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 12px;
    padding: 8px;
}

.institution-info h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 0.5rem;
}

body.dark .institution-info h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #bfc5d6;
    margin-bottom: 0.5rem;
}

.institution-info h4 {
    font-size: 1.1rem;
    color: #007acc;
    font-weight: 700;
}

body.dark .institution-info h4 {
    font-size: 1.1rem;
    color: #78b0d6;
    font-weight: 700;
}

.education-period {
    text-align: right;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.education-period span:first-child {
    font-weight: 600;
    color: #333;
}

.education-period span:last-child {
    color: #666;
    font-size: 0.9rem;
}

.education-details {
    color:#527288;
    line-height: 1.6;
}

body.dark .education-details {
    color: #9fb0bb;
    line-height: 1.6;
}

.education-details p {
    margin-bottom: 0.5rem;
}

/* GPA: rounded rectangle, bold */
.education-gpa-badge {
    display: inline-block;
    padding: 0.35rem 0.85rem;
    border-radius: 10px;
    font-weight: 700;
    background: rgba(79, 172, 254, 0.18);
    color: #0c4a6e;
    border: 1px solid rgba(79, 172, 254, 0.35);
}

body.dark .education-gpa-badge {
    background: rgba(79, 172, 254, 0.22);
    color: #93c5fd;
    border-color: rgba(79, 172, 254, 0.45);
}

/* Roles: orange highlight, works in light and dark */
.education-roles {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.education-role-badge {
    display: inline-block;
    padding: 0.2rem 0.7rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.8rem;
    background: rgba(234, 88, 12, 0.18);
    color: #9a3412;
    border: 1px solid rgba(234, 88, 12, 0.4);
}

body.dark .education-role-badge {
    background: rgba(251, 146, 60, 0.2);
    color: #fed7aa;
    border-color: rgba(251, 146, 60, 0.45);
}

/* Achievements Section */
.achievements {
    background: transparent;
}
.achievements-content {
    max-width: 1000px;
    margin: 0 auto;
}

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

.achievement-item {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    transition: all 0.3s ease;
}

.achievement-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.achievement-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #4facfe, #00f2fe);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
    flex-shrink: 0;
}

.achievement-content h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 0.5rem;
}

.achievement-content p {
    color: #555;
    line-height: 1.6;
    margin: 0;
}

/* Contact Section */
.contact-content {
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.contact-info h3 {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #333;
}

.contact-info p {
    font-size: 1.1rem;
    color: #666;
    line-height: 1.6;
    margin-bottom: 2rem;
}

.contact-methods {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-method {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.contact-method:hover {
    background: #007acc;
    color: white;
}

.contact-method i {
    font-size: 1.2rem;
    width: 20px;
}



/* Footer */
.footer {
    background: #020617;
    color: #e5e7eb;
    padding: 2.5rem 0 1.75rem;
}

.footer-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.75rem;
}

.footer-top {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    align-items: center;
    justify-content: space-between;
}

.footer-left {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

body.dark .footer-name {
    font-size: 1.1rem;
    font-weight: 700;
    color: #f9fafb;
}

body.light .footer-name {
    font-size: 1.1rem;
    font-weight: 700;
    color: 
    #04518c;
}

.footer-title {
    font-size: 0.9rem;
    color: #9ca3af;
}

.footer-icons {
    display: flex;
    gap: 0.75rem;
    margin-top: 0.3rem;
}

.footer-icon-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 999px;
    color: #9ca3af;
    border: 1px solid rgba(148, 163, 184, 0.6);
    background: transparent;
    transition: background-color 0.2s ease, color 0.2s ease, transform 0.15s ease, border-color 0.2s ease;
}

.footer-icon-link:hover {
    background: #1d4ed8;
    color: #f9fafb;
    border-color: #1d4ed8;
    transform: translateY(-1px);
}

.footer-right {
    display: flex;
    justify-content: flex-end;
}

.footer-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 1.25rem;
}

.footer-nav-link {
    font-size: 0.9rem;
    color: #9ca3af;
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-nav-link:hover {
    color: #e5e7eb;
}

.footer-bottom {
    border-top: 1px solid rgba(148, 163, 184, 0.35);
    padding-top: 0.9rem;
}

.footer-copy {
    font-size: 0.8rem;
    color: #6b7280;
    text-align: center;
}

/* Light mode footer variants */
body:not(.dark) .footer {
    background: #f9fafb;
    color: #111827;
}

body:not(.dark) .footer-title,
body:not(.dark) .footer-copy {
    color: #6b7280;
}

body:not(.dark) .footer-icon-link {
    color: #4b5563;
    border-color: rgba(148, 163, 184, 0.6);
}

body:not(.dark) .footer-icon-link:hover {
    background: #1d4ed8;
    color: #f9fafb;
}

body:not(.dark) .footer-nav-link {
    color: #4b5563;
}

body:not(.dark) .footer-nav-link:hover {
    color: #111827;
}

/* Responsive Design */
@media (max-width: 768px) {
    .skills-row {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        margin-bottom: 1.5rem;
    }
    
    .skill-group {
        padding: 1.5rem;
    }
    
    .skill-group h3 {
        font-size: 1.2rem;
        margin-bottom: 1rem;
    }
    
    .skill-tags {
        gap: 0.5rem;
    }
    
    .skill-tag {
        padding: 0.4rem 0.8rem;
        font-size: 0.8rem;
    }
    .cover-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }

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

    .cover-avatar {
        width: 150px;
        height: 206px;
        font-size: 3rem;
    }

    .sidebar-nav {
        width: 100%;
        transform: translateX(-100%);
        overflow-y: auto;
    }

    .main-content.shifted {
        margin-left: 0;
    }



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

    .profile-avatar {
        width: 120px;
        height: 165px;
    }

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

    .hero-roles {
        justify-content: center;
        flex-wrap: wrap;
        text-align: center;
    }

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

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

    .about-stats {
        grid-template-columns: 1fr;
    }

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

    .projects-grid {
        grid-template-columns: 1fr;
    }

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

    .skill-items {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .cover-title {
        font-size: 2rem;
    }

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

    .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }

    .skill-items {
        grid-template-columns: 1fr;
    }
}

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

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

/* Smooth scrolling for anchor links */
html {
    scroll-padding-top: 80px;
} 