/* CSS Variables */
:root {
    --primary-gradient: linear-gradient(135deg, #0d9488 0%, #14b8a6 100%);
    --secondary-gradient: linear-gradient(135deg, #14b8a6 0%, #10b981 100%);
    --text-primary: #1f2937;
    --text-secondary: #4b5563;
    --text-accent: #0d9488;
    --bg-primary: #ffffff;
    --bg-secondary: #f8fafc;
    --bg-tertiary: #f1f5f9;
    --bg-card: #ffffff;
    --border-color: #e2e8f0;
    --border-light: #f1f5f9;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    
    /* Section-specific colors */
    --hero-bg: linear-gradient(135deg, #0f172a 0%, #134e4a 50%, #0f172a 100%);
    --about-bg: linear-gradient(135deg, #f0fdfa 0%, #ccfbf1 100%);
    --skills-bg: linear-gradient(135deg, #ffffff 0%, #f0fdfa 100%);
    --projects-bg: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    --contact-bg: linear-gradient(135deg, #0f172a 0%, #134e4a 50%, #0f172a 100%);
}

/* Base Styles */
html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-primary);
    line-height: 1.6;
}

.glass-effect {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.text-gradient {
    background: linear-gradient(135deg, #0d9488 0%, #14b8a6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.bg-gradient-animated {
    background: linear-gradient(-45deg, #0d9488, #14b8a6, #10b981, #059669, #065f46, #0f766e);
    background-size: 600% 600%;
    animation: gradientShift 15s ease infinite;
}

/* Text shadow utilities for better visibility */
.text-shadow-lg {
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7), 
                 0 0 20px rgba(0, 0, 0, 0.5);
}

.text-shadow-md {
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.6),
                 0 0 10px rgba(0, 0, 0, 0.3);
}

.text-shadow-sm {
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

/* Enhanced hero typography */
#home h1 {
    text-shadow: 3px 3px 12px rgba(0, 0, 0, 0.8),
                 0 0 30px rgba(0, 0, 0, 0.6);
}

#home p {
    text-shadow: 1px 1px 6px rgba(0, 0, 0, 0.7);
}

.hover-lift {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.particle {
    position: absolute;
    border-radius: 50%;
    opacity: 0.6;
    animation: float 6s ease-in-out infinite;
}

.particle:nth-child(odd) {
    animation-delay: -2s;
}

.particle:nth-child(even) {
    animation-delay: -4s;
}

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

.nav-link {
    position: relative;
    overflow: hidden;
}

.nav-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    transition: left 0.5s;
}

.nav-link:hover::before {
    left: 100%;
}

.skill-card-3d {
    perspective: 1000px;
}

.skill-card-inner {
    transform-style: preserve-3d;
    transition: transform 0.6s;
}

.skill-card-3d:hover .skill-card-inner {
    transform: rotateY(10deg) rotateX(10deg);
}

.section-reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s ease;
}

.section-reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

.stagger-animation {
    opacity: 0;
    transform: translateY(30px);
}

.stagger-animation.visible {
    animation: fadeInUp 0.8s ease forwards;
}

.parallax-bg {
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

.morphing-blob {
    border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
    animation: morph 8s ease-in-out infinite;
}

@keyframes morph {
    0% { border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%; }
    50% { border-radius: 30% 60% 70% 40% / 50% 60% 30% 60%; }
    100% { border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%; }
}

/* Enhanced Hero Animations */
.tech-particle {
    animation: techFloat 8s ease-in-out infinite;
}

.tech-card {
    animation: slideInUp 0.8s ease-out forwards;
    opacity: 0;
    transform: translateY(30px);
}

.tech-card:nth-child(1) { animation-delay: 0.1s; }
.tech-card:nth-child(2) { animation-delay: 0.2s; }
.tech-card:nth-child(3) { animation-delay: 0.3s; }
.tech-card:nth-child(4) { animation-delay: 0.4s; }
.tech-card:nth-child(5) { animation-delay: 0.5s; }
.tech-card:nth-child(6) { animation-delay: 0.6s; }

/* Mouse scroll animation */
.mouse-scroll {
    animation: scroll 2s ease-in-out infinite;
}

@keyframes techFloat {
    0%, 100% { 
        transform: translateY(0px) rotate(0deg); 
        opacity: 0.6;
    }
    25% { 
        transform: translateY(-20px) rotate(90deg); 
        opacity: 0.8;
    }
    50% { 
        transform: translateY(-40px) rotate(180deg); 
        opacity: 1;
    }
    75% { 
        transform: translateY(-20px) rotate(270deg); 
        opacity: 0.8;
    }
}

@keyframes slideInUp {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes scroll {
    0% {
        transform: translateY(0);
        opacity: 1;
    }
    50% {
        transform: translateY(10px);
        opacity: 0.5;
    }
    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Header - Consistent width with sections */
header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(13, 148, 136, 0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

header.scrolled {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(16px);
    box-shadow: 0 4px 20px rgba(13, 148, 136, 0.08);
}

/* Header wrapper to match section width */
.header-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 60px;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 0; /* Remove padding since it's handled by header-content */
}

.logo {
    font-size: 1.75rem;
    font-weight: 800;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.02em;
}

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

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    position: relative;
    transition: all 0.3s ease;
    letter-spacing: -0.01em;
}

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

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

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

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 8px;
    border-radius: 8px;
    transition: background 0.3s ease;
}

.hamburger:hover {
    background: var(--bg-tertiary);
}

.hamburger span {
    width: 28px;
    height: 3px;
    background: var(--text-primary);
    margin: 3px 0;
    border-radius: 2px;
    transition: 0.3s;
}

/* Hero Section */
.hero {
    background: var(--primary-gradient);
    color: white;
    padding: 0; /* Remove padding to let Tailwind handle it */
    text-align: center;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 80%, rgba(120, 119, 198, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(255, 255, 255, 0.05) 0%, transparent 50%);
}

.hero-content {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
    z-index: 1;
}

/* Ensure proper centering for the hero section */
#home {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-height: 100vh !important;
}

/* Override any conflicting padding from general section styles */
#home.hero-section {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}

.hero .badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 2rem;
    animation: fadeInUp 1s ease;
}

.hero h1 {
    font-size: clamp(3rem, 6vw, 5rem);
    font-weight: 800;
    margin-bottom: 1.5rem;
    line-height: 1.1;
    letter-spacing: -0.02em;
    animation: fadeInUp 1s ease 0.2s both;
}

.hero .tagline {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    opacity: 0.95;
    letter-spacing: -0.01em;
    animation: fadeInUp 1s ease 0.4s both;
}

.hero .description {
    font-size: 1.25rem;
    opacity: 0.9;
    margin-bottom: 3rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.7;
    font-weight: 400;
    animation: fadeInUp 1s ease 0.6s both;
}

.cta-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 1s ease 0.8s both;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 18px 36px;
    text-decoration: none;
    border-radius: 16px;
    font-weight: 700;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    letter-spacing: -0.01em;
}

.cta-button.primary {
    background: white;
    color: #1e40af;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.cta-button.secondary {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
}

.cta-button:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.cta-button.primary:hover {
    background: #f8fafc;
    transform: translateY(-4px) scale(1.02);
}

.cta-button.secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
}

/* Private Project Link Styling */
.private-link {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%) !important;
    color: white !important;
    border: 1px solid rgba(239, 68, 68, 0.3) !important;
    opacity: 0.8;
    cursor: not-allowed;
}

.private-link:hover {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%) !important;
    transform: none !important;
    opacity: 0.9;
}

.private-link i {
    color: #fecaca !important;
}

/* Sections - Unified styling */
section {
    position: relative;
}

/* Hero Section - Continuous layout */
#home {
    max-width: 1200px;
    margin: 0 auto;
    padding: 80px 60px;
    min-height: 100vh;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

/* Contact section - Continuous layout */
#contact {
    max-width: 1200px;
    margin: 0 auto;
    padding: 80px 60px;
}

/* Continuous Layout - All sections flow together */
section:not(#home) {
    max-width: 1200px;
    margin: 0 auto;
    padding: 80px 60px;
    scroll-margin-top: 80px; /* Account for fixed header height */
    border-top: 1px solid rgba(0, 0, 0, 0.08); /* Subtle separation */
}

/* Remove border from first content section - flows from header */
section#about {
    border-top: none;
    padding-top: 100px; /* Add extra padding to account for header */
}

/* Additional mobile header adjustments */
@media (max-width: 768px) {
    section:not(#home) {
        scroll-margin-top: 70px; /* Account for smaller mobile header */
        margin: 0 20px;
        padding: 40px 30px;
    }
    
    /* First section mobile - extra padding for header */
    section#about {
        padding-top: 70px;
    }
    
    #home {
        margin: 0 20px;
        padding: 40px 30px;
        min-height: 100vh;
    }
    
    #contact {
        margin: 0 20px;
        padding: 40px 30px;
    }
    
    /* Header mobile adjustment - match sections exactly */
    .header-content {
        margin: 0 20px;
        padding: 16px 30px;
    }
    
    nav {
        width: 100%;
    }
    
    /* Footer mobile adjustment */
    footer {
        margin: 0 20px;
        padding: 40px 30px; /* Match mobile section padding */
    }
    
    /* Footer wrapper stays full width on mobile */
    .footer-wrapper {
        margin: 0;
    }
}

@media (max-width: 480px) {
    section {
        padding: 60px 0;
        padding-left: 1rem;
        padding-right: 1rem;
    }

    nav {
        padding: 0 1rem;
    }

    .hero-content {
        padding: 0 1rem;
    }

    .about-stats {
        grid-template-columns: 1fr;
    }

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

/* Background variations for continuous sections - Override Tailwind conflicts */
section:nth-child(odd):not(#home):not(#contact):not(.skills-section) {
    background: var(--bg-primary);
}

section:nth-child(even):not(#home):not(#contact):not(.skills-section) {
    background: var(--bg-secondary);
}

/* Remove any conflicting background from body that might affect sections */
body.bg-gray-50 {
    background: var(--bg-secondary) !important;
}

/* Section-specific styling with dark-light alternating pattern - Enhanced specificity */
section.hero-section,
#home.hero-section {
    background: linear-gradient(135deg, #0f172a 0%, #134e4a 50%, #0f172a 100%) !important; /* DARK */
    color: white;
}

section.about-section,
#about.about-section {
    background: linear-gradient(135deg, #ffffff 0%, #f0fdfa 100%) !important; /* LIGHT */
    color: var(--text-primary);
}

.about-section .section-badge {
    background: linear-gradient(135deg, #0d9488, #14b8a6);
    color: white;
}

section.skills-section,
#skills.skills-section {
    background: linear-gradient(135deg, #134e4a 0%, #0f766e 50%, #134e4a 100%) !important; /* DARK */
    color: white !important;
}

.skills-section .section-badge {
    background: linear-gradient(135deg, #22d3ee, #14b8a6);
    color: white;
}

section.projects-section,
#projects.projects-section {
    background: linear-gradient(135deg, #ffffff 0%, #f0fdfa 100%) !important; /* LIGHT */
    color: var(--text-primary);
}

.projects-section .section-badge {
    background: linear-gradient(135deg, #0f766e, #0d9488);
    color: white;
}

section.contact-section,
#contact.contact-section {
    background: linear-gradient(135deg, #0f172a 0%, #134e4a 50%, #0f172a 100%) !important; /* DARK */
    color: white !important;
}

.contact-section .section-badge {
    background: linear-gradient(135deg, #06b6d4, #22d3ee);
    color: white;
}

/* Force dark section backgrounds - Override any Tailwind conflicts */
section#skills {
    background: linear-gradient(135deg, #134e4a 0%, #0f766e 50%, #134e4a 100%) !important;
    color: white !important;
}

section#contact {
    background: linear-gradient(135deg, #0f172a 0%, #134e4a 50%, #0f172a 100%) !important;
    color: white !important;
}

section#home {
    background: linear-gradient(135deg, #0f172a 0%, #134e4a 50%, #0f172a 100%) !important;
    color: white !important;
}

/* Ensure Tailwind py-20 doesn't override section backgrounds */
.py-20 {
    padding-top: 5rem !important;
    padding-bottom: 5rem !important;
}

/* Override any Tailwind background utilities */
.bg-gray-50,
.bg-white {
    background: inherit !important;
}

/* Enhanced card styling for dark-light alternating pattern */
.about-section .hover-lift {
    background: white;
    border: 1px solid rgba(13, 148, 136, 0.1);
    box-shadow: 0 4px 20px rgba(13, 148, 136, 0.08);
}

.about-section .hover-lift:hover {
    box-shadow: 0 8px 32px rgba(13, 148, 136, 0.15);
    transform: translateY(-4px);
}

.skills-section .skill-card-3d .skill-card-inner {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(12px);
    color: white;
}

.skills-section .skill-card-3d:hover .skill-card-inner {
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
    background: rgba(255, 255, 255, 0.15);
}

.skills-section .skill-card-3d .skill-card-inner h4 {
    color: white;
}

.skills-section .skill-card-3d .skill-card-inner p {
    color: rgba(255, 255, 255, 0.8);
}

.projects-section .project-card {
    background: white;
    border: 1px solid rgba(15, 118, 110, 0.1);
    box-shadow: 0 4px 20px rgba(15, 118, 110, 0.08);
}

.projects-section .project-card:hover {
    box-shadow: 0 8px 32px rgba(15, 118, 110, 0.15);
    transform: translateY(-4px);
    border-color: rgba(15, 118, 110, 0.2);
}

.contact-section .bg-white\/10 {
    background: rgba(255, 255, 255, 0.1) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    backdrop-filter: blur(12px);
}

/* Enhanced glass effect for dark sections */
.skills-section .bg-white\/10,
.contact-section .bg-white\/10 {
    background: rgba(255, 255, 255, 0.1) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    backdrop-filter: blur(16px) !important;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1) !important;
}

.skills-section .bg-white\/10:hover,
.contact-section .bg-white\/10:hover {
    background: rgba(255, 255, 255, 0.15) !important;
    border-color: rgba(255, 255, 255, 0.3) !important;
    transform: translateY(-2px);
    transition: all 0.3s ease;
}

/* Dark sections - Enhanced styling for better contrast */
.skills-section h2, .skills-section h3, .skills-section h4 {
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.skills-section p {
    color: rgba(255, 255, 255, 0.9);
}

.contact-section h2, .contact-section h3, .contact-section h4 {
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.contact-section p {
    color: rgba(255, 255, 255, 0.9);
}

/* Skills section skill tags enhanced styling */
.skills-section .skill-card-inner span {
    background: rgba(255, 255, 255, 0.15) !important;
    color: rgba(255, 255, 255, 0.9) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    backdrop-filter: blur(8px);
}

.skills-section .skill-card-inner span:hover {
    background: rgba(255, 255, 255, 0.2) !important;
    transform: translateY(-1px);
    transition: all 0.2s ease;
}

/* Section-specific decorative elements for dark-light pattern */
.about-section::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(13, 148, 136, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    transform: translate(50%, -50%);
    pointer-events: none;
}

.skills-section::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    transform: translate(-50%, 50%);
    pointer-events: none;
}

.projects-section::before {
    content: '';
    position: absolute;
    top: 50%;
    right: 0;
    width: 250px;
    height: 250px;
    background: radial-gradient(circle, rgba(15, 118, 110, 0.06) 0%, transparent 70%);
    border-radius: 50%;
    transform: translate(50%, -50%);
    pointer-events: none;
}

/* Continuous body background */
body {
    background: var(--bg-secondary);
    min-height: 100vh;
}

/* Dark sections styling */
section.dark-section {
    background: var(--bg-primary);
    color: white;
}

section.dark-section .section-title {
    color: white;
}

section.dark-section .section-subtitle {
    color: rgba(255, 255, 255, 0.8);
}

/* Section header styling - consistent across all sections */
.section-header {
    text-align: center;
    margin-bottom: 5rem;
}

.section-badge {
    display: inline-block;
    background: var(--bg-tertiary);
    color: var(--text-secondary);
    padding: 0.5rem 1.25rem;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.section-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.section-subtitle {
    font-size: 1.3rem;
    color: var(--text-secondary);
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.6;
    font-weight: 400;
}

/* About Section */
.about-content {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 6rem;
    align-items: center;
}

.profile-container {
    position: relative;
    text-align: center;
}

.profile-img {
    width: 400px;
    height: 400px;
    border-radius: 2rem;
    object-fit: cover;
    box-shadow: var(--shadow-2xl);
    margin: 0 auto;
    display: block;
    transition: transform 0.4s ease;
    border: 8px solid white;
}

.profile-img:hover {
    transform: scale(1.05) rotate(2deg);
}

.profile-badges {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.profile-badge {
    background: var(--primary-gradient);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    box-shadow: var(--shadow-md);
}

.about-text {
    font-size: 1.2rem;
    line-height: 1.8;
    color: var(--text-secondary);
}

.about-text h3 {
    color: var(--text-primary);
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 2rem;
    line-height: 1.3;
}

.about-text p {
    margin-bottom: 1.5rem;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-top: 4rem;
}

.stat-item {
    text-align: center;
    padding: 2.5rem;
    background: var(--bg-card);
    border-radius: 1.5rem;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.stat-number {
    font-size: 3rem;
    font-weight: 800;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: block;
    line-height: 1.2;
}

.stat-label {
    color: var(--text-secondary);
    font-weight: 600;
    margin-top: 0.75rem;
    font-size: 1.1rem;
}

/* PHP Laravel Focus Section */
.php-focus::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 10% 20%, rgba(30, 64, 175, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 90% 80%, rgba(13, 148, 136, 0.05) 0%, transparent 50%);
}

.php-ecosystem {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
    position: relative;
    z-index: 1;
}

.ecosystem-card {
    background: var(--bg-card);
    padding: 3rem;
    border-radius: 2rem;
    text-align: center;
    box-shadow: var(--shadow-xl);
    border: 1px solid var(--border-color);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.ecosystem-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--primary-gradient);
}

.ecosystem-card:hover {
    transform: translateY(-12px);
    box-shadow: var(--shadow-2xl);
}

.ecosystem-icon {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: var(--primary-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 2rem;
    font-size: 2.5rem;
    color: white;
    box-shadow: var(--shadow-lg);
}

.ecosystem-card h4 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.ecosystem-card p {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

.tech-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
}

.tech-item {
    background: var(--bg-tertiary);
    color: var(--text-primary);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    border: 1px solid var(--border-color);
}

/* ASN Identity Section */
.asn-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.asn-card {
    background: var(--bg-card);
    padding: 2.5rem;
    border-radius: 1.5rem;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.asn-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.asn-card .icon {
    width: 70px;
    height: 70px;
    border-radius: 1rem;
    background: var(--primary-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    font-size: 1.75rem;
    color: white;
}

.asn-card h4 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.asn-card p {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Projects Section - Grid Layout */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 3rem;
}

.project-card {
    background: var(--bg-card);
    border-radius: 2rem;
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    transition: all 0.4s ease;
    border: 1px solid var(--border-color);
}

.project-card:hover {
    transform: translateY(-12px);
    box-shadow: var(--shadow-2xl);
}

.project-header {
    background: var(--primary-gradient);
    padding: 3rem 2rem 2rem;
    color: white;
    text-align: center;
    position: relative;
}

.project-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 70% 70%, rgba(255, 255, 255, 0.05) 0%, transparent 50%);
}

.project-icon {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
}

.project-content {
    padding: 2.5rem;
}

.project-content h3 {
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
    line-height: 1.3;
}

.project-content p {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 2rem;
}

.tech-tag {
    background: var(--bg-tertiary);
    color: var(--text-primary);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    border: 1px solid var(--border-color);
}

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

.project-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #1e40af;
    text-decoration: none;
    font-weight: 700;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.project-link:hover {
    color: #0d9488;
    transform: translateX(3px);
}

/* Contact Section - Content Layout */
.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6rem;
}

.contact-info h3 {
    font-size: 2.25rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 2rem;
    line-height: 1.3;
}

.contact-info p {
    color: var(--text-secondary);
    font-size: 1.2rem;
    line-height: 1.7;
    margin-bottom: 3rem;
}

.contact-items {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 2rem;
    padding: 2rem;
    background: var(--bg-card);
    border-radius: 1.5rem;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.contact-item:hover {
    transform: translateX(8px);
    box-shadow: var(--shadow-xl);
}

.contact-item .icon {
    width: 70px;
    height: 70px;
    border-radius: 1rem;
    background: var(--primary-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 1.75rem;
    color: white;
}

.contact-item-content strong {
    display: block;
    color: var(--text-primary);
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.contact-item-content span {
    color: var(--text-secondary);
    font-size: 1rem;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    background: var(--bg-card);
    padding: 3rem;
    border-radius: 2rem;
    box-shadow: var(--shadow-xl);
    border: 1px solid var(--border-color);
}

.contact-form h4 {
    color: var(--text-primary);
    font-weight: 700;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.contact-form input,
.contact-form textarea {
    padding: 1.25rem 1.5rem;
    border: 2px solid var(--border-color);
    border-radius: 1rem;
    font-size: 1.1rem;
    font-family: inherit;
    transition: all 0.3s ease;
    background: var(--bg-primary);
    font-weight: 500;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: #0d9488;
    box-shadow: 0 0 0 4px rgba(13, 148, 136, 0.1);
}

.submit-btn {
    background: var(--primary-gradient);
    color: white;
    padding: 1.25rem 2rem;
    border: none;
    border-radius: 1rem;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-lg);
}

.submit-btn:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-xl);
}

/* Footer - Consistent width with sections */
.footer-wrapper {
    background: linear-gradient(135deg, #0f172a 0%, #134e4a 50%, #0f172a 100%);
    width: 100%;
}

footer {
    background: transparent;
    color: white;
    text-align: center;
    padding: 80px 60px;
    max-width: 1200px;
    margin: 0 auto;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 3rem;
}

.social-links a {
    width: 60px;
    height: 60px;
    background: var(--primary-gradient); /* Use theme gradient */
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 1rem;
    font-size: 1.5rem;
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.08);
}

.social-links a:hover {
    background: var(--secondary-gradient);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Call to Action Section - Ensure Visibility */
.mt-20 {
    margin-top: 5rem !important;
    position: relative;
    z-index: 20;
}

.bg-gradient-to-r.from-teal-600.to-emerald-600 {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    position: relative;
    z-index: 25;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25) !important;
}

/* Projects section - ensure proper spacing */
#projects {
    padding-bottom: 2rem;
    margin-bottom: 0;
}

/* Call to Action enhancement */
.cta-section {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    padding: 4rem 0;
    margin-top: 2rem;
    position: relative;
    z-index: 30;
}

.cta-card {
    background: linear-gradient(135deg, #0d9488 0%, #059669 100%);
    border-radius: 1.5rem;
    padding: 3rem 2rem;
    color: white;
    max-width: 56rem;
    margin: 0 auto;
    box-shadow: 0 20px 40px rgba(13, 148, 136, 0.3);
    transform: translateY(0);
    transition: transform 0.3s ease;
}

.cta-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 30px 60px rgba(13, 148, 136, 0.4);
}

.cta-button {
    background: white;
    color: #0d9488;
    padding: 1rem 2rem;
    border-radius: 0.75rem;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.cta-button:hover {
    background: #f3f4f6;
    transform: scale(1.05);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.cta-button-secondary {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
}

.cta-button-secondary:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.4);
}

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

/* Scroll to Top Button */
.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: var(--primary-gradient);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-xl);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
    z-index: 1000;
    backdrop-filter: blur(12px);
    border: 2px solid rgba(255, 255, 255, 0.1);
}

.scroll-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-to-top:hover {
    background: var(--secondary-gradient);
    transform: translateY(-5px) scale(1.1);
    box-shadow: var(--shadow-2xl);
}

.scroll-to-top:active {
    transform: translateY(-3px) scale(1.05);
}

.scroll-to-top i {
    transition: transform 0.3s ease;
}

.scroll-to-top:hover i {
    transform: translateY(-2px);
    animation: bounce 0.6s ease;
}

/* Enhanced bounce animation for the scroll button */
@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-8px);
    }
    60% {
        transform: translateY(-4px);
    }
}

/* Mobile responsive scroll button */
@media (max-width: 768px) {
    .scroll-to-top {
        bottom: 20px;
        right: 20px;
        width: 50px;
        height: 50px;
        font-size: 1.25rem;
    }
}

@media (max-width: 480px) {
    .scroll-to-top {
        bottom: 15px;
        right: 15px;
        width: 45px;
        height: 45px;
        font-size: 1.1rem;
    }
}

/* Layout Toggle Switch - Enhanced Design */
.layout-toggle-container {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
}

.layout-toggle-switch {
    position: relative;
    width: 70px;
    height: 36px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    outline: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 50px;
}

.layout-toggle-switch.mobile {
    display: none;
}

.toggle-track {
    position: relative;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #f1f5f9, #e2e8f0);
    border-radius: 50px;
    box-shadow: 
        inset 0 3px 6px rgba(0, 0, 0, 0.12),
        inset 0 1px 2px rgba(0, 0, 0, 0.08),
        0 1px 3px rgba(0, 0, 0, 0.1),
        0 0 0 1px rgba(0, 0, 0, 0.05);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

.toggle-track::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.8) 0%,
        rgba(255, 255, 255, 0.4) 50%,
        rgba(255, 255, 255, 0.1) 100%);
    border-radius: inherit;
    opacity: 0.6;
    transition: opacity 0.3s ease;
}

.toggle-thumb {
    position: absolute;
    top: 3px;
    left: 3px;
    width: 30px;
    height: 30px;
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border-radius: 50%;
    box-shadow: 
        0 4px 12px rgba(0, 0, 0, 0.15),
        0 2px 4px rgba(0, 0, 0, 0.1),
        inset 0 1px 2px rgba(255, 255, 255, 0.9),
        0 0 0 1px rgba(0, 0, 0, 0.05);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(8px);
    position: relative;
    overflow: hidden;
}

.layout-toggle-switch.mobile .toggle-thumb {
    width: 26px;
    height: 26px;
}

.toggle-thumb::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.9) 0%,
        rgba(255, 255, 255, 0.1) 100%);
    border-radius: inherit;
    opacity: 0.8;
}

.toggle-icon {
    font-size: 11px;
    color: #64748b;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    z-index: 1;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.1));
}

.layout-toggle-switch.mobile .toggle-icon {
    font-size: 9px;
}

/* Active (Full Width) State - Enhanced */
.layout-toggle-switch.active .toggle-track {
    background: linear-gradient(135deg, #0d9488 0%, #14b8a6 50%, #10b981 100%);
    box-shadow: 
        inset 0 3px 6px rgba(0, 0, 0, 0.15),
        inset 0 1px 2px rgba(0, 0, 0, 0.1),
        0 2px 8px rgba(13, 148, 136, 0.4),
        0 0 0 4px rgba(13, 148, 136, 0.15),
        0 0 20px rgba(13, 148, 136, 0.2);
    transform: scale(1.02);
}

.layout-toggle-switch.active .toggle-track::before {
    opacity: 0.3;
}

.layout-toggle-switch.active .toggle-thumb {
    transform: translateX(34px);
    background: linear-gradient(135deg, #ffffff 0%, #f0fdfa 100%);
    box-shadow: 
        0 6px 20px rgba(13, 148, 136, 0.3),
        0 3px 8px rgba(0, 0, 0, 0.15),
        inset 0 1px 3px rgba(255, 255, 255, 0.9),
        0 0 0 2px rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(13, 148, 136, 0.1);
}

.layout-toggle-switch.mobile.active .toggle-thumb {
    transform: translateX(32px);
}

.layout-toggle-switch.active .toggle-icon {
    color: #0d9488;
    transform: rotate(180deg) scale(1.2);
    filter: drop-shadow(0 2px 4px rgba(13, 148, 136, 0.3));
}

/* Enhanced Hover Effects */
.layout-toggle-switch:hover {
    transform: translateY(-1px);
}

.layout-toggle-switch:hover .toggle-track {
    box-shadow: 
        inset 0 3px 6px rgba(0, 0, 0, 0.12),
        inset 0 1px 2px rgba(0, 0, 0, 0.08),
        0 3px 12px rgba(0, 0, 0, 0.15),
        0 0 0 1px rgba(0, 0, 0, 0.05);
    transform: scale(1.01);
}

.layout-toggle-switch:hover .toggle-thumb {
    transform: scale(1.05);
    box-shadow: 
        0 6px 16px rgba(0, 0, 0, 0.2),
        0 3px 6px rgba(0, 0, 0, 0.1),
        inset 0 1px 2px rgba(255, 255, 255, 0.9),
        0 0 0 1px rgba(0, 0, 0, 0.05);
}

.layout-toggle-switch.active:hover .toggle-track {
    box-shadow: 
        inset 0 3px 6px rgba(0, 0, 0, 0.15),
        inset 0 1px 2px rgba(0, 0, 0, 0.1),
        0 4px 16px rgba(13, 148, 136, 0.5),
        0 0 0 4px rgba(13, 148, 136, 0.2),
        0 0 30px rgba(13, 148, 136, 0.3);
    transform: scale(1.03);
}

.layout-toggle-switch.active:hover .toggle-thumb {
    transform: translateX(37px) scale(1.05);
    box-shadow: 
        0 8px 25px rgba(13, 148, 136, 0.4),
        0 4px 10px rgba(0, 0, 0, 0.15),
        inset 0 1px 3px rgba(255, 255, 255, 0.9),
        0 0 0 2px rgba(255, 255, 255, 0.3);
}

.layout-toggle-switch.mobile.active:hover .toggle-thumb {
    transform: translateX(32px) scale(1.05);
}

/* Enhanced Focus State for Accessibility */
.layout-toggle-switch:focus {
    outline: none;
}

.layout-toggle-switch:focus .toggle-track {
    box-shadow: 
        inset 0 3px 6px rgba(0, 0, 0, 0.12),
        inset 0 1px 2px rgba(0, 0, 0, 0.08),
        0 1px 3px rgba(0, 0, 0, 0.1),
        0 0 0 4px rgba(59, 130, 246, 0.3),
        0 0 0 1px rgba(0, 0, 0, 0.05);
    animation: focusPulse 2s ease-in-out infinite;
}

@keyframes focusPulse {
    0%, 100% {
        box-shadow: 
            inset 0 3px 6px rgba(0, 0, 0, 0.12),
            inset 0 1px 2px rgba(0, 0, 0, 0.08),
            0 1px 3px rgba(0, 0, 0, 0.1),
            0 0 0 4px rgba(59, 130, 246, 0.3),
            0 0 0 1px rgba(0, 0, 0, 0.05);
    }
    50% {
        box-shadow: 
            inset 0 3px 6px rgba(0, 0, 0, 0.12),
            inset 0 1px 2px rgba(0, 0, 0, 0.08),
            0 1px 3px rgba(0, 0, 0, 0.1),
            0 0 0 6px rgba(59, 130, 246, 0.2),
            0 0 0 1px rgba(0, 0, 0, 0.05);
    }
}

/* Active Press Effect - Enhanced */
.layout-toggle-switch:active {
    transform: translateY(0) scale(0.98);
}

.layout-toggle-switch:active .toggle-thumb {
    transform: scale(0.9);
    transition: all 0.1s ease;
}

.layout-toggle-switch.active:active .toggle-thumb {
    transform: translateX(34px) scale(0.9);
}

.layout-toggle-switch.mobile.active:active .toggle-thumb {
    transform: translateX(30px) scale(0.9);
}

/* Enhanced Labels Styling */
.layout-toggle-container span {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    user-select: none;
    font-weight: 500;
    color: #64748b;
    font-size: 12px;
    letter-spacing: 0.025em;
    position: relative;
}

.layout-toggle-container span.active {
    color: #0d9488;
    font-weight: 600;
    transform: scale(1.05);
    text-shadow: 0 1px 2px rgba(13, 148, 136, 0.2);
}

.layout-toggle-container span::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #0d9488, #14b8a6);
    border-radius: 1px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateX(-50%);
}

.layout-toggle-container span.active::after {
    width: 100%;
}

/* Enhanced Loading/Transition Effect */
.layout-toggle-switch.transitioning .toggle-thumb {
    animation: switchPulseEnhanced 0.8s ease-in-out;
}

.layout-toggle-switch.transitioning .toggle-track {
    animation: trackGlow 0.8s ease-in-out;
}

@keyframes switchPulseEnhanced {
    0%, 100% {
        box-shadow: 
            0 4px 12px rgba(0, 0, 0, 0.15),
            0 2px 4px rgba(0, 0, 0, 0.1),
            inset 0 1px 2px rgba(255, 255, 255, 0.9),
            0 0 0 1px rgba(0, 0, 0, 0.05);
        transform: scale(1);
    }
    25% {
        transform: scale(1.1);
        box-shadow: 
            0 6px 20px rgba(13, 148, 136, 0.3),
            0 3px 8px rgba(0, 0, 0, 0.15),
            inset 0 1px 3px rgba(255, 255, 255, 0.9),
            0 0 0 2px rgba(13, 148, 136, 0.2);
    }
    50% {
        transform: scale(1.05) rotate(5deg);
        box-shadow: 
            0 8px 25px rgba(13, 148, 136, 0.4),
            0 4px 10px rgba(0, 0, 0, 0.15),
            inset 0 1px 3px rgba(255, 255, 255, 0.9),
            0 0 0 3px rgba(13, 148, 136, 0.3);
    }
    75% {
        transform: scale(1.1) rotate(-2deg);
        box-shadow: 
            0 6px 20px rgba(13, 148, 136, 0.3),
            0 3px 8px rgba(0, 0, 0, 0.15),
            inset 0 1px 3px rgba(255, 255, 255, 0.9),
            0 0 0 2px rgba(13, 148, 136, 0.2);
    }
}

@keyframes trackGlow {
    0%, 100% {
        box-shadow: 
            inset 0 3px 6px rgba(0, 0, 0, 0.12),
            inset 0 1px 2px rgba(0, 0, 0, 0.08),
            0 1px 3px rgba(0, 0, 0, 0.1),
            0 0 0 1px rgba(0, 0, 0, 0.05);
    }
    50% {
        box-shadow: 
            inset 0 3px 6px rgba(0, 0, 0, 0.15),
            inset 0 1px 2px rgba(0, 0, 0, 0.1),
            0 2px 8px rgba(13, 148, 136, 0.4),
            0 0 0 4px rgba(13, 148, 136, 0.15),
            0 0 20px rgba(13, 148, 136, 0.2);
    }
}

/* Smooth icon rotation animation */
@keyframes iconRotateEnhanced {
    0% {
        transform: rotate(0deg) scale(1);
        filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.1));
    }
    50% {
        transform: rotate(90deg) scale(1.3);
        filter: drop-shadow(0 2px 4px rgba(13, 148, 136, 0.4));
    }
    100% {
        transform: rotate(180deg) scale(1.2);
        filter: drop-shadow(0 2px 4px rgba(13, 148, 136, 0.3));
    }
}

/* Mobile responsive adjustments - Enhanced */
@media (max-width: 768px) {
    .layout-toggle-container {
        align-items: center;
        gap: 10px;
    }
    
    .layout-toggle-container span {
        font-size: 11px;
    }
    
    .layout-toggle-switch:hover {
        transform: none; /* Disable hover lift on mobile */
    }
    
    .layout-toggle-switch:hover .toggle-track {
        transform: scale(1);
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    .layout-toggle-switch .toggle-track {
        background: linear-gradient(135deg, #374151, #4b5563);
        box-shadow: 
            inset 0 3px 6px rgba(0, 0, 0, 0.3),
            inset 0 1px 2px rgba(0, 0, 0, 0.2),
            0 1px 3px rgba(0, 0, 0, 0.3),
            0 0 0 1px rgba(255, 255, 255, 0.1);
    }
    
    .layout-toggle-switch .toggle-thumb {
        background: linear-gradient(135deg, #f9fafb 0%, #e5e7eb 100%);
        box-shadow: 
            0 4px 12px rgba(0, 0, 0, 0.4),
            0 2px 4px rgba(0, 0, 0, 0.3),
            inset 0 1px 2px rgba(255, 255, 255, 0.9),
            0 0 0 1px rgba(0, 0, 0, 0.1);
    }
    
    .layout-toggle-container span {
        color: #9ca3af;
    }
    
    .layout-toggle-container span.active {
        color: #14b8a6;
    }
}

/* Remove old button styles - Legacy cleanup */
.layout-toggle-btn {
    display: none !important;
}

/* Full Width Layout Styles */
body.full-width-layout section:not(#home):not(#contact) {
    max-width: none !important;
    margin: 0 !important;
    padding-left: 2rem !important;
    padding-right: 2rem !important;
}

body.full-width-layout #home {
    max-width: none !important;
    margin: 0 !important;
    padding-left: 2rem !important;
    padding-right: 2rem !important;
}

body.full-width-layout #contact {
    max-width: none !important;
    margin: 0 !important;
    padding-left: 2rem !important;
    padding-right: 2rem !important;
}

body.full-width-layout .header-content {
    max-width: none !important;
    margin: 0 !important;
    padding-left: 2rem !important;
    padding-right: 2rem !important;
}

body.full-width-layout footer {
    max-width: none !important;
    margin: 0 !important;
    padding-left: 2rem !important;
    padding-right: 2rem !important;
}

/* Container adjustments for full width */
body.full-width-layout .container {
    max-width: none !important;
    padding-left: 2rem !important;
    padding-right: 2rem !important;
}

/* Mobile adjustments for full width */
@media (max-width: 768px) {
    body.full-width-layout section:not(#home):not(#contact) {
        margin: 0 !important;
        padding-left: 1rem !important;
        padding-right: 1rem !important;
    }
    
    body.full-width-layout #home {
        margin: 0 !important;
        padding-left: 1rem !important;
        padding-right: 1rem !important;
    }
    
    body.full-width-layout #contact {
        margin: 0 !important;
        padding-left: 1rem !important;
        padding-right: 1rem !important;
    }
    
    body.full-width-layout .header-content {
        margin: 0 !important;
        padding-left: 1rem !important;
        padding-right: 1rem !important;
    }
    
    body.full-width-layout footer {
        margin: 0 !important;
        padding-left: 1rem !important;
        padding-right: 1rem !important;
    }
    
    body.full-width-layout .container {
        padding-left: 1rem !important;
        padding-right: 1rem !important;
    }
}

/* Smooth transition for layout changes */
section, 
.header-content, 
footer, 
.container {
    transition: max-width 0.3s ease, margin 0.3s ease, padding 0.3s ease;
}
