@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&display=swap');

/* ==========================================================================
   CSS Variables & Reset
   ========================================================================== */
:root {
    --clr-primary: #4F46E5;
    --clr-primary-dark: #3730A3;
    --clr-secondary: #0F172A;
    --clr-accent: #F59E0B;
    --clr-white: #FFFFFF;
    --clr-bg: #F8FAFC;
    --clr-bg-soft: #EEF2F6;
    --clr-text-main: #1E293B;
    --clr-text-muted: #64748B;
    
    --font-main: 'Poppins', sans-serif;
    
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 6rem;
    
    --shadow-soft: 0 4px 20px rgba(0, 0, 0, 0.05);
    --shadow-hover: 0 20px 40px rgba(15, 23, 42, 0.1);
    --shadow-glow: 0 10px 30px rgba(79, 70, 229, 0.3);
    
    --br-sm: 8px;
    --br-md: 16px;
    --br-lg: 24px;
    --br-xl: 32px;
}

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    color: var(--clr-text-main);
    background-color: transparent; /* Changed to transparent so canvas shows */
    line-height: 1.7;
    overflow-x: hidden;
    position: relative;
    z-index: 1;
}

/* Base HTML background to fall back to white */
html {
    background-color: var(--clr-bg);
}

/* Hero Canvas Background */
#hero-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none; /* Let clicks pass through */
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

ul {
    list-style: none;
}

.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 var(--spacing-sm);
}

.section-padding {
    padding: var(--spacing-xl) 0;
}

.bg-soft {
    background-color: transparent;
}

/* Glassmorphism for sections to let particles peek through */
.glass-section {
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-top: 1px solid rgba(255, 255, 255, 0.8);
    border-bottom: 1px solid rgba(255, 255, 255, 0.8);
}

.text-center {
    text-align: center;
}

/* ==========================================================================
   Typography & Headings
   ========================================================================== */
h1, h2, h3, h4 {
    color: var(--clr-secondary);
    line-height: 1.2;
    font-weight: 700;
}

.section-heading {
    margin-bottom: var(--spacing-lg);
}

.section-heading .subheading {
    display: inline-block;
    color: var(--clr-primary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.875rem;
    margin-bottom: var(--spacing-xs);
}

.section-heading h2 {
    font-size: clamp(2rem, 4vw, 3rem);
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid transparent;
    font-family: var(--font-main);
    font-size: 1rem;
}

.btn-primary {
    background-color: var(--clr-secondary);
    color: var(--clr-white);
}

.btn-primary:hover {
    background-color: #000;
    transform: translateY(-2px);
}

.btn-glow {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.btn-outline {
    border-color: var(--clr-secondary);
    color: var(--clr-secondary);
    background-color: transparent;
}

.btn-outline:hover {
    background-color: var(--clr-secondary);
    color: var(--clr-white);
    transform: translateY(-2px);
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(0,0,0,0.05);
    z-index: 1000;
    transition: all 0.3s ease;
}

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

.logo {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--clr-secondary);
    letter-spacing: -1px;
}

.logo::after {
    content: '.';
    color: var(--clr-primary);
}

.main-nav {
    display: flex;
    align-items: center;
}

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

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

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

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

.mobile-nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.75rem 0.5rem;
    z-index: 1001;
    position: relative;
}

.hamburger {
    position: relative;
}

.hamburger, .hamburger::before, .hamburger::after {
    display: block;
    width: 28px;
    height: 3px;
    background-color: var(--clr-secondary);
    transition: all 0.3s ease;
    border-radius: 3px;
}

.hamburger::before, .hamburger::after {
    content: '';
    position: absolute;
    left: 0;
}

.hamburger::before { transform: translateY(-9px); }
.hamburger::after { transform: translateY(9px); }

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero {
    position: relative;
    padding-top: 150px;
    padding-bottom: 100px;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: transparent;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 2;
}

.badge {
    display: inline-block;
    padding: 0.5rem 1.25rem;
    background-color: rgba(79, 70, 229, 0.1);
    color: var(--clr-primary);
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.875rem;
    margin-bottom: var(--spacing-md);
    border: 1px solid rgba(79, 70, 229, 0.2);
}

.hero h1 {
    font-size: clamp(2.5rem, 6vw, 5.5rem);
    margin-bottom: var(--spacing-sm);
    letter-spacing: -2px;
}

.hero p {
    font-size: clamp(1.05rem, 2vw, 1.35rem);
    color: var(--clr-text-muted);
    margin-bottom: var(--spacing-lg);
    max-width: 650px;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    display: flex;
    gap: var(--spacing-sm);
    justify-content: center;
    flex-wrap: wrap;
}

.hero-chips {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.chip {
    display: inline-flex;
    align-items: center;
    padding: 0.4rem 1rem;
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--clr-secondary);
    box-shadow: var(--shadow-soft);
    backdrop-filter: blur(4px);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.chip:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--clr-text-muted);
    max-width: 650px;
    margin: 0.5rem auto 0;
}

/* ==========================================================================
   About Section
   ========================================================================== */
.about-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-xl);
    align-items: center;
}

.about-image-grid {
    position: relative;
}

.img-main {
    border-radius: var(--br-xl);
    width: 85%;
    box-shadow: var(--shadow-hover);
}

.img-sub {
    position: absolute;
    bottom: -10%;
    right: 0;
    width: 50%;
    border-radius: var(--br-lg);
    border: 10px solid var(--clr-bg);
    box-shadow: var(--shadow-hover);
}

.experience-badge {
    position: absolute;
    top: 10%;
    right: -5%;
    background: var(--clr-white);
    padding: 1.5rem;
    border-radius: var(--br-md);
    box-shadow: var(--shadow-soft);
    display: flex;
    flex-direction: column;
    align-items: center;
    animation: float 6s ease-in-out infinite;
}

.experience-badge .number {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--clr-primary);
}

.experience-badge .text {
    font-size: 0.875rem;
    color: var(--clr-text-muted);
    font-weight: 500;
}

.lead {
    font-size: 1.25rem;
    color: var(--clr-secondary);
    font-weight: 500;
    margin-bottom: var(--spacing-sm);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-md);
    margin-top: var(--spacing-md);
    padding-top: var(--spacing-md);
    border-top: 1px solid rgba(0,0,0,0.1);
}

.stat-item h3 {
    font-size: 2.5rem;
    color: var(--clr-primary);
    margin-bottom: 0.25rem;
}

.stat-item p {
    color: var(--clr-text-muted);
    font-weight: 500;
}

/* ==========================================================================
   Categories Section
   ========================================================================== */
.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--spacing-md);
}

.category-card {
    background: var(--clr-white);
    border-radius: var(--br-xl);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.category-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.card-img-wrapper {
    position: relative;
    height: 240px;
    overflow: hidden;
}

.card-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.category-card:hover .card-img-wrapper img {
    transform: scale(1.1);
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0) 0%, rgba(0,0,0,0.4) 100%);
}

.card-content {
    padding: var(--spacing-md);
    position: relative;
    background: var(--clr-white);
}

.icon-wrapper {
    position: absolute;
    top: -25px;
    right: 25px;
    width: 50px;
    height: 50px;
    background: var(--clr-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: var(--shadow-soft);
    z-index: 2;
}

.card-content h3 {
    font-size: 1.25rem;
    margin-bottom: var(--spacing-xs);
}

.card-content p {
    color: var(--clr-text-muted);
    font-size: 0.95rem;
    margin-bottom: var(--spacing-sm);
}

.link-btn {
    display: inline-block;
    color: var(--clr-primary);
    font-weight: 600;
    font-size: 0.95rem;
}

.link-btn:hover {
    color: var(--clr-primary-dark);
    transform: translateX(5px);
}

.card-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: rgba(15, 23, 42, 0.75);
    backdrop-filter: blur(8px);
    color: #fff;
    padding: 0.35rem 0.85rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    z-index: 2;
}

.category-points {
    margin: 0.75rem 0 1.25rem;
    padding: 0;
    list-style: none;
}

.category-points li {
    font-size: 0.85rem;
    color: var(--clr-text-muted);
    margin-bottom: 0.35rem;
    position: relative;
    padding-left: 1.25rem;
}

.category-points li::before {
    content: "•";
    color: var(--clr-primary);
    position: absolute;
    left: 0;
    font-weight: bold;
    font-size: 1.1rem;
    line-height: 1;
}

/* ==========================================================================
   Features Section
   ========================================================================== */
.features-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-xl);
    align-items: center;
}

.feature-list {
    margin-top: var(--spacing-md);
}

.feature-list li {
    display: flex;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-md);
}

.feature-list .icon {
    font-size: 2rem;
    background: rgba(255, 255, 255, 0.8);
    width: 60px;
    height: 60px;
    border-radius: var(--br-md);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.feature-list h4 {
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
}

.feature-list p {
    color: var(--clr-text-muted);
    font-size: 0.95rem;
}

.features-visual {
    position: relative;
    height: 100%;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.glass-card {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.9);
    padding: var(--spacing-lg);
    border-radius: var(--br-xl);
    box-shadow: var(--shadow-hover);
    max-width: 400px;
}

.glass-card h3 {
    margin-bottom: var(--spacing-sm);
}

.glass-card p {
    font-size: 1.1rem;
    font-style: italic;
    color: var(--clr-text-muted);
    margin-bottom: var(--spacing-md);
}

.signature {
    font-weight: 700;
    color: var(--clr-primary);
    font-size: 1.25rem;
}

/* ==========================================================================
   Gallery Section
   ========================================================================== */
.masonry-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    grid-auto-rows: 250px;
    gap: var(--spacing-sm);
}

.masonry-item {
    border-radius: var(--br-lg);
    overflow: hidden;
    position: relative;
}

.masonry-item:nth-child(1) { grid-row: span 2; }
.masonry-item:nth-child(4) { grid-row: span 2; }
.masonry-item:nth-child(5) { grid-column: span 1; }

.masonry-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.masonry-item:hover img {
    transform: scale(1.05);
}

.masonry-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 1.25rem;
    background: linear-gradient(to top, rgba(15, 23, 42, 0.9) 0%, rgba(15, 23, 42, 0.4) 60%, rgba(15, 23, 42, 0) 100%);
    color: #fff;
    transform: translateY(10px);
    opacity: 0.92;
    transition: all 0.3s ease;
    pointer-events: none;
}

.masonry-item:hover .masonry-overlay {
    transform: translateY(0);
    opacity: 1;
}

.masonry-overlay span {
    display: inline-block;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--clr-accent);
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.masonry-overlay h4 {
    color: #fff;
    font-size: 1rem;
    font-weight: 600;
    margin: 0;
}

/* ==========================================================================
   CTA Section (New bottom section)
   ========================================================================== */
.cta-card {
    background: linear-gradient(135deg, var(--clr-secondary), #1e293b);
    border-radius: var(--br-xl);
    padding: var(--spacing-xl) var(--spacing-md);
    text-align: center;
    color: var(--clr-white);
    position: relative;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(15, 23, 42, 0.5);
}

.cta-content {
    position: relative;
    z-index: 2;
    max-width: 700px;
    margin: 0 auto;
}

.cta-card h2 {
    color: var(--clr-white);
    font-size: clamp(2rem, 4vw, 3.5rem);
    margin-bottom: var(--spacing-sm);
}

.cta-card p {
    font-size: 1.15rem;
    opacity: 0.9;
    margin-bottom: var(--spacing-md);
    color: rgba(255,255,255,0.85);
}

.connect-info-bar {
    display: flex;
    gap: 1.25rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.connect-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.85rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 0.75rem 1.35rem;
    border-radius: var(--br-md);
    color: var(--clr-white);
    text-align: left;
    transition: all 0.3s ease;
}

.connect-pill:hover {
    background: rgba(255, 255, 255, 0.18);
    border-color: rgba(255, 255, 255, 0.45);
    transform: translateY(-3px);
}

.pill-icon {
    font-size: 1.4rem;
    background: rgba(255, 255, 255, 0.15);
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.pill-text {
    display: flex;
    flex-direction: column;
    line-height: 1.3;
}

.pill-text small {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: rgba(255, 255, 255, 0.7);
}

.pill-text strong {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--clr-white);
}

.cta-buttons {
    display: flex;
    gap: var(--spacing-sm);
    justify-content: center;
    flex-wrap: wrap;
}

.btn-outline-light {
    border: 2px solid rgba(255, 255, 255, 0.5);
    color: var(--clr-white);
    background: transparent;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.btn-outline-light:hover {
    background: var(--clr-white);
    color: var(--clr-secondary);
}

.cta-card .btn-primary {
    background: var(--clr-white);
    color: var(--clr-secondary);
}

.cta-card .btn-primary:hover {
    background: var(--clr-bg);
}

.cta-shapes .shape-circle {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
}

.cta-shapes .shape-circle:not(.small) {
    width: 500px;
    height: 500px;
    top: -250px;
    right: -150px;
}

.cta-shapes .small {
    width: 250px;
    height: 250px;
    bottom: -100px;
    left: -50px;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
    background-color: var(--clr-secondary);
    color: var(--clr-white);
    padding: var(--spacing-xl) 0 var(--spacing-md);
    margin-top: -20px;
}

.footer-content {
    display: grid;
    grid-template-columns: 1.8fr 1fr 1.4fr;
    gap: var(--spacing-xl);
    margin-bottom: var(--spacing-xl);
}

.footer-brand h2 {
    color: var(--clr-white);
    margin-bottom: var(--spacing-sm);
    font-size: 2rem;
}

.footer-brand p {
    color: rgba(255,255,255,0.7);
    max-width: 400px;
}

.footer-badge-list {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    margin-top: 1rem;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
}

.footer-badge-list span {
    display: inline-block;
    transition: color 0.2s ease;
}

.footer-badge-list span:hover {
    color: var(--clr-accent);
}

.footer-links h3, .footer-newsletter h3 {
    color: var(--clr-white);
    margin-bottom: var(--spacing-md);
}

.footer-links ul li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: rgba(255,255,255,0.7);
}

.footer-links a:hover {
    color: var(--clr-accent);
    padding-left: 5px;
}

.footer-newsletter p {
    color: rgba(255,255,255,0.7);
    margin-bottom: 1.25rem;
}

.footer-contact-cards {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.footer-contact-item {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 0.75rem 1rem;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--br-sm);
    transition: all 0.3s ease;
}

.footer-contact-item:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: var(--clr-accent);
    transform: translateX(4px);
}

.contact-icon {
    font-size: 1.25rem;
    width: 38px;
    height: 38px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.footer-contact-item div {
    display: flex;
    flex-direction: column;
    line-height: 1.3;
}

.footer-contact-item small {
    font-size: 0.72rem;
    color: rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.footer-contact-item strong {
    font-size: 0.98rem;
    color: var(--clr-white);
    font-weight: 600;
}

.footer-bottom {
    text-align: center;
    padding-top: var(--spacing-md);
    border-top: 1px solid rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.6);
    font-size: 0.9rem;
}

.footer-bottom a {
    color: rgba(255, 255, 255, 0.85);
    font-weight: 500;
}

.footer-bottom a:hover {
    color: var(--clr-accent);
}

/* ==========================================================================
   Utility & Animation
   ========================================================================== */
#back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: var(--clr-secondary);
    color: var(--clr-white);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 999;
    box-shadow: var(--shadow-hover);
}

#back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

#back-to-top:hover {
    transform: translateY(-5px);
    background: #000;
}

.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

/* Respect prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

/* ==========================================================================
   Media Queries (Tablet & Mobile Responsiveness)
   ========================================================================== */
@media (max-width: 992px) {
    .about-wrapper, .features-wrapper {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .about-image-grid {
        max-width: 480px;
        margin: 0 auto 1.5rem;
    }
    
    .features-visual {
        order: 0;
        min-height: auto;
    }
    
    .glass-card {
        max-width: 100%;
    }
    
    .footer-content {
        grid-template-columns: 1fr 1fr;
        gap: 2.5rem;
    }
}

@media (max-width: 768px) {
    .section-padding {
        padding: 3.5rem 0;
    }

    .container {
        padding: 0 1.25rem;
    }

    .nav-container {
        height: 70px;
    }

    .logo {
        font-size: 1.4rem;
    }

    .mobile-nav-toggle {
        display: block;
    }
    
    .main-nav {
        position: fixed;
        top: 0;
        right: -100%;
        height: 100vh;
        height: 100dvh;
        width: 82%;
        max-width: 320px;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(16px);
        -webkit-backdrop-filter: blur(16px);
        flex-direction: column;
        justify-content: center;
        align-items: flex-start;
        padding: 2.5rem 2rem;
        box-shadow: -10px 0 30px rgba(0,0,0,0.12);
        transition: right 0.35s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 1000;
    }
    
    .main-nav.active {
        right: 0;
    }
    
    .nav-links {
        display: flex;
        flex-direction: column;
        text-align: left;
        gap: 1.35rem;
        width: 100%;
    }
    
    .nav-links a {
        font-size: 1.15rem;
        font-weight: 600;
        color: var(--clr-secondary);
        display: block;
        padding: 0.25rem 0;
    }
    
    .mobile-nav-toggle.active .hamburger {
        background-color: transparent;
    }
    
    .mobile-nav-toggle.active .hamburger::before {
        transform: rotate(45deg);
    }
    
    .mobile-nav-toggle.active .hamburger::after {
        transform: rotate(-45deg);
    }
    
    /* Hero Mobile */
    .hero {
        padding-top: 110px;
        padding-bottom: 60px;
        min-height: auto;
    }

    .badge {
        font-size: 0.78rem;
        padding: 0.4rem 1rem;
        margin-bottom: 1.25rem;
    }

    .hero h1 {
        font-size: clamp(2rem, 8vw, 2.75rem);
        letter-spacing: -0.5px;
        line-height: 1.22;
        margin-bottom: 1rem;
    }

    .hero p {
        font-size: 0.98rem;
        margin-bottom: 1.75rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: stretch;
        max-width: 320px;
        margin: 0 auto;
        gap: 0.75rem;
    }

    .hero-buttons .btn {
        width: 100%;
        padding: 0.9rem 1.5rem;
    }

    .hero-chips {
        gap: 0.5rem;
        margin-top: 1.75rem;
    }

    .chip {
        font-size: 0.78rem;
        padding: 0.35rem 0.8rem;
    }

    /* About Mobile */
    .section-heading {
        margin-bottom: 2rem;
    }

    .section-heading h2 {
        font-size: clamp(1.65rem, 6vw, 2.25rem);
    }

    .section-subtitle {
        font-size: 0.95rem;
    }

    .img-main {
        width: 88%;
        border-radius: var(--br-lg);
    }

    .img-sub {
        width: 52%;
        bottom: -6%;
        right: 0;
        border-width: 6px;
        border-radius: var(--br-md);
    }

    .experience-badge {
        right: 4px;
        top: 10px;
        padding: 0.85rem 1.1rem;
    }

    .experience-badge .number {
        font-size: 1.15rem;
    }

    .experience-badge .text {
        font-size: 0.75rem;
    }

    .lead {
        font-size: 1.08rem;
    }

    .stats-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.75rem;
        text-align: center;
    }

    .stat-item h3 {
        font-size: 1.65rem;
    }

    .stat-item p {
        font-size: 0.8rem;
    }

    /* Categories Mobile */
    .category-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .card-img-wrapper {
        height: 210px;
    }

    .card-content {
        padding: 1.5rem;
    }

    /* Features Mobile */
    .feature-list .icon {
        width: 48px;
        height: 48px;
        font-size: 1.5rem;
    }

    .glass-card {
        padding: 1.75rem;
        border-radius: var(--br-lg);
    }

    .glass-card p {
        font-size: 1rem;
    }

    /* Gallery Mobile */
    .masonry-grid {
        grid-template-columns: 1fr;
        grid-auto-rows: 230px;
        gap: 1rem;
    }

    .masonry-item:nth-child(1),
    .masonry-item:nth-child(4),
    .masonry-item:nth-child(5) {
        grid-row: span 1;
        grid-column: span 1;
    }

    .masonry-overlay {
        transform: translateY(0);
        opacity: 1;
        padding: 1rem;
    }

    /* CTA & Connect Mobile */
    .cta-card {
        padding: 2.75rem 1.25rem;
        border-radius: var(--br-lg);
    }

    .cta-card h2 {
        font-size: 1.75rem;
        margin-bottom: 0.75rem;
    }

    .cta-card p {
        font-size: 0.98rem;
        margin-bottom: 1.5rem;
    }

    .connect-info-bar {
        flex-direction: column;
        align-items: stretch;
        gap: 0.75rem;
        max-width: 320px;
        margin: 0 auto 1.5rem;
    }

    .connect-pill {
        width: 100%;
        padding: 0.7rem 1rem;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: stretch;
        max-width: 320px;
        margin: 0 auto;
        gap: 0.75rem;
    }

    .cta-buttons .btn,
    .cta-buttons .btn-outline-light {
        width: 100%;
        padding: 0.9rem 1.5rem;
    }

    /* Footer Mobile */
    .footer {
        padding: 3.5rem 0 1.5rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        margin-bottom: 2rem;
    }

    .footer-brand h2 {
        font-size: 1.65rem;
    }

    .footer-bottom {
        font-size: 0.82rem;
        line-height: 1.6;
    }

    #back-to-top {
        bottom: 20px;
        right: 20px;
        width: 44px;
        height: 44px;
        font-size: 1.25rem;
    }
}

@media (max-width: 400px) {
    .hero h1 {
        font-size: 1.85rem;
    }

    .stats-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
        text-align: left;
    }
}
