/* CSS Reset & Variables */
:root {
    --bg-color: #0b0724;
    /* Deep Navy */
    --card-bg: rgba(27, 18, 81, 0.4);
    /* Navy Glass */
    --text-primary: #ffffff;
    --text-secondary: #c2c1bf;
    /* Silver */
    --accent-color: #c2c1bf;
    /* Silver */
    --accent-glow: #4d46f5;
    /* Electric Blue for pop */
    --highlight: #ffffff;
    /* White */
    --accent-gradient: linear-gradient(135deg, #85818f 0%, #ffffff 50%, #85818f 100%);
    /* Silver Gradient */
    --glass-border: rgba(194, 193, 191, 0.2);
    --glass-highlight: rgba(255, 255, 255, 0.08);

    --font-heading: 'Space Grotesk', sans-serif;
    --font-body: 'Outfit', sans-serif;

    --transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    /* Smooth custom scrollbar */
    scrollbar-width: thin;
    scrollbar-color: var(--accent-color) var(--bg-color);
}

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

/* Noise Texture Overlay */
.noise-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    pointer-events: none;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.05'/%3E%3C/svg%3E");
    opacity: 0.05;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

/* Typography */
h1,
h2,
h3 {
    font-family: var(--font-heading);
    font-weight: 700;
    letter-spacing: -0.02em;
}

.section-title {
    font-size: 3rem;
    text-align: center;
    margin-bottom: 4rem;
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(to bottom, #fff, #a0a0b0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.gradient-text {
    background: var(--accent-gradient);
    background-size: 200% auto;
    animation: shine 4s linear infinite;
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 15px rgba(194, 193, 191, 0.4));
}

@keyframes shine {
    to {
        background-position: 200% center;
    }
}

.stroked-text {
    color: transparent;
    -webkit-text-stroke: 1px var(--text-secondary);
    opacity: 0.5;
    transition: var(--transition);
}

.stroked-text:hover {
    color: var(--accent-glow);
    opacity: 1;
    -webkit-text-stroke: 0px;
    text-shadow: 0 0 20px var(--accent-color);
}

/* Buttons */
.btn-primary,
.btn-secondary {
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-weight: 600;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    display: inline-block;
    position: relative;
    overflow: hidden;
    font-size: 1rem;
    letter-spacing: 0.5px;
}

.btn-primary {
    background: var(--accent-color);
    color: var(--bg-color);
    /* Dark text for Silver/White background */
    font-weight: 700;
    box-shadow: 0 4px 30px rgba(194, 193, 191, 0.3);
    z-index: 1;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, var(--accent-color), var(--highlight));
    z-index: -1;
    transition: opacity 0.4s ease;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 40px rgba(194, 193, 191, 0.5);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(5px);
    color: white;
    margin-left: 1rem;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--highlight);
}

/* Navbar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5%;
    /* Reduced padding */
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    background: rgba(5, 5, 17, 0.7);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
}

.logo-link {
    display: flex;
    align-items: center;
}

.logo-img {
    height: 50px;
    /* Reverted to 50px */
    width: 50px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--highlight);
    box-shadow: 0 0 25px rgba(194, 193, 191, 0.5);
    transition: var(--transition);
}

.logo-img:hover {
    transform: scale(1.1) rotate(5deg);
    border-color: var(--accent-color);
}

/* Scroll Hide Classes */
.nav-links {
    display: flex;
    gap: 2.5rem;
    align-items: center;
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.scrolled .nav-links {
    opacity: 0;
    pointer-events: none;
    transform: translateY(-20px);
}

.scrolled {
    background: transparent !important;
    backdrop-filter: none !important;
    border-bottom: none !important;
}

.nav-links a {
    font-size: 0.95rem;
    font-weight: 500;
    transition: var(--transition);
    opacity: 0.8;
}

.nav-links a:hover {
    opacity: 1;
    color: var(--highlight);
}

.hamburger {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 0 5%;
    position: relative;
    overflow: hidden;
}

.hero-content {
    max-width: 700px;
    z-index: 2;
}

.badge {
    background: rgba(194, 193, 191, 0.1);
    color: var(--highlight);
    padding: 0.5rem 1.2rem;
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    display: inline-block;
    border: 1px solid rgba(194, 193, 191, 0.3);
    box-shadow: 0 0 20px rgba(194, 193, 191, 0.1);
    letter-spacing: 1px;
    text-transform: uppercase;
}

.hero h1 {
    font-size: 4.5rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.hero p {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    max-width: 500px;
}

/* Hero Visuals */
.hero-visual {
    position: absolute;
    top: 0;
    right: 0;
    width: 60%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

.glow-circle {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.4;
}

.circle-1 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, var(--accent-color), transparent);
    top: -10%;
    right: -10%;
    animation: float 10s ease-in-out infinite;
}

.circle-2 {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, var(--highlight), transparent);
    bottom: 10%;
    right: 20%;
    animation: float 12s ease-in-out infinite reverse;
}

@keyframes float {

    0%,
    100% {
        transform: translate(0, 0);
    }

    50% {
        transform: translate(-30px, 40px);
    }
}

/* Glass Cards */
/* Glass Cards */
.glass-panel {
    background: var(--card-bg);
    backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    box-shadow:
        inset 0 0 0 1px var(--glass-highlight),
        0 10px 30px -10px rgba(0, 0, 0, 0.5);
    border-radius: 20px;
    transition: var(--transition);
}

.glass-panel:hover {
    border-color: var(--highlight);
    background: rgba(40, 20, 10, 0.5);
    box-shadow:
        0 15px 40px -10px rgba(0, 0, 0, 0.7),
        inset 0 0 0 1px rgba(255, 255, 255, 0.2),
        0 0 20px rgba(194, 193, 191, 0.2);
    transform: translateY(-5px);
}

/* Sections */
.section {
    padding: 8rem 5%;
}

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

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

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

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

.stat-card {
    padding: 2.5rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.stat-card h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.stat-card p {
    font-size: 0.85rem;
    color: var(--accent-glow);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

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

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    width: 2px;
    height: 100%;
    background: linear-gradient(to bottom, transparent, var(--accent-glow), var(--highlight), var(--accent-glow), transparent);
    transform: translateX(-50%);
    box-shadow: 0 0 15px var(--accent-glow);
}

.timeline-item {
    margin-bottom: 4rem;
    position: relative;
    width: 50%;
}

.timeline-item:nth-child(odd) {
    left: 0;
    padding-right: 3rem;
    text-align: right;
}

.timeline-item:nth-child(even) {
    left: 50%;
    padding-left: 3rem;
    text-align: left;
}

.timeline-item::after {
    content: '';
    position: absolute;
    width: 12px;
    height: 12px;
    background: var(--bg-color);
    border: 2px solid var(--accent-glow);
    border-radius: 50%;
    top: 0;
    box-shadow: 0 0 15px var(--accent-glow);
    z-index: 2;
}

.timeline-item:nth-child(odd)::after {
    right: -7px;
}

.timeline-item:nth-child(even)::after {
    left: -7px;
}

.timeline-content {
    padding: 2rem;
    position: relative;
}

.role {
    display: inline-block;
    font-size: 0.8rem;
    color: var(--highlight);
    margin-bottom: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: 1px solid rgba(194, 193, 191, 0.3);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    background: rgba(194, 193, 191, 0.1);
}

.timeline-content h3 {
    margin-bottom: 0.8rem;
    font-size: 1.5rem;
}

.timeline-content p {
    color: var(--text-secondary);
    font-size: 1rem;
}

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

.skill-card {
    padding: 3rem 2rem;
    text-align: center;
}

.skill-card i {
    font-size: 2.5rem;
    background: linear-gradient(135deg, var(--accent-glow), var(--highlight));
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 1.5rem;
    filter: drop-shadow(0 0 10px rgba(157, 78, 221, 0.3));
}

.skill-card h3 {
    margin-bottom: 1rem;
    font-size: 1.4rem;
}

.skill-card p {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.7;
}

/* Footer */
footer {
    text-align: center;
    padding: 8rem 5% 3rem;
    background: radial-gradient(circle at center top, rgba(15, 15, 31, 1), var(--bg-color));
    border-top: 1px solid var(--glass-border);
}

.footer-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    background: linear-gradient(to bottom, #fff, #a0a0b0);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.social-links {
    margin-top: 3rem;
    gap: 2rem;
}

.social-links a {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    font-size: 1.4rem;
    color: var(--text-secondary);
    position: relative;
    overflow: hidden;
}

.social-links a:hover {
    background: var(--accent-gradient);
    border-color: var(--highlight);
    transform: translateY(-5px) scale(1.1);
    color: #080505;
    /* Black/Dark text on silver */
    box-shadow: 0 0 25px rgba(194, 193, 191, 0.6);
}

/* Mobile Menu Overlay */
@media screen and (max-width: 768px) {
    .nav-links {
        position: fixed;
        right: -100%;
        top: 0;
        height: 100vh;
        width: 100%;
        background: rgba(5, 5, 17, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: center;
        transition: 0.5s cubic-bezier(0.6, 0, 0.2, 1);
        z-index: 998;
    }

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

    .nav-links a {
        font-size: 2rem;
        font-weight: 700;
    }

    .header-text {
        font-size: 3rem;
    }

    .hero h1 {
        font-size: 2.8rem;
    }

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

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

    .timeline::before {
        left: 20px;
    }

    .timeline-item {
        width: 100%;
        padding-left: 60px;
        padding-right: 0;
        text-align: left;
    }

    .timeline-item:nth-child(odd),
    .timeline-item:nth-child(even) {
        left: 0;
        text-align: left;
        padding-left: 60px;
    }

    .timeline-item:nth-child(odd)::after,
    .timeline-item:nth-child(even)::after {
        left: 13px;
    }
}

/* Animations */
.hidden {
    opacity: 0;
    transform: translateY(40px) scale(0.95);
    filter: blur(5px);
    transition: all 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.visible {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
}