/* =========================================
   VARIABLES & THEMING
   ========================================= */
:root {
    /* Color Palette Extracted from Requirements */
    --bg-dark: #0f172a;
    /* Background */
    --card-bg: rgba(30, 41, 59, 0.4);
    /* Card background - glassmorphism */
    --card-border: rgba(255, 255, 255, 0.08);
    --accent: #38bdf8;
    /* Accent color */
    --accent-glow: rgba(56, 189, 248, 0.4);
    --text-primary: #ffffff;
    /* Primary text */
    --text-secondary: #94a3b8;
    /* Secondary text */

    /* Layout & Utilities */
    --border-radius: 24px;
    --transition: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    --shadow-soft: 0 4px 24px -1px rgba(0, 0, 0, 0.2);
    --shadow-hover: 0 20px 40px -10px rgba(56, 189, 248, 0.15);
}

/* =========================================
   RESET & BASE STYLES
   ========================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    background-image:
        radial-gradient(circle at 15% 50%, rgba(56, 189, 248, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 85% 30%, rgba(56, 189, 248, 0.03) 0%, transparent 50%);
    background-attachment: fixed;
}

::selection {
    background: var(--accent);
    color: var(--bg-dark);
}

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

p {
    color: var(--text-secondary);
    font-weight: 400;
    letter-spacing: -0.01em;
}

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

ul {
    list-style: none;
}

/* Utilities */
.text-accent {
    color: var(--accent);
    background: linear-gradient(135deg, #38bdf8, #818cf8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.container {
    width: 90%;
    max-width: 1000px;
    margin: 0 auto;
}

.section-spacing {
    padding: 140px 0;
}

/* Section Titles (Apple Style) */
.section-title {
    font-size: 3.5rem;
    margin-bottom: 4.5rem;
    text-align: center;
    position: relative;
    color: var(--text-primary);
    background: linear-gradient(180deg, #ffffff 0%, #94a3b8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* =========================================
   NAVIGATION BAR
   ========================================= */
#navbar {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: max-content;
    padding: 12px 40px;
    z-index: 1000;
    transition: var(--transition);
    background-color: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--card-border);
    border-radius: 100px;
}

#navbar.scrolled {
    background-color: rgba(15, 23, 42, 0.8);
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.6);
    border-color: rgba(255, 255, 255, 0.15);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
}

.logo {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.5px;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links li a {
    font-weight: 500;
    font-size: 0.9rem;
    color: var(--text-secondary);
    position: relative;
    padding: 6px 12px;
    border-radius: 20px;
}

.nav-links li a:hover,
.nav-links li a.active {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.08);
}

.menu-toggle {
    display: none;
    cursor: pointer;
    font-size: 1.2rem;
    color: var(--text-primary);
    transition: var(--transition);
}

/* =========================================
   HERO SECTION
   ========================================= */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 120px;
}

.hero-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6rem;
}

.hero-content {
    flex: 1.2;
}

.greeting {
    color: var(--accent);
    font-weight: 600;
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 12px;
}

.greeting::before {
    content: '';
    width: 30px;
    height: 2px;
    background: var(--accent);
}

.name {
    font-size: 3rem;
    line-height: 1.2;
    padding-bottom: 0.1em;
    margin-bottom: 0.8rem;
    background: linear-gradient(180deg, #ffffff 0%, rgba(255, 255, 255, 0.7) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.role {
    font-size: 2.2rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    font-weight: 500;
    letter-spacing: -0.02em;
}

.tagline {
    font-size: 1.2rem;
    margin-bottom: 3.5rem;
    max-width: 480px;
    color: #cbd5e1;
    line-height: 1.7;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 36px;
    border-radius: 100px;
    font-weight: 600;
    font-size: 1.05rem;
    cursor: pointer;
    transition: var(--transition);
    letter-spacing: -0.01em;
}

.btn-primary {
    background-color: var(--text-primary);
    color: var(--bg-dark);
    box-shadow: 0 4px 14px 0 rgba(255, 255, 255, 0.2);
}

.btn-primary:hover {
    transform: translateY(-2px);
    background-color: var(--accent);
    box-shadow: 0 6px 20px rgba(56, 189, 248, 0.4);
    color: white;
}

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

/* Beautiful Avatar Glow */
.hero-image::before {
    content: '';
    position: absolute;
    width: 120%;
    height: 120%;
    background: radial-gradient(circle, rgba(56, 189, 248, 0.15) 0%, transparent 70%);
    z-index: 0;
}

.image-wrapper {
    position: relative;
    z-index: 1;
    border-radius: 50%;
    padding: 8px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.02));
    backdrop-filter: blur(10px);
}

.hero-image img {
    width: 100%;
    max-width: 380px;
    border-radius: 50%;
    box-shadow: var(--shadow-soft);
    object-fit: cover;
    aspect-ratio: 1/1;
    transition: var(--transition);
}

.hero-image:hover img {
    transform: scale(1.02);
}

/* =========================================
   ABOUT SECTION
   ========================================= */
.about .about-content {
    text-align: center;
    max-width: 860px;
    margin: 0 auto;
}

.about .about-content p {
    font-size: 2rem;
    line-height: 1.5;
    font-weight: 500;
    color: var(--text-primary);
    letter-spacing: -0.03em;
}

.about .about-content p span {
    color: var(--text-secondary);
}

/* =========================================
   SKILLS SECTION
   ========================================= */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px;
}

.skill-card {
    background: var(--card-bg);
    padding: 30px 20px;
    border-radius: var(--border-radius);
    text-align: center;
    border: 1px solid var(--card-border);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.skill-card i {
    font-size: 2.5rem;
    color: var(--text-primary);
    transition: var(--transition);
}

.skill-card span {
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--text-primary);
    letter-spacing: -0.02em;
}

.skill-card:hover {
    transform: translateY(-8px) scale(1.02);
    border-color: rgba(255, 255, 255, 0.2);
    background: rgba(30, 41, 59, 0.7);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.skill-card:hover i {
    color: var(--accent);
}

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

.project-card {
    background: var(--card-bg);
    border-radius: var(--border-radius);
    overflow: hidden;
    position: relative;
    border: 1px solid var(--card-border);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    transition: var(--transition);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.project-image {
    width: 100%;
    height: 220px;
    overflow: hidden;
    border-bottom: 1px solid var(--card-border);
    background-color: rgba(15, 23, 42, 0.4);
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.project-card:hover .project-image img {
    transform: scale(1.05);
}

.project-content {
    padding: 40px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.project-content h3 {
    font-size: 1.8rem;
    margin-bottom: 16px;
    color: var(--text-primary);
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition);
}

.project-card:hover .project-content h3 {
    color: var(--accent);
    transform: translateX(4px);
}

.project-content p {
    font-size: 1.15rem;
    color: var(--text-secondary);
    font-weight: 400;
    line-height: 1.6;
}

.project-card:hover {
    transform: translateY(-8px);
    border-color: rgba(255, 255, 255, 0.2);
    background: rgba(30, 41, 59, 0.7);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}


/* =========================================
   CONTACT SECTION
   ========================================= */
.contact {
    text-align: center;
}

.contact-desc {
    max-width: 600px;
    margin: 0 auto 4rem;
    font-size: 1.4rem;
    color: var(--text-secondary);
    letter-spacing: -0.01em;
}

.contact-methods {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.contact-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background: var(--card-bg);
    padding: 18px 40px;
    border-radius: 100px;
    font-weight: 600;
    font-size: 1.1rem;
    border: 1px solid var(--card-border);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    transition: var(--transition);
}

.contact-btn:hover {
    background: var(--text-primary);
    color: var(--bg-dark);
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(255, 255, 255, 0.2);
}

.contact-btn i {
    font-size: 1.3rem;
}

/* =========================================
   FOOTER
   ========================================= */
footer {
    text-align: center;
    padding: 60px 0 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

footer p {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 24px;
}

.footer-socials {
    display: flex;
    justify-content: center;
    gap: 16px;
}

.footer-socials a {
    color: var(--text-secondary);
    font-size: 1.2rem;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    transition: var(--transition);
}

.footer-socials a:hover {
    color: var(--text-primary);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-4px);
}

/* =========================================
   ANIMATIONS (SCROLL REVEAL)
   ========================================= */
.reveal {
    opacity: 0;
    transform: translateY(30px) scale(0.98);
    transition: all 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.delay-1 {
    transition-delay: 0.1s;
}

.delay-2 {
    transition-delay: 0.2s;
}

/* =========================================
   RESPONSIVE DESIGN (MEDIA QUERIES)
   ========================================= */
@media screen and (max-width: 992px) {
    .name {
        font-size: 5rem;
    }

    .role {
        font-size: 1.8rem;
    }

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

    .hero-container {
        gap: 2rem;
    }

    .hero-image img {
        max-width: 320px;
    }
}

@media screen and (max-width: 768px) {
    #navbar {
        width: 100%;
        top: 0;
        border-radius: 0;
        border: none;
        border-bottom: 1px solid var(--card-border);
        padding: 15px 20px;
    }

    .menu-toggle {
        display: block;
    }

    .nav-links {
        position: fixed;
        top: 60px;
        /* Below navbar */
        left: 0;
        width: 100%;
        background-color: rgba(15, 23, 42, 0.98);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        gap: 0;
        padding: 20px 0;
        height: 0;
        overflow: hidden;
        transition: height 0.4s cubic-bezier(0.16, 1, 0.3, 1);
        border-bottom: 1px solid var(--card-border);
    }

    .nav-links.active {
        height: 380px;
    }

    .nav-links li {
        width: 100%;
        text-align: center;
    }

    .nav-links li a {
        display: block;
        font-size: 1.2rem;
        padding: 20px;
        border-radius: 0;
    }

    .hero-container {
        flex-direction: column-reverse;
        text-align: center;
        padding-top: 40px;
    }

    .hero-content {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .greeting {
        justify-content: center;
    }

    .greeting::before {
        display: none;
    }

    .tagline {
        margin: 0 auto 2.5rem;
    }

    .hero-image {
        margin-bottom: 2rem;
    }

    .about .about-content p {
        font-size: 1.4rem;
    }
}

@media screen and (max-width: 480px) {
    .name {
        font-size: 3.5rem;
    }

    .role {
        font-size: 1.4rem;
    }

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

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

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

    .contact-btn {
        width: 100%;
    }


}
