/* --- Variables & Reset --- */
:root {
    --primary: #00d4ff;
    --primary-dim: rgba(0,212,255,0.12);
    --secondary: #0891b2;
    --dark: #080e1a;
    --dark-card: #0d1526;
    --dark-border: rgba(255,255,255,0.07);
    --light: #f0f6ff;
    --text: #cbd5e1;
    --text-light: #64748b;
    --white: #ffffff;
    --green: #10b981;
}

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

body {
    background-color: var(--dark);
    color: var(--text);
    font-family: 'DM Sans', sans-serif;
    line-height: 1.7;
}

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

/* --- Scrollbar --- */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: var(--dark); }
::-webkit-scrollbar-thumb { background: var(--primary); border-radius: 2px; }

/* --- Utility --- */
.section { padding: 100px 10%; }
.bg-alt { background-color: #0a1120; }

.section-label {
    font-family: 'Courier New', monospace;
    font-size: 0.75rem;
    color: var(--primary);
    letter-spacing: 4px;
    text-transform: uppercase;
    display: block;
    margin-bottom: 12px;
    opacity: 0.8;
}

.section-title {
    font-family: 'Syne', sans-serif;
    font-size: clamp(2rem, 4vw, 2.8rem);
    font-weight: 800;
    color: var(--white);
    margin-bottom: 60px;
    letter-spacing: -1px;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    width: 40px;
    height: 3px;
    background: var(--primary);
    position: absolute;
    bottom: -12px;
    left: 0;
}

.btn {
    padding: 12px 28px;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    display: inline-block;
    cursor: pointer;
    font-family: 'DM Sans', sans-serif;
}

.primary-btn {
    background: var(--primary);
    color: var(--dark);
    border: none;
    font-weight: 700;
    border-radius: 4px;
}
.primary-btn:hover {
    background: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,212,255,0.3);
}

.secondary-btn {
    border: 1.5px solid var(--primary);
    color: var(--primary);
    border-radius: 4px;
    margin-left: 12px;
}
.secondary-btn:hover {
    background: var(--primary-dim);
    transform: translateY(-2px);
}

/* --- Navbar --- */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 22px 10%;
    background: rgba(8, 14, 26, 0.9);
    backdrop-filter: blur(12px);
    color: var(--white);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--dark-border);
}

.logo {
    font-family: 'Syne', sans-serif;
    font-size: 1.4rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    color: white;
}
.logo span { color: var(--primary); }

.nav-links { display: flex; gap: 36px; align-items: center; }

.nav-links a {
    font-size: 0.88rem;
    color: var(--text-light);
    transition: color 0.2s;
    font-weight: 500;
    letter-spacing: 0.3px;
}
.nav-links a:hover { color: var(--primary); }

.back-btn {
    background: var(--dark-card);
    border: 1px solid var(--dark-border);
    color: var(--text) !important;
    padding: 7px 16px;
    border-radius: 4px;
    font-size: 0.82rem !important;
    transition: border-color 0.2s !important;
}
.back-btn:hover { border-color: var(--primary) !important; color: var(--primary) !important; }

.hamburger { display: none; cursor: pointer; color: white; font-size: 1.4rem; }

/* --- Hero --- */
.hero {
    min-height: 100vh;
    background: var(--dark);
    display: flex;
    justify-content: space-between;
    gap: 56px;
    align-items: center;
    text-align: left;
    position: relative;
    overflow: hidden;
    padding: 0 10%;
}

.hero-bg-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(0,212,255,0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0,212,255,0.03) 1px, transparent 1px);
    background-size: 50px 50px;
}

.hero-glow {
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(0,212,255,0.08) 0%, transparent 60%);
    top: 50%;
    right: 5%;
    transform: translateY(-50%);
    border-radius: 50%;
    pointer-events: none;
}

.hero-content { position: relative; z-index: 2; max-width: 700px; margin-left: auto; }

.hero-photo {
    position: relative;
    flex-shrink: 0;
    order: -1;
    width: min(32vw, 360px);
    aspect-ratio: 1;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid rgba(0,212,255,0.35);
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.45);
    z-index: 2;
}

.hero-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.hero-greeting {
    font-family: 'Courier New', monospace;
    font-size: 0.85rem;
    color: var(--primary);
    letter-spacing: 3px;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    opacity: 0;
    animation: fadeUp 0.6s ease forwards 0.2s;
}

.hero-greeting::before {
    content: '';
    width: 30px;
    height: 1px;
    background: var(--primary);
}

.hero h1 {
    font-family: 'Syne', sans-serif;
    font-size: clamp(3rem, 6vw, 5rem);
    font-weight: 800;
    color: var(--white);
    line-height: 1.0;
    letter-spacing: -2px;
    margin-bottom: 16px;
    opacity: 0;
    animation: fadeUp 0.6s ease forwards 0.35s;
}

.hero h1 span { color: var(--primary); }

.hero-role {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 32px;
    font-weight: 300;
    opacity: 0;
    animation: fadeUp 0.6s ease forwards 0.5s;
}

.hero-desc {
    font-size: 1rem;
    color: var(--text);
    max-width: 480px;
    margin-bottom: 40px;
    line-height: 1.8;
    opacity: 0;
    animation: fadeUp 0.6s ease forwards 0.65s;
}

.cta-buttons {
    opacity: 0;
    animation: fadeUp 0.6s ease forwards 0.8s;
}

.socials {
    margin-top: 40px;
    display: flex;
    gap: 20px;
    opacity: 0;
    animation: fadeUp 0.6s ease forwards 0.95s;
}

.socials a {
    color: var(--text-light);
    font-size: 1.2rem;
    transition: all 0.2s;
    width: 40px;
    height: 40px;
    border: 1px solid var(--dark-border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}
.socials a:hover {
    color: var(--primary);
    border-color: var(--primary);
    transform: translateY(-3px);
}

.scroll-hint {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: var(--text-light);
    font-size: 0.75rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    opacity: 0;
    animation: fadeUp 0.6s ease forwards 1.2s;
}

.scroll-line {
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, var(--primary), transparent);
    animation: scrollPulse 1.8s ease infinite;
}

@keyframes scrollPulse {
    0%, 100% { opacity: 0.3; transform: scaleY(1); }
    50% { opacity: 1; transform: scaleY(0.6); }
}

/* --- About --- */
.about-container {
    display: grid;
    grid-template-columns: 1fr;
    align-items: center;
    max-width: 900px;
}

.about-img-wrap {
    position: relative;
    width: 100%;
    max-width: 320px;
    aspect-ratio: 1;
    border-radius: 50%;
    overflow: hidden;
}

.about-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    filter: grayscale(20%);
    transition: filter 0.3s;
    border-radius: 50%;

}
.about-img-wrap img:hover { filter: grayscale(0); }

.about-img-wrap::before {
    content: '';
    position: absolute;
    inset: -8px;
    border: 1px solid var(--primary);
    border-radius: 50%;
    opacity: 0.3;
    top: 8px;
    left: 8px;
    right: -8px;
    bottom: -8px;
    pointer-events: none;
}

.about-text h3 {
    font-family: 'Syne', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    margin-bottom: 16px;
}

.about-text p { color: var(--text); margin-bottom: 16px; }

.about-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 32px;
    padding-top: 32px;
    border-top: 1px solid var(--dark-border);
}

.stat-item { text-align: center; }
.stat-num {
    font-family: 'Syne', sans-serif;
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary);
    display: block;
}
.stat-label { font-size: 0.8rem; color: var(--text-light); letter-spacing: 1px; text-transform: uppercase; }

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

.skill-category {
    background: var(--dark-card);
    padding: 28px;
    border: 1px solid var(--dark-border);
    border-radius: 8px;
    transition: border-color 0.3s, transform 0.3s;
}
.skill-category:hover {
    border-color: rgba(0,212,255,0.3);
    transform: translateY(-4px);
}

.skill-category-icon {
    font-size: 1.5rem;
    color: var(--primary);
    margin-bottom: 14px;
}

.skill-category h3 {
    font-family: 'Syne', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    color: white;
    margin-bottom: 18px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.skill-list { display: flex; flex-wrap: wrap; gap: 8px; }

.skill-tag {
    background: var(--primary-dim);
    color: var(--primary);
    padding: 5px 14px;
    border-radius: 20px;
    font-size: 0.82rem;
    font-weight: 500;
    border: 1px solid rgba(0,212,255,0.15);
    transition: background 0.2s;
}
.skill-tag:hover { background: rgba(0,212,255,0.2); }

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

.project-card {
    background: var(--dark-card);
    padding: 30px;
    border: 1px solid var(--dark-border);
    border-radius: 8px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary), transparent);
    opacity: 0;
    transition: opacity 0.3s;
}

.project-card:hover {
    transform: translateY(-6px);
    border-color: rgba(0,212,255,0.2);
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}
.project-card:hover::before { opacity: 1; }

.project-number {
    font-family: 'Courier New', monospace;
    font-size: 0.75rem;
    color: var(--primary);
    opacity: 0.5;
    margin-bottom: 12px;
}

.project-card h3 {
    font-family: 'Syne', sans-serif;
    font-size: 1.15rem;
    font-weight: 700;
    color: white;
    margin-bottom: 10px;
}

.project-card p { font-size: 0.92rem; color: var(--text); margin-bottom: 20px; }

.tech-stack { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 24px; }

.tech-stack span {
    font-size: 0.75rem;
    background: var(--dark);
    color: var(--text-light);
    padding: 4px 10px;
    border-radius: 3px;
    border: 1px solid var(--dark-border);
}

.project-links { display: flex; gap: 16px; }

.project-links a {
    color: var(--text-light);
    font-size: 0.85rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: color 0.2s;
}
.project-links a:hover { color: var(--primary); }

/* --- Timeline --- */
.timeline {
    max-width: 720px;
    margin: 0 auto;
    position: relative;
    padding-left: 32px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 8px;
    bottom: 0;
    width: 1px;
    background: linear-gradient(to bottom, var(--primary), transparent);
}

.timeline-item {
    margin-bottom: 44px;
    position: relative;
}

.timeline-item::before {
    content: '';
    width: 10px;
    height: 10px;
    background: var(--primary);
    border-radius: 50%;
    position: absolute;
    left: -36px;
    top: 6px;
    box-shadow: 0 0 0 4px rgba(0,212,255,0.15);
}

.timeline-content {
    background: var(--dark-card);
    padding: 24px 28px;
    border: 1px solid var(--dark-border);
    border-radius: 8px;
    transition: border-color 0.3s;
}
.timeline-content:hover { border-color: rgba(0,212,255,0.25); }

.timeline-content h4 {
    font-family: 'Syne', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    color: white;
    margin-bottom: 6px;
}

.date {
    font-family: 'Courier New', monospace;
    font-size: 0.78rem;
    color: var(--primary);
    display: inline-block;
    margin-bottom: 8px;
    opacity: 0.7;
}

.timeline-content p { font-size: 0.9rem; color: var(--text-light); }
.timeline-content p:first-of-type { color: var(--text); margin-bottom: 4px; font-weight: 500; }

/* --- Certifications --- */
.cert-container {
    display: flex;
    justify-content: center;
    gap: 24px;
    flex-wrap: wrap;
    margin-bottom: 50px;
}

.cert-card {
    background: var(--dark-card);
    border: 1px solid var(--dark-border);
    padding: 28px 32px;
    text-align: center;
    border-radius: 8px;
    width: 240px;
    transition: all 0.3s;
}
.cert-card:hover {
    border-color: rgba(0,212,255,0.3);
    transform: translateY(-4px);
}

.cert-card i { font-size: 1.8rem; color: var(--primary); margin-bottom: 14px; display: block; }
.cert-card h4 { font-family: 'Syne', sans-serif; font-weight: 700; color: white; margin-bottom: 6px; font-size: 0.95rem; }
.cert-card p { font-size: 0.82rem; color: var(--text-light); }

.resume-download { text-align: center; }
.resume-download p { color: var(--text-light); margin-bottom: 20px; }

/* --- Contact --- */
.contact-container {
    display: grid;
    grid-template-columns: 1fr 1.3fr;
    gap: 60px;
    align-items: start;
}

.contact-info h3 {
    font-family: 'Syne', sans-serif;
    font-size: 1.3rem;
    font-weight: 700;
    color: white;
    margin-bottom: 20px;
}

.contact-info p { color: var(--text-light); margin-bottom: 32px; }

.contact-item {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
}

.contact-icon {
    width: 44px;
    height: 44px;
    background: var(--primary-dim);
    border: 1px solid rgba(0,212,255,0.2);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    flex-shrink: 0;
}

.contact-item p { color: var(--text); font-size: 0.95rem; }

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 14px 18px;
    margin-bottom: 16px;
    background: var(--dark-card);
    border: 1px solid var(--dark-border);
    border-radius: 6px;
    color: var(--white);
    font-family: 'DM Sans', sans-serif;
    font-size: 0.92rem;
    transition: border-color 0.2s;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--primary);
}

.contact-form input::placeholder,
.contact-form textarea::placeholder { color: var(--text-light); }

.contact-form button {
    width: 100%;
    padding: 14px;
    background: var(--primary);
    color: var(--dark);
    border: none;
    border-radius: 6px;
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    font-family: 'DM Sans', sans-serif;
    transition: all 0.3s;
}
.contact-form button:hover {
    background: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,212,255,0.25);
}

/* --- Footer --- */
footer {
    background: #050b14;
    color: var(--text-light);
    text-align: center;
    padding: 32px 10%;
    border-top: 1px solid var(--dark-border);
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.footer-inner p { font-size: 0.85rem; }

.socials-footer { display: flex; gap: 16px; }
.socials-footer a {
    color: var(--text-light);
    font-size: 1rem;
    transition: color 0.2s;
}
.socials-footer a:hover { color: var(--primary); }

/* --- Animations --- */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(24px); }
    to { opacity: 1; transform: translateY(0); }
}

/* --- Responsive --- */
@media (max-width: 900px) {
    .hero-photo {
        position: static;
        transform: none;
        margin-top: 28px;
        width: min(55vw, 280px);
    }
    .hero {
        flex-direction: column;
        text-align: center;
        padding-top: 90px;
        padding-bottom: 80px;
    }
    .hero-content {
        max-width: 100%;
    }
    .hero-desc {
        margin-left: auto;
        margin-right: auto;
    }
    .cta-buttons,
    .socials {
        justify-content: center;
    }
    .about-container { text-align: left; }
    .contact-container { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .section { padding: 70px 6%; }

    .nav-links {
        display: none;
        position: fixed;
        top: 68px;
        left: 0;
        right: 0;
        background: rgba(8,14,26,0.98);
        flex-direction: column;
        text-align: center;
        padding: 24px 0;
        border-bottom: 1px solid var(--dark-border);
        gap: 20px;
    }
    .nav-links.active { display: flex; }
    .hamburger { display: block; }

    .hero h1 { font-size: 2.8rem; }
    .about-stats { grid-template-columns: repeat(3,1fr); }
}