@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&family=Outfit:wght@300;400;500;600;700;800&family=Fira+Code:wght@400;500&display=swap');

:root {
    /* Premium Dark Theme */
    --bg-main: #09090b;
    --bg-card: rgba(24, 24, 27, 0.4);
    --bg-card-hover: rgba(39, 39, 42, 0.6);
    
    /* Accents (Elegant Green) */
    --accent-gradient: linear-gradient(135deg, #34d399 0%, #059669 100%);
    --accent-solid: #10b981;
    --accent-glow: rgba(16, 185, 129, 0.4);
    
    /* Text */
    --text-primary: #f8fafc;
    --text-secondary: #a1a1aa;
    --text-tertiary: #71717a;
    
    /* Borders & UI */
    --border-glass: rgba(255, 255, 255, 0.08);
    --border-hover: rgba(16, 185, 129, 0.3);
    
    /* Typography */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    --font-mono: 'Fira Code', monospace;
    
    /* Animation */
    --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
    scroll-behavior: smooth;
    background-color: var(--bg-main);
    overflow-x: hidden;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-main);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    width: 100%;
    position: relative;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Custom Cursor Glow */
.cursor-glow {
    position: fixed;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.1) 0%, rgba(52, 211, 153, 0.05) 30%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    transform: translate(-50%, -50%);
    z-index: 0;
    transition: opacity 0.3s ease;
}

/* Background Grid Overlay */
.bg-grid {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-image: 
        linear-gradient(to right, rgba(255,255,255,0.02) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255,255,255,0.02) 1px, transparent 1px);
    background-size: 40px 40px;
    z-index: 0;
    pointer-events: none;
    mask-image: radial-gradient(circle at center, black, transparent 80%);
    -webkit-mask-image: radial-gradient(circle at center, black, transparent 80%);
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-main);
}
::-webkit-scrollbar-thumb {
    background: #27272a;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #3f3f46;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--text-primary);
    line-height: 1.1;
    letter-spacing: -0.02em;
}

a {
    color: var(--text-primary);
    text-decoration: none;
    transition: var(--transition-smooth);
}

a:hover {
    color: #6ee7b7;
}

section {
    padding: 120px 0;
    max-width: 1100px;
    margin: 0 auto;
    width: 90%;
    position: relative;
    z-index: 2;
}

.section-title {
    font-size: clamp(32px, 5vw, 48px);
    font-weight: 700;
    margin-bottom: 60px;
    position: relative;
    display: inline-block;
}

.section-title span {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Navbar */
header {
    position: fixed;
    top: 0;
    width: 100%;
    height: 90px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 5%;
    z-index: 100;
    transition: var(--transition-smooth);
    background: transparent;
    border-bottom: 1px solid transparent;
}

header.scrolled {
    height: 70px;
    background: rgba(9, 9, 11, 0.7);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-glass);
}

.logo a {
    font-family: var(--font-heading);
    font-size: 28px;
    font-weight: 800;
    color: var(--text-primary);
    letter-spacing: -1px;
}

.logo a span {
    color: var(--accent-solid);
}

.nav-links {
    display: flex;
    gap: 40px;
    list-style: none;
}

.nav-links a {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    left: 0;
    background: var(--accent-gradient);
    transition: var(--transition-smooth);
}

.nav-links a:hover {
    color: var(--text-primary);
}

.nav-links a:hover::after, .nav-links a.active::after {
    width: 100%;
}
.nav-links a.active {
    color: var(--text-primary);
}

.hamburger {
    display: none;
    cursor: pointer;
    flex-direction: column;
    gap: 6px;
    z-index: 101;
}

.hamburger div {
    width: 28px;
    height: 2px;
    background-color: var(--text-primary);
    transition: var(--transition-smooth);
    border-radius: 2px;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    border-radius: 8px;
    font-family: var(--font-heading);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-smooth);
    letter-spacing: 0.5px;
}

.btn-outline {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border-glass);
}

.btn-outline:hover {
    border-color: var(--accent-solid);
    background: rgba(16, 185, 129, 0.05);
}

.btn-solid {
    background: var(--accent-gradient);
    color: #fff;
    border: none;
    position: relative;
    overflow: hidden;
}

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

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

.btn-solid:hover {
    box-shadow: 0 0 20px var(--accent-glow);
    transform: translateY(-2px);
    color: #fff;
}

/* Premium Glass Card */
.glass-card {
    background: var(--bg-card);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border-glass);
    border-radius: 16px;
    padding: 32px;
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.glass-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
}

.glass-card:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-hover);
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}

/* Hero Section */
#hero {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding-top: 80px;
}

.hero-badge {
    display: inline-block;
    padding: 6px 14px;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid var(--border-hover);
    border-radius: 20px;
    font-size: 13px;
    color: #6ee7b7;
    font-weight: 500;
    margin-bottom: 24px;
    font-family: var(--font-mono);
}

.hero-title {
    font-size: clamp(48px, 8vw, 84px);
    font-weight: 800;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.hero-role {
    font-size: clamp(32px, 5vw, 56px);
    font-weight: 700;
    color: var(--text-secondary);
    margin-bottom: 32px;
    height: 1.2em;
    display: flex;
    align-items: center;
}

.typing-text {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    border-right: 3px solid var(--accent-solid);
    padding-right: 8px;
    animation: blink 0.75s step-end infinite;
}

@keyframes blink {
    from, to { border-color: transparent }
    50% { border-color: var(--accent-solid) }
}

.hero-desc {
    max-width: 600px;
    color: var(--text-secondary);
    margin-bottom: 48px;
    font-size: 18px;
    line-height: 1.7;
}

.hero-cta {
    display: flex;
    gap: 20px;
}

/* Social Sidebar */
.social-sidebar {
    position: fixed;
    bottom: 0;
    left: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
    z-index: 10;
}

.social-sidebar::after {
    content: "";
    width: 1px;
    height: 100px;
    background: linear-gradient(to bottom, var(--border-glass), transparent);
    margin-top: 10px;
}

.social-icon {
    width: 22px;
    height: 22px;
    fill: var(--text-tertiary);
    transition: var(--transition-smooth);
}

.social-icon-stroke {
    width: 22px;
    height: 22px;
    stroke: var(--text-tertiary);
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: var(--transition-smooth);
}

.social-sidebar a:hover .social-icon {
    fill: #6ee7b7;
    transform: translateY(-4px) scale(1.1);
}
.social-sidebar a:hover .social-icon-stroke {
    stroke: #6ee7b7;
    transform: translateY(-4px) scale(1.1);
}

/* About Section */
.about-content {
    display: grid;
    grid-template-columns: 3fr 2fr;
    gap: 60px;
    align-items: center;
}

.about-text p {
    color: var(--text-secondary);
    margin-bottom: 20px;
    font-size: 17px;
}

.about-pic {
    position: relative;
    width: 100%;
    max-width: 300px;
    aspect-ratio: 1;
    margin: 0 auto;
}

.profile-img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background-size: cover;
    background-position: center;
    position: relative;
    z-index: 2;
    transition: var(--transition-smooth);
}

.about-pic::before {
    content: "";
    position: absolute;
    inset: -5px;
    border-radius: 50%;
    background: var(--accent-gradient);
    z-index: 1;
    animation: spin 4s linear infinite;
}

.about-pic::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: var(--bg-main);
    z-index: 1;
}

@keyframes spin {
    100% { transform: rotate(360deg); }
}

/* Skills Section */
.skills-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.skill-category h3 {
    font-size: 20px;
    margin-bottom: 24px;
    color: var(--text-primary);
}

.skill-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.skill-pill {
    padding: 8px 18px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-glass);
    border-radius: 30px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    transition: var(--transition-smooth);
    cursor: default;
}

.skill-pill:hover {
    color: #fff;
    border-color: var(--accent-solid);
    background: var(--accent-gradient);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px var(--accent-glow);
}

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

.timeline::before {
    content: '';
    position: absolute;
    width: 2px;
    background: var(--border-glass);
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -1px;
}

.timeline-item {
    padding: 10px 40px;
    position: relative;
    width: 50%;
    margin-bottom: 40px;
}

.timeline-item:nth-child(odd) {
    left: 0;
}

.timeline-item:nth-child(even) {
    left: 50%;
}

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

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

.exp-date {
    color: var(--text-tertiary);
    font-family: var(--font-mono);
    font-size: 14px;
    margin-bottom: 8px;
}

.exp-role {
    font-size: 22px;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.exp-company {
    color: #6ee7b7;
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 16px;
}

.exp-desc ul {
    list-style: none;
}

.exp-desc li {
    color: var(--text-secondary);
    font-size: 15px;
    margin-bottom: 12px;
    position: relative;
    padding-left: 24px;
}

.exp-desc li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--accent-solid);
}

/* Projects Section Bento Grid */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.project-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
}

.featured {
    grid-column: span 2;
}

.project-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 24px;
}

.project-icon {
    width: 40px;
    height: 40px;
    background: rgba(16, 185, 129, 0.1);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-solid);
}

.project-links a {
    color: var(--text-tertiary);
    margin-left: 12px;
}

.project-links a:hover {
    color: #6ee7b7;
}

.project-links svg {
    width: 22px;
    height: 22px;
    stroke: currentColor;
    fill: none;
}
.project-links svg.fill {
    fill: currentColor;
    stroke: none;
}

.project-title {
    font-size: 24px;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.project-desc {
    color: var(--text-secondary);
    font-size: 15px;
    margin-bottom: 24px;
    flex-grow: 1;
}

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

.project-tech span {
    font-family: var(--font-mono);
    font-size: 12px;
    color: #6ee7b7;
    background: rgba(16, 185, 129, 0.05);
    padding: 4px 10px;
    border-radius: 4px;
}

/* Education & Certificates */
.edu-cert-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.edu-list, .cert-grid {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.cert-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.edu-item {
    padding: 24px;
}

.edu-degree {
    font-size: 20px;
    margin-bottom: 6px;
}

.edu-school {
    color: var(--text-secondary);
    font-size: 15px;
    margin-bottom: 12px;
}

.edu-date {
    font-family: var(--font-mono);
    font-size: 13px;
    color: var(--text-tertiary);
    margin-bottom: 12px;
}

.cert-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px;
}

.cert-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: rgba(16, 185, 129, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-solid);
}

.cert-icon svg {
    width: 24px;
    height: 24px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.cert-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
}

/* Contact Section */
#contact {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 100px auto;
}

.contact-desc {
    color: var(--text-secondary);
    font-size: 18px;
    margin-bottom: 40px;
}

.contact-links {
    display: flex;
    justify-content: center;
}

/* Footer */
footer {
    text-align: center;
    padding: 30px;
    color: var(--text-tertiary);
    font-size: 14px;
    border-top: 1px solid var(--border-glass);
    background: rgba(9, 9, 11, 0.8);
}

/* Animations */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.fade-in.appear {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive Design */
@media (max-width: 900px) {
    .bento-grid, .skills-container {
        grid-template-columns: repeat(2, 1fr);
    }
    .featured {
        grid-column: span 2;
    }
    .about-content {
        grid-template-columns: 1fr;
    }
    .about-pic {
        order: -1;
    }
}

@media (max-width: 768px) {
    section {
        padding: 80px 0;
    }
    .hero-title {
        font-size: clamp(40px, 10vw, 60px);
    }
    .timeline::before {
        left: 20px;
    }
    .timeline-item {
        width: 100%;
        padding-left: 50px;
        padding-right: 0;
    }
    .timeline-item:nth-child(even) {
        left: 0;
    }
    .timeline-item::after, .timeline-item:nth-child(even):after {
        left: 12px;
    }
    .edu-cert-grid {
        grid-template-columns: 1fr;
    }
    .cert-grid {
        grid-template-columns: 1fr;
    }
    .social-sidebar {
        display: none;
    }
    .hamburger {
        display: flex;
    }
    .nav-links {
        position: fixed;
        top: 0;
        right: 0;
        width: 280px;
        height: 100vh;
        background: rgba(24, 24, 27, 0.95);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
        border-left: 1px solid var(--border-glass);
        transform: translateX(100%);
    }
    .nav-links.nav-active {
        transform: translateX(0);
    }
    .hamburger.toggle div:nth-child(1) { transform: rotate(-45deg) translate(-5px, 6px); }
    .hamburger.toggle div:nth-child(2) { opacity: 0; }
    .hamburger.toggle div:nth-child(3) { transform: rotate(45deg) translate(-5px, -6px); }
}

@media (max-width: 600px) {
    .bento-grid, .skills-container {
        grid-template-columns: 1fr;
    }
    .featured {
        grid-column: span 1;
    }
}
