/* ROOT VARIABLES & RESET */
:root {
    --bg-color: #05050f;
    --surface-color: rgba(20, 20, 35, 0.4);
    --surface-border: rgba(255, 255, 255, 0.08);
    --primary-color: #6366f1;
    /* Indigo */
    --secondary-color: #a855f7;
    /* Purple */
    --accent-color: #06b6d4;
    /* Cyan */
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

h1,
h2,
h3,
h4,
.logo {
    font-family: var(--font-heading);
}

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

ul {
    list-style: none;
}

/* BACKGROUND EFFECTS */
.background-effects {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

.glow-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.4;
    animation: float 20s infinite ease-in-out alternate;
}

.orb-primary {
    top: -10%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--primary-color), transparent 70%);
}

.orb-secondary {
    bottom: -20%;
    left: -10%;
    width: 700px;
    height: 700px;
    background: radial-gradient(circle, var(--secondary-color), transparent 70%);
    animation-direction: alternate-reverse;
    animation-duration: 25s;
}

@keyframes float {
    0% {
        transform: translate(0, 0);
    }

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

    100% {
        transform: translate(50px, -20px);
    }
}

/* GLASSMORPHISM UTILITY */
.glass-panel {
    background: var(--surface-color);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--surface-border);
    border-radius: 16px;
    padding: 2.5rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    transition: var(--transition);
}

.glass-panel:hover {
    border-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

/* BUTTONS */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 1.75rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4);
}

.btn-primary:hover {
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.6);
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--surface-border);
    color: var(--text-primary);
    backdrop-filter: blur(5px);
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

/* TYPOGRAPHY */
.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    background: linear-gradient(to right, #fff, var(--text-secondary));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.underline {
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    margin: 1rem auto 0;
    border-radius: 2px;
}

/* NAVBAR */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 1.25rem 0;
    transition: var(--transition);
}

nav.scrolled {
    background: rgba(5, 5, 15, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--surface-border);
    padding: 1rem 0;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.75rem;
    font-weight: 800;
    letter-spacing: -0.5px;
}

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

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

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

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

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.3s ease;
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.mobile-menu-btn {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
}

/* LAYOUT STRUCTURE */
.section {
    padding: 6rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

/* HERO SECTION - BACKGROUND MASKING */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 100px;
    position: relative;
    overflow: hidden;
    /* For blur bleed */
}

/* User Background Image */
.hero::before {
    content: '';
    position: absolute;
    top: -20px;
    left: -20px;
    width: calc(100% + 40px);
    height: calc(100% + 40px);
    background-image: url('hero-bg.jpg');
    /* User drops image here */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    filter: blur(6px);
    /* Premium blur effect */
    z-index: 0;
}

.hero-overlay-dim {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(5, 5, 15, 0.75);
    /* Dimming overlay */
    z-index: 1;
}

/* 3-Part Hero Container (Perfect Balance) */
.hero-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    /* Pushes Avatar strictly left, Cards strictly right */
    margin: 0 auto;
    width: 100%;
    max-width: 1550px;
    padding: 0 5rem;
    /* Keeps items safely away from sticking strictly to edges */
    gap: 3rem;
    z-index: 2;
    position: relative;
}

/* 1. Avatar CSS (Moved cleanly to Left Side) */
.hero-avatar-wrapper {
    flex: none;
    /* Fixed footprint to anchor left safely */
    position: relative;
    width: 380px;
    height: 380px;
    display: flex;
    justify-content: center;
    align-items: center;
    animation: float-avatar 6s ease-in-out infinite;
}

/* Background blur spot behind avatar */
.hero-avatar-wrapper::before {
    content: '';
    position: absolute;
    width: 250px;
    height: 250px;
    background: var(--primary-color);
    filter: blur(100px);
    opacity: 0.4;
    border-radius: 50%;
    z-index: 0;
    animation: pulse-glow 4s ease-in-out infinite;
}

.avatar-glow-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 320px;
    height: 320px;
    border-radius: 50%;
    background: conic-gradient(from 0deg, var(--primary-color), var(--secondary-color), var(--accent-color), var(--primary-color));
    animation: rotate-ring 8s linear infinite;
    z-index: 1;
    filter: blur(4px);
    opacity: 0.9;
}

/* Cut out middle of ring for transparency */
.avatar-glow-ring::after {
    content: '';
    position: absolute;
    inset: 4px;
    background: rgba(5, 5, 15, 0.6);
    border-radius: 50%;
    z-index: 2;
}

.profile-avatar {
    width: 280px;
    height: 280px;
    border-radius: 50%;
    object-fit: cover;
    /* Fully covers the entire circular container (no empty space) */
    object-position: center center;
    /* Face is vertically and horizontally centered */
    margin: 0;
    padding: 0;
    /* Fully removed inner gaps */
    border: 3px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5), 0 0 50px rgba(99, 102, 241, 0.2);
    z-index: 3;
    position: relative;
    background: var(--surface-color);
}

@keyframes rotate-ring {
    0% {
        transform: translate(-50%, -50%) rotate(0deg);
    }

    100% {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

@keyframes float-avatar {

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

    50% {
        transform: translateY(-12px);
    }
}

@keyframes pulse-glow {

    0%,
    100% {
        transform: scale(1);
        opacity: 0.4;
    }

    50% {
        transform: scale(1.1);
        opacity: 0.6;
    }
}

/* 2. Text Content (Perfectly positioned in the center area) */
.hero-content {
    flex: 1;
    /* Fills remaining middle gap naturally */
    max-width: 600px;
    margin: 0 auto;
    /* Visually pushes the entire text block structure dead center */
    padding: 0 1rem;
}

/* Typing Animation CSS */
.typing-container {
    display: flex;
    /* Helps containment cleanly */
    width: fit-content;
}

.greeting {
    color: var(--primary-color);
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.name {
    font-size: 4.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1rem;
}

.typing-text-1 {
    overflow: hidden;
    white-space: nowrap;
    border-right: 2px solid transparent;
    width: 0;
    max-width: fit-content;
    animation: typing-1 1.2s steps(20, end) forwards;
}

.typing-text-2 {
    overflow: hidden;
    white-space: nowrap;
    border-right: 3px solid transparent;
    width: 0;
    opacity: 0;
    animation: typing-2 1.5s steps(30, end) forwards 1.2s;
}

@keyframes typing-1 {
    0% {
        width: 0;
        border-right-color: var(--primary-color);
    }

    99% {
        border-right-color: var(--primary-color);
    }

    100% {
        width: 100%;
        border-right-color: transparent;
    }
}

@keyframes typing-2 {
    0% {
        width: 0;
        opacity: 1;
        border-right-color: var(--primary-color);
    }

    99% {
        opacity: 1;
        border-right-color: var(--primary-color);
    }

    100% {
        width: 100%;
        opacity: 1;
        border-right-color: transparent;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.title-animation {
    font-size: 1.5rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    font-weight: 400;
    line-height: 1.4;
}

.title-animation .divider {
    color: var(--primary-color);
    margin: 0 10px;
    opacity: 0.5;
}

.tagline {
    font-size: 1.125rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    line-height: 1.8;
}

.cta-group {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 3rem;
}

.social-links-hero {
    display: flex;
    gap: 1.5rem;
}

.social-links-hero a {
    font-size: 1.5rem;
    color: var(--text-secondary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.social-links-hero a:hover {
    color: var(--text-primary);
    transform: translateY(-3px);
}


/* 3. Floating Cards CSS (Far Right) */
.hero-visual {
    flex: none;
    width: 380px;
    display: flex;
    justify-content: flex-end;
    position: relative;
}

.glass-illustration {
    position: relative;
    width: 300px;
    height: 420px;
}

.floating-card {
    position: absolute;
    background: rgba(20, 20, 35, 0.65);
    backdrop-filter: blur(14px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 1.25rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    animation: float-card 6s ease-in-out infinite;
}

.floating-card i {
    font-size: 2rem;
    color: var(--accent-color);
    background: rgba(6, 182, 212, 0.1);
    padding: 1rem;
    border-radius: 50%;
}

.db-card i {
    color: var(--primary-color);
    background: rgba(99, 102, 241, 0.1);
}

.ai-card i {
    color: var(--secondary-color);
    background: rgba(168, 85, 247, 0.1);
}

.card-text span {
    font-weight: 600;
    font-family: var(--font-heading);
    font-size: 0.95rem;
}

/* Diagonal cascading */
.metric-card {
    top: 0;
    left: -40px;
}

.ai-card {
    top: 160px;
    right: 20px;
    animation-delay: 2s;
}

.db-card {
    top: 320px;
    left: 0px;
    animation-delay: 4s;
}

@keyframes float-card {

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

    50% {
        transform: translateY(-15px);
    }
}

.bar-chart {
    display: flex;
    align-items: flex-end;
    gap: 4px;
    height: 30px;
    margin-top: 8px;
}

.bar {
    width: 8px;
    background: var(--accent-color);
    border-radius: 2px;
}

.pulse-line {
    width: 60px;
    height: 3px;
    background: var(--secondary-color);
    margin-top: 10px;
    border-radius: 2px;
    position: relative;
    overflow: hidden;
}

.pulse-line::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: #fff;
    box-shadow: 0 0 10px #fff;
    animation: pulse 2s linear infinite;
}

@keyframes pulse {
    0% {
        left: -100%;
    }

    100% {
        left: 200%;
    }
}

/* ABOUT SECTIONS */
.about-content p {
    margin-bottom: 1.5rem;
    font-size: 1.05rem;
    color: var(--text-secondary);
}

.about-content p:last-child {
    margin-bottom: 0;
}

/* EDUCATION & CERTIFICATIONS SPLIT */
.edu-cert-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: stretch;
}

.edu-column h3,
.cert-column h3 {
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.edu-column h3 i,
.cert-column h3 i {
    color: var(--primary-color);
}

.timeline {
    border-left: 2px solid var(--surface-border);
    padding-left: 1.5rem;
    margin-left: 0.5rem;
}

.timeline li {
    margin-bottom: 2rem;
    position: relative;
}

.timeline li:last-child {
    margin-bottom: 0;
}

.timeline li::before {
    content: '';
    position: absolute;
    left: -1.5rem;
    transform: translateX(-50%);
    top: 5px;
    width: 14px;
    height: 14px;
    background: var(--primary-color);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--primary-color);
}

.timeline-date {
    font-size: 0.875rem;
    color: var(--primary-color);
    margin-bottom: 0.25rem;
    font-weight: 600;
}

.timeline-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
}

.timeline-desc {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-top: 0.25rem;
}

.cert-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.cert-item {
    padding: 1.5rem;
    background: rgba(20, 20, 35, 0.3);
    border: 1px solid var(--surface-border);
    border-radius: 12px;
    display: flex;
    align-items: flex-start;
    gap: 1.25rem;
    transition: var(--transition);
}

.cert-item:hover {
    border-color: rgba(99, 102, 241, 0.3);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.cert-icon-small {
    font-size: 2.2rem;
    color: var(--accent-color);
    opacity: 0.8;
}

.cert-info h4 {
    font-size: 1.05rem;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.cert-issuer {
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.cert-id {
    font-size: 0.8rem;
    color: var(--surface-border);
    margin-top: 0.3rem;
}

/* SKILLS SECTION 2x2 GRID */
.skills-grid-2x2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.skill-category {
    text-align: left;
    transition: var(--transition);
}

.skill-category:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(99, 102, 241, 0.2);
    border-color: rgba(99, 102, 241, 0.4);
}

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

.skill-category h3 {
    margin-bottom: 1.25rem;
    font-size: 1.25rem;
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.skill-tags span {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--surface-border);
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.875rem;
    color: var(--text-secondary);
    transition: var(--transition);
}

.skill-tags span:hover {
    background: rgba(99, 102, 241, 0.1);
    border-color: var(--primary-color);
    color: var(--primary-color);
}

/* Highlighted Skills Design Effect */
.skill-tags .highlight-skill {
    background: rgba(99, 102, 241, 0.15);
    border-color: var(--primary-color);
    color: var(--text-primary);
    font-weight: 600;
}

.skill-tags .highlight-skill:hover {
    background: rgba(99, 102, 241, 0.25);
    box-shadow: 0 0 12px rgba(99, 102, 241, 0.4);
}

/* EXPERIENCE SECTION */
.exp-card {
    max-width: 900px;
    margin: 0 auto;
}

.exp-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.exp-header h3 {
    font-size: 1.5rem;
    color: var(--text-primary);
}

.company {
    color: var(--text-secondary);
    font-weight: 400;
    font-size: 1.1rem;
    margin-top: 0.25rem;
}

.date-badge {
    background: rgba(99, 102, 241, 0.1);
    color: var(--primary-color);
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
}

.exp-details {
    padding-left: 1.5rem;
}

.exp-details li {
    margin-bottom: 0.75rem;
    color: var(--text-secondary);
    position: relative;
    list-style-type: disc;
}

.exp-details li strong {
    color: #e2e8f0;
}

/* PROJECTS SECTION */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2.5rem;
    /* Slightly larger gap between cards */
    align-items: stretch;
    /* Forces equal height columns securely */
}

.project-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    /* Explicit stretch directive */
}

.project-content {
    display: flex;
    flex-direction: column;
    height: 100%;
    /* Tells inner container to also stretch full height */
}

.project-type {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--accent-color);
    text-transform: uppercase;
    letter-spacing: 1.2px;
    margin-bottom: 0.85rem;
    display: block;
}

.project-card h3 {
    font-size: 1.55rem;
    margin-bottom: 1.2rem;
}

.project-card p {
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
    line-height: 1.8;
    /* Improve readability */
}

/* Forces description to take up free space, pushing tags down */
.project-card p:first-of-type {
    flex-grow: 1;
}

/* New Impact Line Styling */
.impact-line {
    font-style: italic;
    color: var(--text-primary) !important;
    font-weight: 500;
    margin-top: 1.5rem;
    padding-left: 1rem;
    border-left: 3px solid var(--accent-color);
    background: rgba(255, 255, 255, 0.02);
    padding-top: 0.6rem;
    padding-bottom: 0.6rem;
    border-radius: 0 8px 8px 0;
    font-size: 0.95rem;
}

/* Stylish Tech Tag Stack */
.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
    margin-top: 2rem;
    /* Clearer separation */
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.tech-tag {
    background: rgba(6, 182, 212, 0.1);
    color: var(--accent-color);
    padding: 0.35rem 0.8rem;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 600;
    border: 1px solid rgba(6, 182, 212, 0.2);
    transition: var(--transition);
    letter-spacing: 0.5px;
}

.tech-tag:hover {
    background: rgba(6, 182, 212, 0.25);
    border-color: var(--accent-color);
    color: #fff;
    box-shadow: 0 0 10px rgba(6, 182, 212, 0.3);
}

.project-link-icon {
    margin-top: 1.5rem;
    display: flex;
    justify-content: flex-end;
}

.github-icon-link {
    font-size: 1.8rem;
    color: var(--text-secondary);
    transition: var(--transition);
}

.github-icon-link:hover {
    color: var(--text-primary);
    transform: scale(1.1) translateY(-2px);
}


/* CONTACT SECTION */
.contact-content {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 3rem;
}

.contact-subtitle {
    text-align: center;
    color: var(--text-secondary);
    margin-top: 1rem;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.info-item:last-child {
    margin-bottom: 0;
}

.info-icon {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: var(--primary-color);
}

.info-item h4 {
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 0.25rem;
}

.info-item a,
.info-item p {
    color: var(--text-primary);
    font-weight: 600;
}

.info-item a:hover {
    color: var(--primary-color);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--surface-border);
    border-radius: 8px;
    padding: 1rem;
    color: var(--text-primary);
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.2);
}

.submit-btn {
    width: 100%;
    border: none;
}

/* FOOTER */
footer {
    border-top: 1px solid var(--surface-border);
    padding: 2rem;
    margin-top: 4rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.footer-social {
    display: flex;
    gap: 1rem;
}

.footer-social a:hover {
    color: var(--text-primary);
}

/* ANIMATIONS */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.reveal-right {
    opacity: 0;
    transform: translateX(50px);
    transition: all 0.8s ease-out;
}

.reveal.active,
.reveal-right.active {
    opacity: 1;
    transform: translate(0);
}

/* MEDIA QUERIES */

@media (max-width: 1100px) {
    .hero-container {
        flex-direction: column;
        text-align: center;
        gap: 3rem;
        padding-top: 120px;
        padding-bottom: 3rem;
        padding-left: 2rem;
        padding-right: 2rem;
    }
    .hero-content {
        align-items: center;
        display: flex;
        flex-direction: column;
        max-width: 100%;
        text-align: center;
        margin-left: 0;
    }
    .typing-container {
        margin: 0 auto;
    }
    .hero-visual {
        flex: unset;
        justify-content: center;
        width: 100%;
        transform: scale(0.9);
        margin-top: 2rem;
    }
    .hero-avatar-wrapper {
        flex: unset;
    }
    .metric-card { top: 0; left: 0; }
    .ai-card { top: 150px; right: 0; }
    .db-card { top: 300px; left: 40px; }
}

@media (max-width: 968px) {
    .cta-group { justify-content: center; width: 100%; }
    .social-links-hero { justify-content: center; width: 100%; }
    .contact-content { grid-template-columns: 1fr; }
    .name { font-size: 3.5rem; }
    .skills-grid-2x2 { grid-template-columns: 1fr; }
    .edu-cert-split { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .section {
        padding: 4rem 1.5rem; /* Better side padding for mobile */
    }
    .hero-container {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }
    .nav-links {
        position: fixed; top: 0; right: -100%; height: 100vh; width: 70%;
        background: rgba(5, 5, 15, 0.98); flex-direction: column;
        justify-content: center; align-items: center; transition: 0.5s ease;
        border-left: 1px solid var(--surface-border);
    }
    .nav-links.nav-active { right: 0; }
    .mobile-menu-btn { display: block; z-index: 1001; }
    
    .title-animation span { display: block; margin-bottom: 0.5rem; }
    .title-animation .divider { display: none; }
    
    .name { font-size: 2.8rem; }
    .hero-avatar-wrapper, .avatar-glow-ring {
        width: 250px; height: 250px;
    }
    .profile-avatar {
        width: 200px; height: 200px;
    }
    .hero-visual {
        transform: scale(0.7);
    }
    
    /* Buttons */
    .cta-group {
        flex-direction: column;
        width: 100%;
        padding: 0 1rem;
    }
    .btn {
        width: 100%;
        margin-bottom: 0.5rem;
    }
    .section-header h2 {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .name { font-size: 2.2rem; }
    .greeting { font-size: 1.1rem; }
    .tagline { font-size: 0.95rem; }
    
    .hero-avatar-wrapper, .avatar-glow-ring {
        width: 220px; height: 220px;
    }
    .profile-avatar {
        width: 180px; height: 180px;
    }
    
    .glass-illustration {
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 1rem;
        height: auto;
    }
    .floating-card {
        position: relative;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        width: 90%;
        animation: none; /* Disable complex floating on small screens to prevent overflow */
    }
}