:root {
    --primary-text: #ffffff;
    --primary-bg: #0f172a; /* Dark blue-gray */
    --accent-color: #3b82f6; /* Bright blue */
    --accent-secondary: #8b5cf6; /* Purple */
    --glass-bg: rgba(59, 130, 246, 0.1); /* Blue-tinted glass */
    --glass-border: rgba(139, 92, 246, 0.2); /* Purple-tinted border */
    --container-max-width: 55rem;
    --section-heading-width: 16rem;
    --section-gap: 2rem;
}

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

/* Continuous site-wide background */
body {
    background-color: var(--primary-bg);
    background-image:
        radial-gradient(60rem 40rem at 10% 10%, rgba(59,130,246,0.20), transparent 60%),
        radial-gradient(50rem 35rem at 90% 20%, rgba(139,92,246,0.18), transparent 60%),
        radial-gradient(55rem 40rem at 20% 85%, rgba(59,130,246,0.14), transparent 60%),
        radial-gradient(45rem 35rem at 80% 80%, rgba(139,92,246,0.14), transparent 60%),
        linear-gradient(180deg, rgba(255,255,255,0.02), rgba(0,0,0,0.02));
    background-attachment: fixed, fixed, fixed, fixed, fixed;
    background-repeat: no-repeat;
    overflow-x: hidden;
}

/* Subtle grid overlay */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    pointer-events: none;
    background-image:
        radial-gradient(circle at 1px 1px, rgba(255,255,255,0.05) 1px, transparent 0);
    background-size: 24px 24px;
    opacity: 0.25;
    z-index: 0;
}

/* Make sections transparent so the background is continuous */
section {
    position: relative;
    min-height: 100vh;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 0;
    overflow: hidden;
}

/* Remove per-section backgrounds for continuity */
#about-me, #technical-skills, #professional-experience, #freelance-experience, #contact-me {
    background: transparent;
}

/* Ensure section content sits above background overlays */
.section-content-wrapper, .home-container { 
    position: relative; 
    z-index: 1; 
}

/* Optional subtle separators between sections on large screens */
@media (min-width: 48rem) {
    section + section .section-content-wrapper { 
        margin-top: -2rem; 
    }
}

.header {
    width: 100%;
    height: auto;
    position: fixed;
    display: flex;
    flex-direction: row;
    z-index: 1000;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 2rem;
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(1rem);
    box-shadow: 0 0.1rem 0.3rem rgba(59, 130, 246, 0.1);
    border-bottom: 0.0625rem solid rgba(59, 130, 246, 0.1);
    top: 0;
    left: 0;
}

.scroll-to-top {
    position: fixed;
    top: 90%;
    color: white;
    z-index: 3;
    left: 5%;
    cursor: pointer;
    font-family: Lexend;
}

.on-scroll {
    transition: all .5s ease-in-out;
    background-color: var(--primary-bg).6;
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgb(32, 32, 32);
}

.email-cta {
    background: linear-gradient(135deg, var(--accent-color), var(--accent-secondary));
    color: var(--primary-text);
    padding: 0.75rem 1.5rem;
    border-radius: 2rem;
    text-decoration: none;
    font-weight: 600;
    font-family: Lexend;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(59, 130, 246, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 8rem;
}

.email-cta:hover {
    background: linear-gradient(135deg, #2563eb, #7c3aed);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
}

.socials-container {
    display: flex;
    gap: 1.5rem;
    align-items: center;
    padding: 0.5rem;
}

.socials-container a {
    color: var(--primary-text);
    font-size: 1.5rem;
    text-decoration: none;
    padding: 0.5rem;
}

/* Enhanced section headings */
.section-heading {
    position: relative;
    text-align: left;
    top: 0;
    font-family: Lexend;
    color: var(--primary-text);
    z-index: 2;
    padding: 0;
    font-size: 3rem;
    margin-left: 0;
    flex: 0 0 18rem;
    margin-right: 0;
    min-width: 12rem;
    align-self: center;
    padding-top: 0;
    padding-left: 1rem;
    line-height: 1.1;
    text-shadow: 0 2px 10px rgba(59, 130, 246, 0.3);
}

.section-heading::after {
    content: '';
    position: absolute;
    bottom: -0.5rem;
    left: 1rem;
    width: 3rem;
    height: 0.2rem;
    background: linear-gradient(90deg, var(--accent-color), var(--accent-secondary));
    border-radius: 0.1rem;
}

.section-content-wrapper {
    display: flex;
    width: 100%;
    max-width: 100rem;
    margin: 0 auto;
    align-items: center;
    padding: 2rem 1rem;
    min-height: calc(100vh - 10%);
    flex-wrap: wrap;
    justify-content: center;
    gap: 10rem;
}

.home-container {
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    width: 100%;
    height: 100%;
    padding: 0 1em; /* Add horizontal padding for homepage container */
}

#home {
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pk-memoji-container {
    position: relative;
}

.pk-memoji-container:after {
    content: "";
    position: absolute;
    left: 15%;
    width: 150px; /* Increased size of the blur circle */
    height: 150px; /* Increased size of the blur circle */
    background-color: var(--primary-text);
    top: 19%;
    z-index: -1;
    border-radius: 50%;
    filter: blur(70px); /* Increased blur radius */
}

.title h1 {
    font-family: Lexend;
    color: var(--primary-text);
    font-size: 5.5em; /* Slightly increased font size for homepage title */
    font-weight: 700; /* Increased font weight for impact */
    line-break: auto;
    width: 8em;
    text-align: center;
}

.title h2 {
    font-family: Lexend;
    color: var(--primary-text);
    font-size: 1.5em; /* Slightly increased font size for homepage subtitle */
    font-weight: 300; /* Adjusted font weight */
}

.title {
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 2;
}

.about-me-content, .skills-content, .experience-content, .contact-content {
    font-family: Lexend;
    color: var(--primary-text);
    font-weight: 200;
    font-size: 1.1rem;
    line-height: 1.8;
    padding: 1rem;
    padding-top: 0;
    margin: 0;
    flex: 1;
    margin-top: 0;
    align-self: center;
    min-width: 18rem;
    text-align: left;
}

/* Contact form styling */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.contact-form label {
    font-weight: 500;
    color: var(--primary-text);
    margin-bottom: 0.3rem;
}

.contact-form input,
.contact-form textarea {
    padding: 0.7rem;
    border-radius: 0.5rem;
    border: 1px solid var(--glass-border);
    background: rgba(59, 130, 246, 0.05);
    color: var(--primary-text);
    font-family: Lexend;
    transition: all 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--accent-color);
    background: rgba(59, 130, 246, 0.1);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.contact-form button {
    padding: 0.8rem 1.5rem;
    border-radius: 2rem;
    background: linear-gradient(135deg, var(--accent-color), var(--accent-secondary));
    color: var(--primary-text);
    font-weight: bold;
    border: none;
    cursor: pointer;
    font-family: Lexend;
    transition: all 0.3s ease;
    align-self: flex-start;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
}

.contact-form button:hover {
    background: linear-gradient(135deg, #2563eb, #7c3aed);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4);
}

.glass-container {
    background: var(--glass-bg);
    backdrop-filter: blur(1rem);
    border: 0.0625rem solid var(--glass-border);
    border-radius: 1rem;
    padding: 2rem;
    margin-top: 0;
    box-shadow: 0 0.25rem 0.375rem rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease-out;
    max-width: var(--container-max-width);
    width: 100%;
    position: relative;
    overflow: hidden;
}

.glass-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.05) 0%, rgba(139, 92, 246, 0.05) 100%);
    pointer-events: none;
    z-index: -1;
}

.glass-container:hover {
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.2);
    border-color: rgba(139, 92, 246, 0.4);
    transform: translateY(-2px);
}

.about-me-content p, .skills-content li, .experience-content li {
    font-weight: 300; /* Lighter font weight for body text */
}

.skills-content li::before, .experience-content li::before {
    /* content: "•"; */ /* Removed custom bullet character */
    /* color: var(--primary-text); */
    /* position: absolute; */
    /* left: 0; */
    display: none; /* Hide the custom bullet */
}

/* Contact form specific styling - absolutely no movement */
#contact-me .glass-container {
    transition: none !important;
    transform: none !important;
}

#contact-me .glass-container:hover {
    box-shadow: 0 0.25rem 0.375rem rgba(0, 0, 0, 0.1);
    border-color: var(--glass-border);
    transform: none !important;
}

#contact-me .glass-container::before {
    display: none;
}

/* Skills Grid */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.skill-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 0.75rem;
    transition: all 0.3s ease;
    cursor: pointer;
}

.skill-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px var(--shadow-color);
    border-color: var(--accent-color);
}

.skill-item i {
    font-size: 1.5rem;
    width: 1.5rem;
    text-align: center;
}

.skill-name {
    font-weight: 500;
    color: var(--primary-text);
}

/* Timeline Items */
.timeline-item {
    position: relative;
    margin-bottom: 2rem;
}

.timeline-marker {
    position: absolute;
    left: -2.5rem;
    top: 1.5rem;
    width: 1rem;
    height: 1rem;
    background: var(--accent-color);
    border-radius: 50%;
    border: 3px solid var(--primary-bg);
    box-shadow: 0 0 0 3px var(--accent-color);
}

.timeline-header h3 {
    margin: 0 0 0.5rem 0;
    color: var(--accent-color);
    font-size: 1.3rem;
}

.timeline-company {
    color: var(--accent-secondary);
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.timeline-period {
    color: var(--primary-text);
    opacity: 0.8;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.timeline-description ul {
    margin: 0;
    padding-left: 1.5rem;
}

.timeline-description li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
    color: var(--primary-text);
}

.timeline-description li::marker {
    color: var(--accent-color);
    font-weight: bold;
}

/* Specific skill icon colors */
.skill-item[data-skill="React.js"] i {
    color: #61dafb;
}

.skill-item[data-skill="JavaScript"] i {
    color: #f7df1e;
}

.skill-item[data-skill="TypeScript"] i {
    color: #3178c6;
}

.skill-item[data-skill="Java"] i {
    color: #ed8b00;
}

.skill-item[data-skill="Spring Boot"] i {
    color: #6db33f;
}

.skill-item[data-skill="PostgreSQL"] i {
    color: #336791;
}

.skill-item[data-skill="MongoDB"] i {
    color: #47a248;
}

.skill-item[data-skill="MySQL"] i {
    color: #4479a1;
}

.skill-item[data-skill="Docker"] i {
    color: #2496ed;
}

.skill-item[data-skill="Kubernetes"] i {
    color: #326ce5;
}

.skill-item[data-skill="AWS"] i {
    color: #ff9900;
}

.skill-item[data-skill="Redux"] i {
    color: #764abc;
}

.skill-item[data-skill="Testing"] i {
    color: #e74c3c;
}

.skill-item[data-skill="CI/CD"] i {
    color: #9b59b6;
}

.skill-item[data-skill="Agile"] i {
    color: #3498db;
}

/* Timeline Styling */
.timeline {
    position: relative;
    padding: 1rem 0;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 1.5rem;
    top: 0;
    bottom: 0;
    width: 0.2rem;
    background: linear-gradient(180deg, var(--accent-color), var(--accent-secondary));
    border-radius: 0.1rem;
}

.timeline-item {
    position: relative;
    margin-bottom: 2rem;
    padding-left: 3rem;
}

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

.timeline-marker {
    position: absolute;
    left: 0.8rem;
    top: 0.5rem;
    width: 1.5rem;
    height: 1.5rem;
    background: linear-gradient(135deg, var(--accent-color), var(--accent-secondary));
    border-radius: 50%;
    border: 0.25rem solid var(--primary-bg);
    box-shadow: 0 0 0 0.25rem rgba(59, 130, 246, 0.2);
    z-index: 2;
}

.timeline-content {
    background: rgba(59, 130, 246, 0.03);
    border: 1px solid rgba(139, 92, 246, 0.1);
    border-radius: 0.75rem;
    padding: 1.5rem;
    transition: all 0.3s ease;
}

.timeline-content:hover {
    background: rgba(59, 130, 246, 0.05);
    border-color: rgba(139, 92, 246, 0.2);
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.1);
    transform: translateX(0.5rem);
}

.timeline-header {
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(139, 92, 246, 0.1);
}

.company-logo {
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 0.75rem;
}

.company-logo i {
    font-size: 1.5rem;
    color: var(--accent-color);
    opacity: 0.9;
    transition: all 0.3s ease;
}

.company-logo i:hover {
    opacity: 1;
    transform: scale(1.1);
}

.company-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary-text);
    opacity: 0.9;
    transition: opacity 0.3s ease;
}

.company-logo:hover .company-name {
    opacity: 1;
}

.timeline-header h3 {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--accent-color);
    margin: 0 0 0.5rem 0;
    line-height: 1.3;
}

.timeline-company {
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--primary-text);
    margin-bottom: 0.25rem;
}

.timeline-period {
    font-size: 0.9rem;
    color: var(--accent-secondary);
    font-weight: 400;
    opacity: 0.8;
}

.timeline-description {
    color: var(--primary-text);
    line-height: 1.6;
}

.timeline-description ul {
    margin: 0;
    padding-left: 1.2rem;
}

.timeline-description li {
    margin-bottom: 0.75rem;
    font-weight: 300;
    position: relative;
}

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

.timeline-description li::before {
    content: '';
    position: absolute;
    left: -1.2rem;
    top: 0.5rem;
    width: 0.4rem;
    height: 0.4rem;
    background: var(--accent-color);
    border-radius: 50%;
    opacity: 0.6;
}

/* Enhanced About Me Section */
.about-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--accent-color);
}

.about-icon {
    font-size: 2.5rem;
    animation: float 3s ease-in-out infinite;
}

.about-header h3 {
    margin: 0;
    font-size: 1.8rem;
    color: var(--accent-color);
    font-weight: 600;
}

.about-text {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.about-intro {
    font-size: 1.1rem;
    line-height: 1.7;
    margin: 0;
}

.about-highlights {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    margin: 1rem 0;
}

.highlight-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    background: rgba(59, 130, 246, 0.05);
    border: 1px solid rgba(59, 130, 246, 0.1);
    border-radius: 0.75rem;
    transition: all 0.3s ease;
}

.highlight-item:hover {
    background: rgba(59, 130, 246, 0.1);
    border-color: var(--accent-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.2);
}

.highlight-item i {
    font-size: 1.2rem;
    color: var(--accent-color);
    width: 1.5rem;
    text-align: center;
}

.highlight-item span {
    font-weight: 500;
    color: var(--primary-text);
}

.about-passion {
    font-size: 1.1rem;
    line-height: 1.7;
    margin: 0;
    font-style: italic;
    text-align: center;
    padding: 1rem;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(139, 92, 246, 0.1));
    border-radius: 0.75rem;
    border: 1px solid rgba(59, 130, 246, 0.2);
}

.highlight {
    color: var(--accent-color);
    font-weight: 600;
    text-shadow: 0 0 10px rgba(59, 130, 246, 0.3);
}

.highlight-number {
    color: var(--accent-secondary);
    font-weight: 700;
    font-size: 1.2em;
    text-shadow: 0 0 10px rgba(139, 92, 246, 0.3);
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

/* Responsive adjustments for About Me */
@media (max-width: 48rem) {
    .about-highlights {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
    
    .about-header h3 {
        font-size: 1.5rem;
    }
    
    .about-icon {
        font-size: 2rem;
    }
}

@media (max-width: 30rem) {
    .about-header {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }
    
    .about-highlights {
        gap: 0.5rem;
    }
    
    .highlight-item {
        padding: 0.75rem;
    }
}

@media (max-width: 48rem) {
    .section-content-wrapper {
        flex-direction: column;
        align-items: center;
        padding: 1rem;
        justify-content: flex-start;
        gap: 1.5rem;
    }
    
    .section-heading {
        text-align: center;
        flex: none;
        width: 100%;
        max-width: none;
        margin-bottom: 0;
        padding-left: 0;
        font-size: 2.2rem;
        align-self: flex-start;
        order: -1;
    }
    
    .glass-container {
        max-width: 95vw;
        padding: 1.2rem;
        order: 1;
    }
    
    .timeline::before {
        left: 1rem;
    }
    
    .timeline-item {
        padding-left: 2.5rem;
    }
    
    .timeline-marker {
        left: 0.3rem;
        width: 1.25rem;
        height: 1.25rem;
    }
    
    .timeline-content {
        padding: 1.25rem;
    }
    
    .company-logo img {
        height: 2rem;
        max-width: 6rem;
    }
    
    .company-logo i {
        font-size: 1.25rem;
    }
    
    .company-name {
        font-size: 1rem;
    }
    
    .timeline-header h3 {
        font-size: 1.25rem;
    }
    
    .timeline-company {
        font-size: 1rem;
    }
    
    .skills-grid {
        grid-template-columns: repeat(auto-fit, minmax(6rem, 1fr));
        gap: 1rem;
        padding: 0.5rem;
    }
    
    .skill-item {
        min-height: 6rem;
        padding: 1rem 0.5rem;
    }
    
    .skill-item i {
        font-size: 2rem;
        margin-bottom: 0.5rem;
    }
    
    .skill-name {
        font-size: 0.8rem;
    }
    
    .contact-form button {
        align-self: center;
        width: 100%;
        max-width: 12rem;
    }
}

@media (max-width: 30rem) {
    .section-heading {
        font-size: 1.8rem;
        margin-bottom: 0.5rem;
    }
    
    .glass-container {
        padding: 1rem;
        max-width: 98vw;
    }
    
    .timeline::before {
        left: 0.75rem;
    }
    
    .timeline-item {
        padding-left: 2rem;
        margin-bottom: 1.5rem;
    }
    
    .timeline-marker {
        left: 0.1rem;
        width: 1rem;
        height: 1rem;
    }
    
    .timeline-content {
        padding: 1rem;
    }
    
    .company-logo img {
        height: 1.75rem;
        max-width: 5rem;
    }
    
    .company-logo i {
        font-size: 1.1rem;
    }
    
    .company-name {
        font-size: 0.9rem;
    }
    
    .timeline-header h3 {
        font-size: 1.1rem;
    }
    
    .timeline-company {
        font-size: 0.9rem;
    }
    
    .timeline-period {
        font-size: 0.8rem;
    }
    
    .timeline-description li {
        font-size: 0.9rem;
        margin-bottom: 0.5rem;
    }
    
    .skills-grid {
        grid-template-columns: repeat(auto-fit, minmax(5rem, 1fr));
        gap: 0.75rem;
    }
    
    .skill-item {
        min-height: 5rem;
        padding: 0.75rem 0.5rem;
    }
    
    .skill-item i {
        font-size: 1.5rem;
        margin-bottom: 0.4rem;
    }
    
    .skill-name {
        font-size: 0.7rem;
    }
    
    .contact-form {
        gap: 1rem;
    }
    
    .contact-form input,
    .contact-form textarea {
        padding: 0.6rem;
    }
    
    .contact-form button {
        padding: 0.7rem 1.2rem;
        font-size: 0.9rem;
    }
}

/* Responsive main header/navbar */
@media (max-width: 48rem) {
    .header {
        flex-direction: column;
        align-items: stretch;
        padding: 1rem;
        gap: 1rem;
    }
    
    .email-cta, .socials-container {
        margin: 0 auto;
        width: 100%;
        justify-content: center;
    }
    
    .email-cta {
        min-width: 12rem;
        padding: 1rem 2rem;
    }
    
    .socials-container {
        gap: 1rem;
        max-width: 20rem;
    }
    
    .socials-container a {
        min-width: 2.5rem;
        min-height: 2.5rem;
        font-size: 1.2rem;
    }
}

@media (max-width: 30rem) {
    .header {
        padding: 0.75rem;
    }
    
    .email-cta {
        min-width: 10rem;
        padding: 0.75rem 1.5rem;
        font-size: 0.9rem;
    }
    
    .socials-container a {
        min-width: 2.25rem;
        min-height: 2.25rem;
        font-size: 1rem;
        padding: 0.5rem;
    }
}

/* Enhanced Landing Page */
.home-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 3rem;
    max-width: 60rem;
    margin: 0 auto;
    padding: 2rem;
    position: relative;
    min-height: 100vh;
}

.pk-memoji-container {
    position: relative;
    margin-bottom: 2rem;
    z-index: 1;
}

.pk-memoji-container img {
    border-radius: 50%;
    transition: all 0.3s ease;
    animation: float 6s ease-in-out infinite;
    width: 200px;
    height: 200px;
    object-fit: cover;
}

.memoji-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 220px;
    height: 220px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.2) 0%, transparent 70%);
    border-radius: 50%;
    animation: pulse 3s ease-in-out infinite;
    z-index: -1;
}

.title {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    z-index: 2;
    position: relative;
}

.greeting {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    opacity: 0;
    animation: fadeInUp 1s ease forwards 0.5s;
}

.wave {
    font-size: 2rem;
    animation: wave 2s ease-in-out infinite;
    transform-origin: 70% 70%;
}

.greeting-text {
    font-size: 1.2rem;
    color: var(--primary-text);
    opacity: 0.8;
}

.main-title {
    font-size: 4rem;
    font-weight: 700;
    margin: 0 0 1.5rem 0;
    opacity: 0;
    animation: fadeInUp 1s ease forwards 1s;
    line-height: 1.1;
}

.name-highlight {
    background: linear-gradient(135deg, var(--accent-color), var(--accent-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 30px rgba(59, 130, 246, 0.3);
}

.cursor {
    color: var(--accent-color);
    animation: none;
    margin-left: 0.5rem;
}

.subtitle {
    font-size: 1.5rem;
    font-weight: 400;
    color: var(--primary-text);
    opacity: 0.8;
    margin: 0 0 2.5rem 0;
    max-width: 40rem;
    line-height: 1.4;
    opacity: 0;
    animation: fadeInUp 1s ease forwards 1.5s;
}

.role-badges {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 2.5rem;
    opacity: 0;
    animation: fadeInUp 1s ease forwards 2s;
}

.role-badge {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    padding: 0.5rem 1rem;
    border-radius: 2rem;
    font-size: 0.9rem;
    color: var(--accent-color);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.role-badge:hover {
    background: var(--accent-color);
    color: var(--primary-bg);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
    opacity: 0;
    animation: fadeInUp 1s ease forwards 2.5s;
    margin-bottom: 2rem;
}

.cta-primary, .cta-secondary {
    padding: 0.75rem 1.5rem;
    border-radius: 2rem;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.cta-primary {
    background: linear-gradient(135deg, var(--accent-color), var(--accent-secondary));
    color: white;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
}

.cta-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4);
}

.cta-secondary {
    background: transparent;
    color: var(--accent-color);
    border-color: var(--accent-color);
}

.cta-secondary:hover {
    background: var(--accent-color);
    color: white;
    transform: translateY(-3px);
}

.scroll-indicator {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    opacity: 0;
    animation: fadeIn 1s ease forwards 3s;
    z-index: 3;
}

.scroll-arrow {
    width: 2px;
    height: 2rem;
    background: var(--accent-color);
    border-radius: 1px;
    animation: scrollBounce 2s ease-in-out infinite;
}

.scroll-indicator span {
    font-size: 0.8rem;
    color: var(--primary-text);
    opacity: 0.6;
}

/* Landing Page Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes wave {
    0%, 100% {
        transform: rotate(0deg);
    }
    25% {
        transform: rotate(20deg);
    }
    75% {
        transform: rotate(-10deg);
    }
}

@keyframes blink {
    0%, 50% {
        opacity: 1;
    }
    51%, 100% {
        opacity: 0;
    }
}

@keyframes pulse {
    0%, 100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.3;
    }
    50% {
        transform: translate(-50%, -50%) scale(1.1);
        opacity: 0.6;
    }
}

@keyframes scrollBounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(10px);
    }
}

/* Responsive adjustments for landing page */
@media (max-width: 48rem) {
    .main-title {
        font-size: 3rem;
    }
    
    .subtitle {
        font-size: 1.3rem;
    }
    
    .role-badges {
        gap: 0.75rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
}

@media (max-width: 30rem) {
    .main-title {
        font-size: 2.5rem;
    }
    
    .subtitle {
        font-size: 1.1rem;
    }
    
    .role-badges {
        flex-direction: column;
        align-items: center;
    }
    
    .home-container {
        gap: 2rem;
        padding: 1rem;
    }
}

/* Mobile stacking for section layouts */
@media (max-width: 48rem) {
    .section-content-wrapper {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
    }

    .section-heading {
        width: 100%;
        align-self: stretch;
        text-align: left;
        margin: 0;
    }

    .about-me-content,
    .skills-content,
    .experience-content,
    .contact-content {
        width: 100%;
        max-width: 100%;
        align-self: stretch;
        margin: 0;
    }
}

/* Strong mobile override to force heading on top and content below */
@media (max-width: 48rem) {
    .section-content-wrapper {
        display: flex !important;
        flex-direction: column !important;
        align-items: stretch !important;
        justify-content: flex-start !important;
        gap: 1.25rem !important;
    }

    .section-content-wrapper .section-heading {
        order: -1 !important;
        width: 100% !important;
        flex: 0 0 auto !important;
        padding-left: 0 !important;
        margin: 0 0 0.5rem 0 !important;
        text-align: left !important;
    }

    .section-content-wrapper .glass-container,
    .section-content-wrapper .about-me-content,
    .section-content-wrapper .skills-content,
    .section-content-wrapper .experience-content,
    .section-content-wrapper .contact-content {
        order: 1 !important;
        width: 100% !important;
        max-width: 100% !important;
        align-self: stretch !important;
        margin: 0 !important;
    }
}