/* --- Global Styles --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', 'Helvetica Neue', Arial, sans-serif;
}

body {
    background-color: #fcfcfc;
    color: #1a1a1a;
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

:root {
    --orange: #ff7e38;
    --dark-grey: #1a1a1a;
    --white: #ffffff;
    --border-color: #d1d1d1;
}

/* --- Placeholders --- */
.placeholder-logo {
    display: inline-block;
    width: 40px;
    height: 40px;
    background-color: var(--border-color);
    border-radius: 50%;
    object-fit: cover;
}

.hero-person-img:not([src]) {
    content: url('data:image/svg+xml;charset=UTF-8,<svg%20width="600"%20height="600"%20xmlns="http://www.w3.org/2000/svg"%20viewBox="0%200%20600%20600"><rect%20width="600"%20height="600"%20fill="%23eeeeee"/><text%20x="50%"%20y="50%"%20text-anchor="middle"%20alignment-baseline="middle"%20font-size="40"%20fill="%23666666">Add%20Profile%20Image</text></svg>');
}

/* --- Hamburger Menu Icon --- */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    z-index: 1001;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background-color: var(--white);
    border-radius: 3px;
    transition: all 0.3s ease;
}

/* --- Navigation Header --- */
.navbar-wrapper {
    position: fixed;
    top: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    width: 80%; /* Creates breathing room between the navbar and the edges of the screen */
    max-width: 1200px;
}

.navbar-container {
    background-color: var(--dark-grey);
    padding: 0.8rem 4rem; /* INCREASED from 2.5rem to 4rem for generous inner breathing space */
    border-radius: 50px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.nav-links {
    display: flex;
    gap: 1rem;
    font-size: 0.95rem;
}

.nav-links a {
    color: var(--white);
    padding: 0.6rem 1.5rem;
    border-radius: 50px;
}

.nav-links a.active {
    background-color: var(--orange);
    color: var(--white);
}

.nav-links a:hover:not(.active) {
    color: var(--border-color);
}

/* --- Hero Section --- */
.hero-section {
    position: relative;
    padding: 10rem 5% 0 5%; 
    min-height: 95vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: flex-end; 
}

/* Orange Semicircle Background */
.orange-semicircle {
    position: absolute;
    bottom: 0; 
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 1100px; 
    height: 480px; 
    background-color: var(--orange);
    border-radius: 600px 600px 0 0; 
    z-index: 1;
}

.hero-wrapper {
    position: relative;
    z-index: 2;
    max-width: 1400px;
    width: 100%;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr auto 1fr; 
    align-items: flex-end; 
}

/* --- Floating Quote --- */
.hero-content-left {
    padding-left: 2rem;
    padding-bottom: 15rem; 
}
.quote-element {
    background: rgba(255, 255, 255, 0.55); 
    backdrop-filter: blur(15px); 
    -webkit-backdrop-filter: blur(15px); 
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    max-width: 250px;
    display: flex;
    align-items: flex-start;
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
    
    /* ADD THIS LINE */
    animation: slowFloatLeft 60s ease-in-out infinite;
}

.quote-icon {
    font-size: 2.5rem;
    color: var(--orange);
    line-height: 1;
    margin-right: 0.5rem;
}

.quote-text {
    font-size: 0.85rem;
    color: #555;
    margin: 0;
}

/* --- Central Content --- */
.hero-content-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

/* Greeting Bubble and Doodles */
.greeting-bubble {
    position: relative;
    background-color: var(--white);
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    border: 1px solid var(--border-color);
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.doodle {
    position: absolute;
    background-size: contain;
    background-repeat: no-repeat;
    opacity: 0.6;
}

.doodle-top {
    content: "";
    width: 25px;
    height: 15px;
    background-image: url('data:image/svg+xml;charset=UTF-8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 50 30"><path d="M5 25 Q 15 5, 25 15 Q 35 25, 45 5" stroke="%23ff7e38" fill="none" stroke-width="3"/></svg>');
    top: -20px;
    left: 10px;
}

.doodle-left {
    content: "";
    width: 20px;
    height: 15px;
    background-image: url('data:image/svg+xml;charset=UTF-8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 50 30"><path d="M5 5 Q 15 25, 25 15 Q 35 5, 45 25" stroke="%23ff7e38" fill="none" stroke-width="3"/></svg>');
    bottom: -15px;
    right: 15px;
}

/* Title Styling */
.hero-title {
    font-size: 4.5rem;
    line-height: 1.1;
    color: var(--dark-grey);
    margin-bottom: 2rem;
    font-weight: 600;
}

.highlight-name {
    color: var(--orange);
}

/* Typing Effect Cursor */
.changing-text {
    color: var(--dark-grey); 
}

.cursor {
    display: inline-block;
    color: var(--orange);
    font-weight: 300;
    margin-left: 2px;
    animation: blink 0.8s infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

/* Person Image */
.hero-person-img {
    position: relative;
    max-width: 650px; 
    width: 100%;
    z-index: 3;
    display: block;
    margin: 0 auto;
}

/* --- Floating Experience Rating --- */
.hero-content-right {
    padding-right: 2rem;
    padding-bottom: 15rem; 
    display: flex;
    justify-content: flex-end;
}

.experience-element {
    background: rgba(255, 255, 255, 0.55); 
    backdrop-filter: blur(15px); 
    -webkit-backdrop-filter: blur(15px); 
    padding: 1.5rem 2rem;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    text-align: center;
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
    
    /* ADD THIS LINE */
    animation: slowFloatRight 60s ease-in-out infinite;
}

.star-rating {
    font-size: 1.2rem;
    color: var(--orange);
    margin-bottom: 0.5rem;
}

.experience-years {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: var(--dark-grey);
    line-height: 1;
}

.experience-subtitle {
    display: block;
    font-size: 0.9rem;
    color: #666;
    margin-top: 0.2rem;
}

/* --- 60-Second Floating Animations --- */
@keyframes slowFloatLeft {
    0% { transform: translate(0%, 0%); }
    25% { transform: translate(15%, 25%); }
    50% { transform: translate(30%, -10%); }
    75% { transform: translate(-10%, -20%); }
    100% { transform: translate(0%, 0%); }
}

@keyframes slowFloatRight {
    0% { transform: translate(0%, 0%); }
    25% { transform: translate(-20%, -15%); }
    50% { transform: translate(10%, -30%); }
    75% { transform: translate(25%, 15%); }
    100% { transform: translate(0%, 0%); }
}

/* --- CTA Buttons Panel (Portfolio & Resume) --- */
.hero-actions-wrapper {
    position: absolute;
    bottom: 10rem; 
    left: 50%;
    transform: translateX(-50%);
    z-index: 30; 
}

/* Sleek Dark Container */
.hero-actions-panel {
    background: rgba(30, 30, 30, 0.55); /* Semi-transparent dark background */
    backdrop-filter: blur(15px); /* Creates the frosted glass blur */
    -webkit-backdrop-filter: blur(15px); /* Needed for Safari browsers */
    border: 1px solid rgba(255, 255, 255, 0.15); /* Subtle light border for the glass edge */
    padding: 0.4rem; 
    border-radius: 60px;
    display: inline-flex;
    align-items: center;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
}

/* Base Button Styling */
.btn-pill {
    padding: 0.8rem 2.2rem;
    border-radius: 50px;
    font-weight: 500;
    font-size: 1.05rem;
    display: flex;
    align-items: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* --- Base Icon Styling (HIDDEN BY DEFAULT) --- */
.icon-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    max-width: 0;           /* Collapsed by default */
    opacity: 0;             /* Invisible by default */
    margin-left: 0;         /* No spacing by default */
    overflow: hidden;       /* Prevents icon from showing when collapsed */
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
}

.icon-arrow svg {
    fill: currentColor;
    width: 20px;
    height: 20px;
    min-width: 20px; /* Prevents the SVG from squishing during the slide animation */
}

/* --- Default States --- */

/* 1. Portfolio Button starts Active (Orange & Icon Visible) */
.btn-portfolio {
    background-color: var(--orange);
    color: var(--white);
}

.btn-portfolio .icon-arrow {
    max-width: 24px;
    opacity: 1;
    margin-left: 0.5rem;
}

/* 2. Resume Button starts Inactive (Transparent & Icon Hidden) */
.btn-hire {
    background-color: transparent;
    color: #e3e3e3;
}


/* --- Hover Effects (The Magic Switch) --- */

/* 1. When Resume is hovered, it turns orange and its icon slides open */
.btn-hire:hover {
    background-color: var(--orange);
    color: var(--white);
}

.btn-hire:hover .icon-arrow {
    max-width: 24px;
    opacity: 1;
    margin-left: 0.5rem;
}

/* 2. When Resume is hovered, Portfolio turns transparent and its icon slides closed */
.hero-actions-panel:has(.btn-hire:hover) .btn-portfolio {
    background-color: transparent;
    color: #e3e3e3;
}

.hero-actions-panel:has(.btn-hire:hover) .btn-portfolio .icon-arrow {
    max-width: 0;
    opacity: 0;
    margin-left: 0;
}

/* --- About Section --- */
.about-section {
    background-color: #0b1320; /* Deep navy blue background */
    border-radius: 40px 40px 0 0;
    padding: 8rem 5% 6rem 5%; 
    position: relative;
    overflow: hidden;
    z-index: 20;
    margin-top: -80px; /* Pulls it up to overlap the hero section perfectly */
}

/* Decorative Rings */
.about-ring {
    position: absolute;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    border: 1px dashed rgba(255, 255, 255, 0.15);
    box-shadow: 0 0 0 20px rgba(255, 255, 255, 0.02), 0 0 0 40px rgba(255, 255, 255, 0.01);
    z-index: 1;
}

.ring-right { top: 10%; right: -5%; }
.ring-left { bottom: 10%; left: -5%; }

.about-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 2;
}

/* Left Col: Image Frame */
.about-img-wrapper {
    background: rgba(255, 255, 255, 0.03); /* Semi-transparent base */
    backdrop-filter: blur(15px); /* Frosted glass blur */
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.1); /* Light glass edge */
    border-radius: 24px;
    padding: 2rem 2rem 0 2rem;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

.about-person-img {
    width: 100%;
    max-width: 320px;
    display: block;
}

/* Right Col: Content */
.about-badge {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 6px 14px;
    border-radius: 6px;
    font-size: 0.8rem;
    color: #a0aec0;
    letter-spacing: 2px;
    text-transform: uppercase;
    display: inline-block;
    margin-bottom: 1.5rem;
}

.about-title {
    font-size: 2.8rem;
    color: var(--white);
    line-height: 1.2;
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
}

.about-desc {
    color: #94a3b8;
    font-size: 0.95rem;
    line-height: 1.8;
    margin-bottom: 2.5rem;
}

/* Stats Row */
.about-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-bottom: 2.5rem;
}

.stat-box {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 1.5rem 1rem;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease;
}

.stat-box h3 {
    font-size: 1.8rem;
    color: var(--white);
    line-height: 1;
    margin-bottom: 0.5rem;
}

.stat-box:hover {
    transform: translateY(-5px); /* Slight lift on hover */
}

.stat-box p {
    font-size: 0.8rem;
    color: #94a3b8;
    margin: 0;
}

/* Skills Tags */
.skills-title {
    font-size: 1.2rem;
    color: var(--white);
    margin-bottom: 1rem;
}

.skills-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
}

.skill-tag {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #cbd5e1;
    padding: 0.6rem 1.2rem;
    border-radius: 50px;
    font-size: 0.85rem;
    transition: all 0.3s ease;
    cursor: default;
}

.skill-tag:hover {
    background: rgba(255, 126, 56, 0.2); 
    border-color: var(--orange);
    color: var(--white);
}

/* --- Services Section --- */
.services-section {
    background-color: #111111;
    padding: 6rem 5% 4rem 5%; /* Adjusted padding */
    position: relative;
    overflow: hidden;
    z-index: 20;
    /* margin-top: -80px;  <-- DELETE THIS */
    /* border-radius: 40px 40px 0 0; <-- DELETE THIS */
}

/* Background Glow Effects */
.glow-shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(90px);
    opacity: 0.35;
    z-index: 1;
    pointer-events: none;
}

.shape-1 {
    width: 300px; height: 300px; background: var(--orange);
    top: 20%; left: -5%;
}
.shape-2 {
    width: 400px; height: 400px; background: var(--orange);
    bottom: -10%; right: -10%;
}
.shape-3 {
    width: 150px; height: 150px; background: #ffb48f;
    top: 10%; left: 45%;
}

/* Container & Header */
.services-container {
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.services-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3.5rem;
}

.section-title {
    font-size: 3rem;
    color: var(--white);
    font-weight: 600;
}

.highlight-orange {
    color: var(--orange);
}

.section-desc {
    color: #a0a0a0;
    max-width: 450px;
    font-size: 0.95rem;
    text-align: left;
}

/* --- Services Grid & Cards --- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.service-card {
    background: rgba(30, 30, 30, 0.7); 
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 30px;
    padding: 2.5rem 1.5rem 1.5rem 1.5rem;
    display: flex;
    flex-direction: column;
    transition: all 0.4s ease;
    cursor: pointer;
}

/* Hover effect */
.service-card:hover {
    background: var(--orange);
    border-color: var(--orange);
    transform: translateY(-10px);
}

.card-title {
    color: var(--white);
    font-size: 1.8rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
    z-index: 2;
}

.mockup-wrapper {
    position: relative;
    flex-grow: 1;
    display: flex;
    align-items: flex-end;
    padding-top: 35px; 
}

/* THE CUTOUT TRICK */
.mockup-main {
    background: #f7f7f7;
    width: 100%;
    min-height: 250px;
    border-radius: 20px;
    padding: 1.2rem;
    position: relative;
    z-index: 3;
    overflow: hidden;
    /* Masking properties have been completely removed */
}

.service-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
}

/* The Circular Button */
.card-arrow-btn {
    position: absolute;
    bottom: 15px; 
    right: 15px; 
    width: 70px;
    height: 70px;
    background-color: #1a1a1a; 
    color: var(--white);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2.2rem; /* Made it a bit bigger for visibility */
    font-weight: bold;
    z-index: 10;
    transition: all 0.4s ease;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2); 
}

/* OVERRIDE: Prevent the Hero button animation from hiding this specific arrow */
.card-arrow-btn .icon-arrow {
    max-width: 100%;
    opacity: 1;
    margin: 0;
    overflow: visible;
    transition: transform 0.3s ease;
}

/* Button turns Solid Orange on hover (keeps arrow white) */
.service-card:hover .card-arrow-btn {
    background-color: var(--orange); 
    color: var(--white);
}

/* Little diagonal hop on hover */
.service-card:hover .card-arrow-btn .icon-arrow {
    transform: translate(3px, -3px);
}

/* Stacked Folders */
.layer {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 20px 20px 0 0;
    width: 100%;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.layer-back {
    top: 20px;
    width: 80%;
    height: 40px;
    background: rgba(255, 255, 255, 0.05); 
    z-index: 1;
}

.layer-middle {
    top: 35px;
    width: 90%;
    height: 40px;
    background: rgba(255, 255, 255, 0.1); 
    z-index: 2;
}

.service-card:hover .layer-back {
    top: 0px;
    background: #4a4a4a;
}

.service-card:hover .layer-middle {
    top: 15px;
    background: #b58362; 
}

/* Pagination Dots */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 3rem;
}

.dot {
    width: 10px;
    height: 10px;
    background-color: #555;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active {
    width: 35px;
    background-color: var(--orange);
    border-radius: 10px;
}

.about-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px); /* Makes them completely soft and blurry */
    z-index: 0; /* Keeps them totally behind the glass elements */
    pointer-events: none; /* Prevents them from blocking clicks */
}

/* Top Left Glow */
.glow-1 {
    width: 450px;
    height: 450px;
    background-color: var(--orange);
    opacity: 0.35;
    top: -10%;
    left: -10%;
    animation: floatGlow1 20s ease-in-out infinite alternate;
}

/* Bottom Right Glow */
.glow-2 {
    width: 350px;
    height: 350px;
    background-color: #ff9a62; /* Slightly lighter orange */
    opacity: 0.25;
    bottom: -10%;
    right: -5%;
    animation: floatGlow2 25s ease-in-out infinite alternate;
}

/* Center Wandering Glow */
.glow-3 {
    width: 300px;
    height: 300px;
    background-color: #e65c00; /* Deeper, richer orange */
    opacity: 0.25;
    top: 30%;
    left: 40%;
    animation: floatGlow3 22s ease-in-out infinite alternate;
}

/* --- Responsive adjustments --- */
@media (max-width: 1024px) {
    .navbar-wrapper {
        padding: 1rem 5%;
        top: 1rem;
    }
    .navbar-container {
        background-color: transparent; 
        padding: 0; 
        box-shadow: none;
        display: flex;
        justify-content: flex-end; /* Pushes everything right */
    }
    
    .logo {
        display: none; /* Hide logo on mobile */
    }

    /* Standalone Black Pill Hamburger */
    .hamburger {
        display: flex;
        background-color: var(--dark-grey); 
        padding: 14px 16px;
        border-radius: 50px;
        box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    }
		.hero-section {
			padding-top: 7rem; /* Reduces the massive top gap below the navbar */
					}

		.hero-title {
			font-size: 3rem;
			margin-top: 1rem; /* REDUCED from 4rem: Closes the gap between "Hello" and the Title */
					}

    /* Turn Nav Links into a Dropdown */
    .nav-links {
        position: absolute;
        top: 60px; 
        right: 0;
        left: auto;
        transform: none;
        background-color: #1a1a1a; 
        width: 100%; 
        border-radius: 24px; 
        flex-direction: column;
        align-items: center;
        padding: 3rem 0; 
        gap: 1.5rem; 
        box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6); 
        opacity: 0;
        visibility: hidden;
        transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .nav-links a {
        width: 220px; 
        text-align: center;
        padding: 0.8rem 0;
        font-size: 1.1rem;
        font-weight: 500;
        border-radius: 50px;
    }
	
    .nav-links a:hover:not(.active) {
        background-color: rgba(255, 126, 56, 0.6); 
        color: var(--white);
    }

    .nav-links.show-menu {
        opacity: 1;
        visibility: visible;
        top: 70px; 
    }
	
    .hamburger.active span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
    .hamburger.active span:nth-child(2) { opacity: 0; }
    .hamburger.active span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
	
	.about-container {
        grid-template-columns: 1fr; /* Stacks image on top of content */
        gap: 3rem;
    }

    .about-img-wrapper {
        max-width: 400px;
        margin: 0 auto;
    }

    .about-title {
        font-size: 2.2rem;
    }
	
    /* --- Mobile Hero Layout --- */
    .hero-wrapper {
        display: flex;
        flex-direction: column;
        position: relative; 
        padding: 0;
    }

    .hero-title {
        font-size: 3rem;
        margin-top: 4rem;
    }

    .hero-person-img {
        max-width: 90%;
        margin-top: 1rem;
    }

    /* Float the Quote Box */
    .hero-content-left {
        position: absolute;
        left: 2%;
        top: 35%; /* Placed by chest */
        padding: 0;
        transform: scale(0.7);
        transform-origin: left center;
        z-index: 10;
    }

    /* Float Experience Box */
    .hero-content-right {
        position: absolute;
        right: 2%;
        top: 60%; /* Placed by lap/hands */
        padding: 0;
        display: flex;
        transform: scale(0.7);
        transform-origin: right center;
        z-index: 10;
    }

    .orange-semicircle {
        width: 100%;
        height: 280px;
        border-radius: 350px 350px 0 0;
        bottom: 0;
    }

    .hero-actions-wrapper {
        bottom: 6.5rem;
    }

    .services-section {
        margin-top: -60px;
        padding: 6rem 5% 4rem 5%;
    }

    .services-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.5rem;
    }

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* --- Resume Modal Popup --- */
.resume-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 10, 10, 0.85); /* Dark background */
    backdrop-filter: blur(10px); /* Blurs the website behind it */
    -webkit-backdrop-filter: blur(10px);
    z-index: 2000; /* Stays above the navbar */
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
}

/* When the modal is open */
.resume-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* The actual window containing the resume */
.resume-modal-container {
    width: 90%;
    max-width: 1000px;
    height: 85vh; /* Takes up 85% of the screen height */
    background: #1a1a1a;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
    transform: scale(0.95) translateY(20px); /* Starts slightly small and low */
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

/* Animates the window sliding up and growing slightly */
.resume-modal-overlay.active .resume-modal-container {
    transform: scale(1) translateY(0);
}


/* The X Close Button */
.close-modal-btn {
    position: absolute;
    top: 15px;
    right: 25px;
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
}

.close-modal-btn:hover {
    background: var(--orange);
    transform: rotate(90deg); /* Cool spin effect on hover */
}

/* The frame loading your HTML page */
.resume-iframe {
    width: 100%;
    height: 100%;
    border: none;
    background-color: #fcfcfc; /* White/Light background for your resume text to be readable */
}

@media (max-width: 768px) {
    .services-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .hero-title { font-size: 2.2rem; }
    .hero-actions-wrapper { bottom: 5.5rem; }
    .hero-content-left { top: 32%; transform: scale(0.6); }
    .hero-content-right { top: 58%; transform: scale(0.6); }
    .section-title { font-size: 2.5rem; }
	.about-stats {
        grid-template-columns: 1fr; /* Stacks stats vertically */
    }
    .about-title {
        font-size: 1.8rem;
    }
		.hero-section {
				justify-content: flex-start; 
				padding-top: 5rem; /* Perfect breathing room under the hamburger menu */
			}
			
	/* Allows the section to stretch full height */
		.hero-wrapper {
				flex-grow: 1; 
			}

		.greeting-bubble {
				margin-bottom: 0.5rem; 
			}

		.hero-title { 
				font-size: 2.3rem; 
				margin-top: 0rem;
				position: relative;
				z-index: 15; 
			}

			/* ... keep your existing bottom/scale code ... */
			.hero-actions-wrapper { bottom: 6.5rem; }
			.hero-content-left { top: 38%; left: 0%; transform: scale(0.55); }
			.hero-content-right { top: 65%; right: 0%; transform: scale(0.55); }
			.section-title { font-size: 2.5rem; }
/* Keeps image large but anchors it to the absolute bottom */
    .hero-person-img {
        max-width: 100%;
        transform: scale(1.3); 
        transform-origin: bottom center; 
        margin-top: auto; /* Magic line that pushes the image all the way down! */
        padding-top: 2rem; /* Creates safe space between your title and your head */
    }

    .orange-semicircle {
        height: 340px; 
    }

    .hero-actions-wrapper { bottom: 3.5rem; }
    .hero-content-left { top: 38%; left: 0%; transform: scale(0.55); }
    .hero-content-right { top: 65%; right: 0%; transform: scale(0.55); }
    .section-title { font-size: 2.5rem; }
}

}


/* --- Keyframes to make them drift smoothly --- */
@keyframes floatGlow1 {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(15%, 25%) scale(1.2); }
}

@keyframes floatGlow2 {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(-25%, -15%) scale(1.3); }
}

@keyframes floatGlow3 {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(-30%, 40%) scale(0.9); }
}