:root {
    --primary: #9C62E5;
    --primary-dark: #5B3251;
    --secondary: #53B6B6;
    --accent: #781B20;
    --dark: #2C071B;
    --light: #f8fafc;
    --gray: #94a3b8;
    --white: #ffffff;
    --glass: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --card-bg: rgba(44, 7, 27, 0.55);
    --gold: #f59e0b;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
html {
    scroll-behavior: smooth;
}
body {
    font-family: 'Segoe UI', 'Inter', system-ui, -apple-system, sans-serif;
    background: #18030f;
    color: var(--light);
    overflow-x: hidden;
    line-height: 1.6;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 0;
    pointer-events: none;
    background:
        radial-gradient(ellipse at 15% 25%, rgba(156, 98, 229, 0.22) 0%, transparent 55%),
        radial-gradient(ellipse at 80% 55%, rgba(83, 182, 182, 0.18) 0%, transparent 55%),
        radial-gradient(ellipse at 50% 50%, rgba(91, 50, 81, 0.15) 0%, transparent 60%),
        radial-gradient(ellipse at 85% 15%, rgba(156, 98, 229, 0.2) 0%, transparent 50%),
        radial-gradient(ellipse at 20% 85%, rgba(120, 27, 32, 0.12) 0%, transparent 55%),
        radial-gradient(circle at 65% 30%, rgba(245, 158, 11, 0.07) 0%, transparent 45%),
        linear-gradient(180deg, #18030f 0%, #2c071b 30%, #1f0514 60%, #2c071b 85%, #18030f 100%);
    animation: nebulaDrift 20s ease-in-out infinite;
}

@keyframes nebulaDrift {
    0%,
    100% {
        opacity: 0.85;
    }
    25% {
        opacity: 0.95;
    }
    50% {
        opacity: 0.8;
    }
    75% {
        opacity: 0.9;
    }
}

body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 0;
    pointer-events: none;
    background-image:
        radial-gradient(3px 3px at 8% 12%, rgba(255, 255, 255, 0.9), transparent),
        radial-gradient(3px 3px at 22% 32%, rgba(255, 255, 255, 0.85), transparent),
        radial-gradient(3px 3px at 38% 8%, rgba(255, 255, 255, 0.9), transparent),
        radial-gradient(3px 3px at 52% 42%, rgba(255, 255, 255, 0.8), transparent),
        radial-gradient(3px 3px at 68% 18%, rgba(255, 255, 255, 0.9), transparent),
        radial-gradient(3px 3px at 82% 52%, rgba(255, 255, 255, 0.85), transparent),
        radial-gradient(3px 3px at 12% 68%, rgba(255, 255, 255, 0.9), transparent),
        radial-gradient(3px 3px at 58% 72%, rgba(255, 255, 255, 0.8), transparent),
        radial-gradient(3px 3px at 88% 82%, rgba(255, 255, 255, 0.85), transparent),
        radial-gradient(3px 3px at 32% 88%, rgba(255, 255, 255, 0.9), transparent),
        radial-gradient(3px 3px at 3% 48%, rgba(255, 255, 255, 0.8), transparent),
        radial-gradient(3px 3px at 93% 8%, rgba(255, 255, 255, 0.85), transparent),
        radial-gradient(3px 3px at 72% 5%, rgba(255, 255, 255, 0.9), transparent),
        radial-gradient(3px 3px at 18% 22%, rgba(255, 255, 255, 0.8), transparent),
        radial-gradient(3px 3px at 95% 42%, rgba(255, 255, 255, 0.85), transparent);
    background-size: 200% 200%;
    animation: twinkleBig 6s ease-in-out infinite;
}

.stars-layer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 0;
    pointer-events: none;
    background-image:
        radial-gradient(2px 2px at 5% 20%, rgba(255, 255, 255, 0.7), transparent),
        radial-gradient(2px 2px at 15% 45%, rgba(255, 255, 255, 0.75), transparent),
        radial-gradient(2px 2px at 28% 5%, rgba(255, 255, 255, 0.65), transparent),
        radial-gradient(2px 2px at 35% 38%, rgba(255, 255, 255, 0.7), transparent),
        radial-gradient(2px 2px at 45% 15%, rgba(255, 255, 255, 0.75), transparent),
        radial-gradient(2px 2px at 55% 55%, rgba(255, 255, 255, 0.65), transparent),
        radial-gradient(2px 2px at 62% 8%, rgba(255, 255, 255, 0.7), transparent),
        radial-gradient(2px 2px at 75% 35%, rgba(255, 255, 255, 0.75), transparent),
        radial-gradient(2px 2px at 85% 48%, rgba(255, 255, 255, 0.65), transparent),
        radial-gradient(2px 2px at 92% 22%, rgba(255, 255, 255, 0.7), transparent),
        radial-gradient(2px 2px at 8% 78%, rgba(255, 255, 255, 0.75), transparent),
        radial-gradient(2px 2px at 25% 65%, rgba(255, 255, 255, 0.65), transparent),
        radial-gradient(2px 2px at 42% 82%, rgba(255, 255, 255, 0.7), transparent),
        radial-gradient(2px 2px at 55% 28%, rgba(255, 255, 255, 0.75), transparent),
        radial-gradient(2px 2px at 68% 62%, rgba(255, 255, 255, 0.65), transparent),
        radial-gradient(2px 2px at 78% 88%, rgba(255, 255, 255, 0.7), transparent),
        radial-gradient(2px 2px at 88% 68%, rgba(255, 255, 255, 0.75), transparent),
        radial-gradient(2px 2px at 95% 55%, rgba(255, 255, 255, 0.65), transparent),
        radial-gradient(2px 2px at 15% 10%, rgba(255, 255, 255, 0.7), transparent),
        radial-gradient(2px 2px at 48% 92%, rgba(255, 255, 255, 0.75), transparent);
    background-size: 180% 180%;
    animation: twinkleMedium 8s ease-in-out infinite reverse;
}

body section {
    position: relative;
}

body section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    background-image:
        radial-gradient(1px 1px at 3% 8%, rgba(255, 255, 255, 0.5), transparent),
        radial-gradient(1px 1px at 11% 28%, rgba(255, 255, 255, 0.6), transparent),
        radial-gradient(1px 1px at 8% 52%, rgba(255, 255, 255, 0.55), transparent),
        radial-gradient(1px 1px at 18% 72%, rgba(255, 255, 255, 0.5), transparent),
        radial-gradient(1px 1px at 24% 15%, rgba(255, 255, 255, 0.6), transparent),
        radial-gradient(1px 1px at 32% 42%, rgba(255, 255, 255, 0.55), transparent),
        radial-gradient(1px 1px at 38% 78%, rgba(255, 255, 255, 0.5), transparent),
        radial-gradient(1px 1px at 44% 8%, rgba(255, 255, 255, 0.6), transparent),
        radial-gradient(1px 1px at 52% 55%, rgba(255, 255, 255, 0.55), transparent),
        radial-gradient(1px 1px at 58% 22%, rgba(255, 255, 255, 0.5), transparent),
        radial-gradient(1px 1px at 63% 68%, rgba(255, 255, 255, 0.6), transparent),
        radial-gradient(1px 1px at 72% 12%, rgba(255, 255, 255, 0.55), transparent),
        radial-gradient(1px 1px at 78% 45%, rgba(255, 255, 255, 0.5), transparent),
        radial-gradient(1px 1px at 83% 82%, rgba(255, 255, 255, 0.6), transparent),
        radial-gradient(1px 1px at 89% 32%, rgba(255, 255, 255, 0.55), transparent),
        radial-gradient(1px 1px at 94% 58%, rgba(255, 255, 255, 0.5), transparent),
        radial-gradient(1px 1px at 2% 92%, rgba(255, 255, 255, 0.6), transparent),
        radial-gradient(1px 1px at 28% 5%, rgba(255, 255, 255, 0.55), transparent),
        radial-gradient(1px 1px at 48% 35%, rgba(255, 255, 255, 0.5), transparent),
        radial-gradient(1px 1px at 68% 88%, rgba(255, 255, 255, 0.6), transparent),
        radial-gradient(1px 1px at 76% 2%, rgba(255, 255, 255, 0.55), transparent),
        radial-gradient(1px 1px at 92% 72%, rgba(255, 255, 255, 0.5), transparent),
        radial-gradient(1px 1px at 6% 38%, rgba(255, 255, 255, 0.6), transparent),
        radial-gradient(1px 1px at 55% 95%, rgba(255, 255, 255, 0.55), transparent),
        radial-gradient(1px 1px at 88% 5%, rgba(255, 255, 255, 0.5), transparent);
    background-size: 150% 150%;
    animation: twinkleSmall 4s ease-in-out infinite;
}

@keyframes twinkleBig {
    0%,
    100% {
        opacity: 0.6;
        transform: translate(0, 0);
    }
    25% {
        opacity: 0.95;
        transform: translate(-0.3%, -0.3%);
    }
    50% {
        opacity: 0.55;
        transform: translate(0.3%, 0.2%);
    }
    75% {
        opacity: 0.9;
        transform: translate(-0.2%, 0.3%);
    }
}

@keyframes twinkleMedium {
    0%,
    100% {
        opacity: 0.5;
        transform: translate(0, 0);
    }
    30% {
        opacity: 0.8;
        transform: translate(0.4%, -0.2%);
    }
    60% {
        opacity: 0.45;
        transform: translate(-0.3%, 0.4%);
    }
    85% {
        opacity: 0.85;
        transform: translate(0.2%, -0.3%);
    }
}

@keyframes twinkleSmall {
    0%,
    100% {
        opacity: 0.4;
    }
    50% {
        opacity: 0.75;
    }
}

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 1.2rem 2rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    background: transparent;
    backdrop-filter: blur(0px);
}
.navbar.scrolled {
    background: rgba(6, 8, 15, 0.6);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.4);
    padding: 0.8rem 2rem;
    border-bottom: 1px solid var(--glass-border);
}
.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}
.logo {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--white);
    text-decoration: none;
    letter-spacing: -0.5px;
    transition: all 0.3s ease;
}
.logo span {
    color: var(--secondary);
    transition: all 0.3s ease;
}
.logo:hover span {
    color: var(--accent);
    text-shadow: 0 0 20px rgba(6, 182, 212, 0.5);
}
.nav-links {
    display: flex;
    list-style: none;
    gap: 2.5rem;
    align-items: center;
}
.nav-links a {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    transition: all 0.3s ease;
    position: relative;
    padding: 0.3rem 0;
}
.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--secondary);
    transition: width 0.3s ease;
    border-radius: 2px;
}
.nav-links a:hover,
.nav-links a.active {
    color: var(--white);
}
.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}
.hamburger {
    display: none;
    cursor: pointer;
    flex-direction: column;
    gap: 6px;
    z-index: 1001;
}
.hamburger span {
    display: block;
    width: 28px;
    height: 2.5px;
    background: var(--white);
    transition: all 0.3s ease;
    border-radius: 2px;
}
.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}
.hamburger.active span:nth-child(2) {
    opacity: 0;
}
.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    background: transparent;
    z-index: 1;
}
.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 30% 50%, rgba(37, 99, 235, 0.2) 0%, transparent 50%),
        radial-gradient(circle at 70% 50%, rgba(14, 165, 233, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 50% 80%, rgba(6, 182, 212, 0.12) 0%, transparent 50%);
    animation: floatBG 18s ease-in-out infinite;
    z-index: 0;
}


.hero .container {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}
.hero-text {
    animation: slideInLeft 1s ease-out;
}
@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-60px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}
.hero-text .greeting {
    font-size: 1.2rem;
    color: var(--secondary);
    margin-bottom: 0.3rem;
    font-weight: 500;
    letter-spacing: 1px;
    animation: fadeInUp 0.8s ease-out 0.2s both;
}
.hero-text h1 {
    font-size: 3.8rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--white) 0%, var(--secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: fadeInUp 0.8s ease-out 0.4s both;
}
.hero-text .tagline {
    font-size: 1.15rem;
    color: var(--gray);
    margin-bottom: 1.8rem;
    line-height: 1.7;
    animation: fadeInUp 0.8s ease-out 0.6s both;
}
.hero-text .tagline strong {
    color: var(--secondary);
}
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
.cta-buttons {
    display: flex;
    gap: 1rem;
    animation: fadeInUp 0.8s ease-out 0.9s both;
}
.btn {
    padding: 0.85rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    font-size: 1rem;
    letter-spacing: 0.3px;
    display: inline-block;
}
.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: var(--white);
    box-shadow: 0 4px 20px rgba(37, 99, 235, 0.4);
}
.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(37, 99, 235, 0.6);
}
.btn-outline {
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: var(--white);
    background: transparent;
}
.btn-outline:hover {
    border-color: var(--secondary);
    background: rgba(255, 255, 255, 0.05);
    transform: translateY(-3px);
}
.hero-image {
    animation: slideInRight 1s ease-out;
    display: flex;
    justify-content: center;
    align-items: center;
}
@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(60px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}
.profile-photo-wrapper {
    position: relative;
    width: 300px;
    height: 300px;
}
.profile-photo-wrapper::before {
    content: '';
    position: absolute;
    inset: -8px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--accent), var(--secondary));
    animation: rotateBorder 4s linear infinite;
    z-index: 0;
}
@keyframes rotateBorder {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}
.profile-photo {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    position: relative;
    z-index: 1;
    border: 4px solid var(--dark);
    transition: all 0.3s ease;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 8rem;
    overflow: hidden;
}
.profile-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.profile-photo:hover {
    transform: scale(1.05);
    box-shadow: 0 0 40px rgba(14, 165, 233, 0.3);
}

/* ========== GLOBAL SECTION ========== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
    z-index: 1;
}
section {
    padding: 3rem 2rem;
    position: relative;
    z-index: 1;
    background: transparent !important;
    scroll-margin-top: 100px;
}
.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 2.5rem;
    background: linear-gradient(135deg, var(--white), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    z-index: 1;
}
.card {
    background: var(--card-bg);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 2rem;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
}
.card:hover {
    transform: translateY(-5px);
    border-color: rgba(14, 165, 233, 0.4);
    box-shadow: 0 15px 40px rgba(14, 165, 233, 0.15);
}
.text-accent {
    color: var(--secondary);
    font-weight: 600;
}
.badge {
    background: rgba(37, 99, 235, 0.25);
    border: 1px solid rgba(37, 99, 235, 0.35);
    color: var(--secondary);
    padding: 0.3rem 1rem;
    border-radius: 50px;
    font-size: 0.85rem;
    display: inline-block;
    transition: all 0.3s ease;
}
.badge:hover {
    background: rgba(37, 99, 235, 0.4);
    transform: scale(1.05);
}
.badge-gold {
    background: rgba(245, 158, 11, 0.2);
    border: 1px solid rgba(245, 158, 11, 0.4);
    color: var(--gold);
}

.timeline-item-with-logo {
    display: flex;
    gap: 1.2rem;
    align-items: flex-start;
    margin-bottom: 1.8rem;
    padding-left: 0;
    border-left: none;
}

.logo-placeholder {
    width: 50px;
    height: 50px;
    flex-shrink: 0;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    transition: all 0.3s ease;
}

.logo-placeholder img {
    width: 80%;
    height: 80%;
    object-fit: contain;
    opacity: 0.9;
}

.timeline-item-with-logo:hover .logo-placeholder {
    border-color: var(--secondary);
    box-shadow: 0 0 15px rgba(14, 165, 233, 0.25);
    transform: scale(1.05);
}

.timeline-content {
    flex: 1;
    position: relative;
    padding-left: 1.5rem;
    border-left: 2px solid var(--secondary);
}

.timeline-content::before {
    content: '';
    position: absolute;
    left: -7px;
    top: 4px;
    width: 12px;
    height: 12px;
    background: var(--secondary);
    border-radius: 50%;
}

.timeline-content h4 {
    color: var(--white);
    margin-bottom: 0.3rem;
    font-size: 1.05rem;
}

.timeline-content .date {
    color: var(--secondary);
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
}

.timeline-content p {
    color: var(--gray);
    font-size: 0.9rem;
    line-height: 1.6;
}

@media (max-width: 768px) {
    .timeline-item-with-logo {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 0.8rem;
    }

    .logo-placeholder {
        width: 55px;
        height: 55px;
    }

    .timeline-content {
        padding-left: 0;
        border-left: none;
        padding-top: 0.5rem;
        border-top: 2px solid var(--secondary);
    }

    .timeline-content::before {
        left: 50%;
        top: -7px;
        transform: translateX(-50%);
    }
}


.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
    position: relative;
    z-index: 1;
}
.skill-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-top: 1.5rem;
}
.timeline-item {
    position: relative;
    padding-left: 2rem;
    margin-bottom: 2rem;
    border-left: 2px solid var(--secondary);
}
.timeline-item::before {
    content: '';
    position: absolute;
    left: -7px;
    top: 0;
    width: 12px;
    height: 12px;
    background: var(--secondary);
    border-radius: 50%;
}
.timeline-item h4 {
    color: var(--white);
    margin-bottom: 0.3rem;
}
.timeline-item .date {
    color: var(--secondary);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.achievement-card {
    display: flex;
    gap: 2rem;
    background: var(--card-bg);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 2rem;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    transition: all 0.3s ease;
    margin-bottom: 2rem;
    align-items: center;
    position: relative;
    z-index: 1;
}
.achievement-card:hover {
    transform: translateY(-5px);
    border-color: rgba(245, 158, 11, 0.5);
    box-shadow: 0 15px 40px rgba(245, 158, 11, 0.2);
}
.achievement-photo {
    width: 200px;
    height: 150px;
    border-radius: 14px;
    object-fit: cover;
    flex-shrink: 0;
    background: linear-gradient(135deg, var(--primary-dark), var(--dark));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    border: 2px solid var(--glass-border);
    overflow: hidden;
}
.achievement-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.achievement-info h3 {
    font-size: 1.3rem;
    color: var(--white);
    margin-bottom: 0.3rem;
}
.achievement-info .year {
    color: var(--gold);
    font-weight: 600;
    margin-bottom: 0.5rem;
}
.achievement-info p {
    color: var(--gray);
    font-size: 0.95rem;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 2rem;
    position: relative;
    z-index: 1;
}
.portfolio-card {
    background: var(--card-bg);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}
.portfolio-card:hover {
    transform: translateY(-10px);
    border-color: rgba(14, 165, 233, 0.5);
    box-shadow: 0 20px 50px rgba(14, 165, 233, 0.2);
}
.portfolio-card-image {
    height: 200px;
    background: linear-gradient(135deg, var(--primary-dark), var(--dark));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    position: relative;
    overflow: hidden;
}
.portfolio-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.portfolio-card-body {
    padding: 1.8rem;
}
.portfolio-card-body h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}
.portfolio-card-body p {
    color: var(--gray);
    font-size: 0.95rem;
    margin-bottom: 1rem;
}
.tech-stack {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 1.2rem;
}
.tech-stack span {
    background: rgba(37, 99, 235, 0.2);
    color: var(--secondary);
    padding: 0.3rem 0.9rem;
    border-radius: 50px;
    font-size: 0.8rem;
    border: 1px solid rgba(37, 99, 235, 0.3);
}

.contact {
    padding-top: 8rem;
    padding-bottom: 8rem;
}
.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    text-align: center;
    position: relative;
    z-index: 1;
}
.contact-item {
    background: var(--card-bg);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 2rem 1.5rem;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    transition: all 0.3s ease;
    text-decoration: none;
    color: var(--light);
}
.contact-item:hover {
    transform: translateY(-5px);
    border-color: var(--secondary);
    box-shadow: 0 10px 30px rgba(14, 165, 233, 0.2);
}
.contact-icon {
    font-size: 2.2rem;
    margin-bottom: 0.8rem;
}
.contact-label {
    color: var(--gray);
    font-size: 0.9rem;
    margin-bottom: 0.3rem;
}
.contact-value {
    color: var(--white);
    font-weight: 500;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    position: relative;
    z-index: 1;
}
.gallery-item {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    aspect-ratio: 1 / 1;
    border: 2px solid transparent;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    background: rgba(15, 23, 42, 0.3);
}
.gallery-item:hover {
    transform: scale(1.04);
    border-color: rgba(14, 165, 233, 0.7);
    box-shadow: 0 0 25px rgba(14, 165, 233, 0.3), 0 10px 30px rgba(0, 0, 0, 0.5);
    z-index: 2;
}
.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}
.gallery-item:hover img {
    transform: scale(1.1);
}

@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
}
@media (max-width: 480px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.8rem;
    }
}

footer {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 2.5rem 2rem;
    background: rgba(8, 12, 23, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
    color: var(--gray);
}
footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background:
        radial-gradient(ellipse at 50% 0%, rgba(37, 99, 235, 0.15) 0%, transparent 60%),
        radial-gradient(ellipse at 50% 100%, rgba(6, 182, 212, 0.08) 0%, transparent 50%);
    pointer-events: none;
}
footer .container {
    position: relative;
    z-index: 1;
}
footer span {
    color: var(--secondary);
    font-weight: 600;
}


@media (max-width: 1199px) {
    .hero-text h1 {
        font-size: 3.2rem;
    }
    .container {
        max-width: 960px;
    }
}

@media (max-width: 991px) {
    .hero-text h1 {
        font-size: 2.8rem;
    }
    .hero .container {
        gap: 2rem;
    }
    .about-content {
        gap: 2rem;
    }
}

@media (max-width: 767px) {
    section {
        padding: 4rem 1.5rem;
    }
    .section-title {
        font-size: 1.8rem;
        margin-bottom: 2rem;
    }
    .hero-text h1 {
        font-size: 2.2rem;
        text-align: center;
    }
    .hero-text .greeting {
        text-align: center;
    }
    .hero-text .tagline {
        text-align: center;
        font-size: 1rem;
    }
    .cta-buttons {
        justify-content: center;
    }
    .card {
        padding: 1.5rem;
    }
    
    .portfolio-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .hero-text h1 {
        font-size: 1.8rem;
    }
    .btn {
        width: 100%;
        text-align: center;
    }
    .cta-buttons {
        flex-direction: column;
        width: 100%;
    }
    .profile-photo-wrapper {
        width: 180px;
        height: 180px;
    }
    .contact-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        height: 100vh;
        background: rgba(6, 8, 15, 0.95);
        backdrop-filter: blur(30px);
        flex-direction: column;
        justify-content: center;
        gap: 2.5rem;
        transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 1000;
    }
    .nav-links.active {
        right: 0;
    }
    .hero .container,
    .about-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .hero-image {
        order: -1;
    }
    .profile-photo-wrapper {
        width: 200px;
        height: 200px;
    }
    .hero-text h1 {
        font-size: 2.5rem;
    }
    .cta-buttons {
        justify-content: center;
        flex-wrap: wrap;
    }
    .section-title {
        font-size: 2rem;
    }
    .grid-2 {
        grid-template-columns: 1fr;
    }
    .achievement-card {
        flex-direction: column;
        text-align: center;
    }
    .achievement-photo {
        width: 100%;
        height: 180px;
    }
}

.cert-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    position: relative;
    z-index: 1;
}
.cert-card {
    background: var(--card-bg);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 1.8rem;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.cert-card:hover {
    transform: translateY(-5px);
    border-color: rgba(14, 165, 233, 0.5);
    box-shadow: 0 12px 35px rgba(14, 165, 233, 0.18);
}
.cert-content h4 {
    color: var(--white);
    margin-bottom: 0.5rem;
    font-size: 1.05rem;
}
.cert-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    cursor: pointer;
}

.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    z-index: 9999;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    cursor: pointer;
}
.modal-overlay.active {
    display: flex;
}
.modal-content {
    position: relative;
    max-width: 750px;
    max-height: 85vh;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 0 60px rgba(14, 165, 233, 0.4);
    animation: modalIn 0.3s ease-out;
    cursor: default;
}
.modal-content img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 16px;
}
.modal-close {
    position: absolute;
    top: 12px;
    right: 18px;
    font-size: 2.2rem;
    color: var(--white);
    cursor: pointer;
    z-index: 10;
    opacity: 0.8;
    transition: all 0.2s;
    line-height: 1;
    text-shadow: 0 0 10px rgba(0,0,0,0.5);
}
.modal-close:hover {
    opacity: 1;
    transform: scale(1.15);
    color: var(--secondary);
}

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

@media (max-width: 768px) {
    .modal-content {
        max-width: 95vw;
    }
    .cert-grid {
        grid-template-columns: 1fr;
    }
}

.music-player-section {
    padding: 0 2rem 1.5rem 2rem !important;
    margin-top: -1rem;
}

.music-player-card {
    max-width: 650px;
    margin: 0 auto;
    background: rgba(15, 23, 42, 0.65);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    overflow: hidden;
    transition: all 0.4s ease;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}

.music-player-card.collapsed .music-player-body {
    display: none;
}

.music-player-card.collapsed .music-toggle-btn i {
    transform: rotate(180deg);
}

.music-player-header {
    display: flex;
    align-items: center;
    padding: 1rem 1.5rem;
    gap: 1rem;
    cursor: default;
}

.music-icon {
    width: 45px;
    height: 45px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    color: var(--white);
    flex-shrink: 0;
    animation: musicPulse 3s ease-in-out infinite;
}

@keyframes musicPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(14, 165, 233, 0.4); }
    50% { box-shadow: 0 0 0 12px rgba(14, 165, 233, 0); }
}

.music-player-card.playing .music-icon {
    animation: musicPulse 1.5s ease-in-out infinite;
}

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

.music-title {
    color: var(--white);
    font-size: 1rem;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 0.2rem;
}

.music-artist {
    color: var(--gray);
    font-size: 0.8rem;
}

.music-toggle-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--gray);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
}

.music-toggle-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
}

.music-toggle-btn i {
    transition: transform 0.4s ease;
}

.music-player-body {
    padding: 0 1.5rem 1.5rem;
    animation: fadeInDown 0.3s ease-out;
}

@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.music-progress-container {
    margin-bottom: 1rem;
}

.music-progress-bar {
    width: 100%;
    height: 5px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    position: relative;
    margin-bottom: 0.4rem;
    pointer-events: none;
}

.music-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    border-radius: 10px;
    width: 0%;
    transition: width 0.1s linear;
    position: relative;
}

.music-progress-thumb {
    position: absolute;
    top: 50%;
    right: -6px;
    transform: translateY(-50%);
    width: 14px;
    height: 14px;
    background: var(--white);
    border-radius: 50%;
    box-shadow: 0 0 8px rgba(14, 165, 233, 0.5);
    display: none;
}

.music-progress-bar:hover .music-progress-thumb {
    display: none;
}

.music-time {
    display: flex;
    justify-content: space-between;
    color: var(--gray);
    font-size: 0.75rem;
}

.music-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 1.2rem;
}

.music-ctrl-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--white);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.music-ctrl-btn:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: var(--secondary);
}

.music-play-btn {
    width: 55px;
    height: 55px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border: none;
    font-size: 1.2rem;
    box-shadow: 0 4px 20px rgba(37, 99, 235, 0.4);
}

.music-play-btn:hover {
    transform: scale(1.08);
    box-shadow: 0 6px 25px rgba(37, 99, 235, 0.6);
}

.music-playlist {
    margin-bottom: 1rem;
}

.playlist-label {
    color: var(--gray);
    font-size: 0.8rem;
    margin-bottom: 0.5rem;
}

.playlist-items {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.playlist-item {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--gray);
    padding: 0.4rem 1rem;
    border-radius: 50px;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.playlist-item:hover {
    background: rgba(37, 99, 235, 0.2);
    border-color: var(--secondary);
    color: var(--white);
}

.playlist-item.active {
    background: rgba(37, 99, 235, 0.3);
    border-color: var(--secondary);
    color: var(--white);
    font-weight: 500;
}

.music-volume {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    color: var(--gray);
    font-size: 0.9rem;
}

.volume-slider {
    flex: 1;
    -webkit-appearance: none;
    appearance: none;
    height: 4px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    outline: none;
    cursor: pointer;
}

.volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 14px;
    height: 14px;
    background: var(--secondary);
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 0 8px rgba(14, 165, 233, 0.4);
}

.music-expand-btn {
    display: none;
    width: 100%;
    background: rgba(37, 99, 235, 0.2);
    border: 1px solid rgba(37, 99, 235, 0.3);
    color: var(--secondary);
    padding: 0.7rem;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
    gap: 0.5rem;
    align-items: center;
    justify-content: center;
}

.music-expand-btn:hover {
    background: rgba(37, 99, 235, 0.35);
    color: var(--white);
}

.music-player-card.collapsed .music-expand-btn {
    display: flex;
}

@media (max-width: 768px) {
    .music-player-card {
        max-width: 100%;
    }
    .music-play-btn {
        width: 48px;
        height: 48px;
    }

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



