/* ========================================
   EVENTEX - 2026 MAXIMIZED DESIGN SYSTEM
   ======================================== */

/* === IMPORTS === */
@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@300;400;500;600;700&family=Inter:wght@300;400;500;600;700;800&family=Playfair+Display:ital,wght@0,400;0,600;1,400&display=swap');

/* === VARIABLES === */
:root {
    /* Colors - Deep & Luxe */
    --pk-primary: #0a0a0a;
    --pk-secondary: #1a1a1a;

    /* Vibrant Accents */
    --pk-accent: #006666;
    /* User requested Deep Teal */
    --pk-accent-light: #4CB3B3;
    /* Matching Light Teal */
    --pk-accent-dark: #004d4d;
    --pk-accent-glow: rgba(0, 102, 102, 0.4);

    /* Backgrounds - Dark & Luxe */
    --pk-bg-body: linear-gradient(135deg, #020617 0%, #000000 100%);
    --pk-bg-surface: rgba(255, 255, 255, 0.03);
    --pk-bg-glass: rgba(0, 0, 0, 0.7);

    /* Text */
    --pk-text-main: #f8fafc;
    --pk-text-muted: #94a3b8;
    --pk-text-light: #ffffff;

    /* Borders */
    --pk-border: rgba(255, 255, 255, 0.1);
    --pk-border-hover: rgba(45, 212, 191, 0.3);

    /* Gradients */
    --pk-gradient-hero: radial-gradient(circle at 50% 0%, #111827 0%, #000000 60%);
    --pk-gradient-text: linear-gradient(120deg, #66CCCC 0%, #CFF3F3 45%, #FFFFFF 100%);
    /* Header/Footer Background */
    --pk-gradient-bar: linear-gradient(120deg, #FFFFFF 0%, #CFF3F3 45%, #66CCCC 100%);
    --pk-gradient-bar-scroll: linear-gradient(120deg, #FFFFFF 0%, #CFF3F3 45%, #66CCCC 100%);
    /* Unified Card Background - Matching Text Gradient */
    --pk-gradient-card: linear-gradient(120deg, #66CCCC 0%, #CFF3F3 45%, #FFFFFF 100%);
    /* Solid matching pastel teal on scroll */
    --pk-gradient-glow: conic-gradient(from 180deg at 50% 50%, #006666 0deg, #004d4d 180deg, #006666 360deg);

    /* Typography */
    --font-display: 'Space Grotesk', system-ui, sans-serif;
    --font-serif: 'Playfair Display', serif;
    --font-body: 'Inter', system-ui, sans-serif;

    /* Spacing */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 1.5rem;
    --space-lg: 2rem;
    --space-xl: 4rem;
    --space-2xl: 6rem;

    /* Radius */
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 32px;
    --radius-pill: 9999px;

    /* Shadows */
    --shadow-sm: 1px 4px 6px -1px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 20px 25px -5px rgba(0, 0, 0, 0.05), 0 8px 10px -6px rgba(0, 0, 0, 0.01);
    --shadow-lg: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
    --shadow-glow: 0 0 40px -10px var(--pk-accent-glow);

    /* Transitions */
    --ease-out-expo: cubic-bezier(0.19, 1, 0.22, 1);
    --duration-fast: 300ms;
    --duration-slow: 800ms;
}

@media (max-width: 480px) {
    :root {
        --space-md: 1rem;
        --space-lg: 1.5rem;
        --space-xl: 3rem;
        --space-2xl: 4rem;
        --radius-lg: 20px;
    }
}

@media (max-width: 320px) {
    :root {
        --space-sm: 0.75rem;
        --space-md: 0.75rem;
        --space-lg: 1rem;
        --space-xl: 2rem;
        --space-2xl: 3rem;
    }
}

/* === RESET & BASE === */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    cursor: none;
    /* Custom Cursor enabled */
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: var(--font-body);
    background: var(--pk-bg-body);
    min-height: 100vh;
    color: var(--pk-text-main);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    position: relative;
}

/* Noise Overlay */
.noise-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9000;
    opacity: 0.03;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

a {
    text-decoration: none;
    color: inherit;
    transition: all var(--duration-fast) var(--ease-out-expo);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: var(--radius-sm);
}

.img-full {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.image-frame {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-md);
}

.image-frame img {
    height: 450px;
}

@media (min-width: 1200px) {
    .image-frame img {
        height: 550px;
    }
}

@media (max-width: 768px) {
    .image-frame img {
        height: 350px !important;
    }
}

@media (max-width: 480px) {
    .image-frame img {
        height: 250px !important;
    }
}

p {
    font-size: 1.15rem;
    line-height: 1.8;
    margin-bottom: var(--space-lg);
}

/* === CUSTOM CURSOR === */
.cursor-dot,
.cursor-outline {
    position: fixed;
    top: 0;
    left: 0;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    z-index: 9999;
    pointer-events: none;
}

.cursor-dot {
    width: 8px;
    height: 8px;
    background-color: var(--pk-text-main);
}

.cursor-outline {
    width: 40px;
    height: 40px;
    border: 1px solid var(--pk-text-muted);
    transition: width 0.2s, height 0.2s, background-color 0.2s;
}

body:hover .cursor-outline {
    opacity: 1;
}

/* Cursor Hover State */
body.hovering .cursor-outline {
    width: 60px;
    height: 60px;
    background-color: rgba(13, 148, 136, 0.1);
    border-color: var(--pk-accent);
}

/* === UTILITIES === */
.container {
    width: 90%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 var(--space-sm);
}

.grid {
    display: grid;
    gap: var(--space-md);
}

.grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

@media (max-width: 992px) {
    .grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .grid-3 {
        grid-template-columns: 1fr;
    }
}

/* Responsive Grid Helpers */
.grid-2-col {
    grid-template-columns: 1fr 1fr;
}

.grid-auto-400 {
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
}

.grid-auto-300 {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

@media (max-width: 992px) {
    .grid-2-col {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .grid-auto-400,
    .grid-auto-300 {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 1200px) {
    .grid-auto-400 {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }
}

.section-padding {
    padding: var(--space-xl) 0;
}

.text-center {
    text-align: center;
}

/* === TYPOGRAPHY === */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-display);
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: -0.01em;
}

.display-1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    line-height: 1.1;
    margin-bottom: var(--space-md);
}

.display-2 {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: var(--space-sm);
}

.display-3 {
    font-size: clamp(1.5rem, 3vw, 2.2rem);
    margin-bottom: var(--space-md);
}

.serif-italic {
    font-family: var(--font-serif);
    font-style: italic;
    font-weight: 400;
    color: var(--pk-accent);
}

.text-gradient {
    background: var(--pk-gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* === NAVBAR === */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    padding: 0.75rem 0;
    background: var(--pk-gradient-bar);
    border-bottom: 1px solid rgba(148, 163, 184, 0.8);
    transition: all 0.5s var(--ease-out-expo);
    color: var(--pk-primary);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.navbar.navbar-transparent:not(.scrolled) {
    padding: 1.25rem 0;
    background: transparent;
    border-bottom: none;
    color: #ffffff;
    box-shadow: none;
}



.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: block;
    position: relative;
    overflow: hidden;
}

.logo-img {
    height: 45px;
    width: auto;
    object-fit: contain;
    transition: all 0.5s var(--ease-out-expo);
}

.navbar.scrolled .logo-img {
    filter: none;
}

.footer .logo-img {
    height: 60px;
    margin-bottom: 1rem;
    filter: none;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 2.5rem;
    /* Wide luxury spacing */
    list-style: none;
}

.nav-link {
    font-family: var(--font-display);
    font-weight: 600;
    position: relative;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.5rem 0;
    color: inherit;
    /* Use parent color (white or primary) */
    transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.nav-link::before {
    content: none;
    /* Remove dot */
}

.nav-link:hover {
    letter-spacing: 0.25em;
    /* Trendy Expansion Effect */
    color: var(--pk-accent);
    text-shadow: 0 0 20px rgba(0, 102, 102, 0.3);
    /* Subtle Aura */
}

.nav-link:hover::before {
    transform: none;
}

/* === BUTTONS === */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.8rem 1.5rem;
    margin-top: var(--space-sm);
    border-radius: var(--radius-pill);
    font-weight: 600;
    letter-spacing: 0.02em;
    position: relative;
    overflow: hidden;
    z-index: 1;
    transition: all var(--duration-fast) var(--ease-out-expo);
}

.btn-primary {
    background: #4CB3B3;
    color: black;
    border: 1px solid transparent;
}

.btn-primary:hover {
    background: var(--pk-accent);
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
}

.btn-outline {
    border: 1px solid var(--pk-border-hover);
    background: transparent;
}

.btn-outline:hover {
    border-color: var(--pk-primary);
    background: var(--pk-surface);
}

/* === HERO SECTION === */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: 80px;
    background: #000;
    overflow: hidden;
}

.hero-slider {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 2s ease;
    overflow: hidden;
}

.hero-slide.active {
    opacity: 1;
    z-index: 2;
}

.hero-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.65);
    border-radius: 0;
    transform: scale(1);
    transition: transform 6s ease-out;
}

.hero-slide.active img {
    transform: scale(1.15);
}

.hero-slide .overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(0, 0, 0, 0.6) 0%, rgba(0, 0, 0, 0.2) 40%, transparent 70%);
    z-index: 1;
}

.hero-container {
    position: relative;
    z-index: 10;
    width: 100%;
}

.hero-bg-accent {
    position: absolute;
    top: -20%;
    right: -10%;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, var(--pk-accent-light) 0%, rgba(255, 255, 255, 0) 70%);
    opacity: 0.05;
    filter: blur(100px);
    z-index: 5;
    animation: pulse 10s infinite alternate;
    pointer-events: none;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }

    100% {
        transform: scale(1.1);
    }
}

.hero-content {
    position: relative;
    z-index: 10;
    max-width: 850px;
    padding: 0 var(--space-sm);
}

.hero-badge {
    display: inline-block;
    padding: 0.6rem 1.2rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: var(--pk-accent-light);
    border-radius: var(--radius-pill);
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.hero-content p {
    max-width: 650px;
    margin-bottom: var(--space-lg);
}

/* Hero Dots Navigation */
.hero-slider-nav {
    position: absolute;
    bottom: 50px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 20;
}

.hero-dot {
    width: 30px;
    height: 4px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
    cursor: pointer;
    transition: all 0.4s var(--ease-out-expo);
}

.hero-dot.active {
    background: var(--pk-accent-light);
    width: 60px;
    box-shadow: 0 0 15px var(--pk-accent-glow);
}

@media (max-width: 900px) {
    .hero-content {
        text-align: center;
        margin: 0 auto;
        padding-bottom: 60px;
    }

    .hero-content p {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-slide .overlay {
        background: radial-gradient(circle at 50% 50%, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0.2) 60%, transparent 100%);
    }

    .hero-slider-nav {
        bottom: 40px;
    }
}

/* === MARQUEE === */
.marquee-section {
    padding: var(--space-lg) 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    overflow: hidden;
    background: transparent;
}

.marquee-content {
    display: flex;
    gap: var(--space-xl);
    animation: marquee 30s linear infinite;
    width: max-content;
}

.marquee-item {
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.25);
    white-space: nowrap;
    text-transform: uppercase;
}

@keyframes marquee {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* === BENTO GRID === */
.bento-section {
    position: relative;
}

.bento-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    grid-template-rows: repeat(2, minmax(300px, auto));
    gap: var(--space-md);
    margin-top: var(--space-lg);
}

.bento-card {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--pk-gradient-card);
    /* Unified Card Gradient */
    color: var(--pk-primary);
    cursor: auto;
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.3);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.bento-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.19, 1, 0.22, 1);
    opacity: 0.85;
}

.bento-card:hover {
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 20px 40px -5px rgba(0, 0, 0, 0.4);
    transform: translateY(-5px);
}

.bento-card:hover img {
    transform: scale(1.05);
    opacity: 0.6;
}

.bento-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.2) 50%, transparent 100%);
    z-index: 1;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.bento-card:hover .bento-overlay {
    opacity: 1;
}

.bento-content {
    position: absolute;
    bottom: 0;
    left: 0;
    padding: var(--space-md);
    z-index: 2;
    transform: translateY(0);
    /* Always visible */
    width: 100%;
}

.bento-content h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: #ffffff;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.bento-content p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.95rem;
    margin: 0;
}

.text-card .bento-content h3,
.text-card .bento-content p {
    color: var(--pk-primary);
    text-shadow: none;
}

/* Text-Only Card Variant */
.bento-card.text-card {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: var(--space-lg);
}

.bento-card.text-card .bento-content {
    position: relative;
    padding: 0;
}

.bento-card.text-card h3 {
    font-size: 2.5rem;
    line-height: 1.1;
}

.bento-card.text-card p {
    font-size: 1.1rem;
    margin-top: 1rem;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

.bento-large {
    grid-column: span 8;
    grid-row: span 2;
}

.bento-medium {
    grid-column: span 4;
    grid-row: span 1;
}

.bento-small {
    grid-column: span 4;
    grid-row: span 1;
}

@media (max-width: 1024px) {
    .bento-large {
        grid-column: span 12;
    }

    .bento-medium {
        grid-column: span 6;
    }

    .bento-small {
        grid-column: span 6;
    }
}

@media (max-width: 768px) {

    .bento-medium,
    .bento-small {
        grid-column: span 12;
    }
}

/* === FEATURES === */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-lg);
    margin-top: var(--space-lg);
}

.feature-item {
    padding: var(--space-md);
    border-radius: var(--radius-md);
    background: var(--pk-gradient-card);
    /* Header/Footer Color */
    color: var(--pk-primary);
    border: 1px solid rgba(0, 102, 102, 0.2);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.feature-item h3 {
    color: var(--pk-primary);
    margin-bottom: 0.75rem;
}

.feature-item p,
.feature-item .text-muted {
    color: #39414a !important;
    font-size: 0.95rem;
    /* Darker muted text for readability */
}

.feature-item:hover {
    background: #ffffff;
    border-color: var(--pk-accent);
    box-shadow: 0 15px 45px -5px rgba(0, 102, 102, 0.4);
    transform: translateY(-5px);
}

.feature-item-glow {
    box-shadow: 0 15px 45px -5px rgba(0, 102, 102, 0.3) !important;
}

/* Featured Service Item - For Long Content */
.feature-item-featured {
    grid-column: span 3;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xl);
    align-items: center;
    background: var(--pk-gradient-card);
    padding: var(--space-xl);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(0, 102, 102, 0.2);
    margin-top: var(--space-lg);
}

@media (max-width: 1024px) {
    .feature-item-featured {
        grid-template-columns: 1fr;
        grid-column: span 1;
    }
}

.feature-item-featured .card-image {
    height: 100%;
    min-height: 400px;
    margin-bottom: 0;
}

.feature-item-featured .featured-content {
    display: flex;
    flex-direction: column;
}

.feature-item-featured h3 {
    font-size: 1.8rem;
    margin-bottom: var(--space-md);
    color: var(--pk-primary);
}

.feature-item-featured p {
    font-size: 0.95rem;
    line-height: 1.8;
    margin-bottom: var(--space-sm);
    color: #39414a;
}

.feature-item-featured .closing-quote {
    margin-top: var(--space-md);
    font-family: var(--font-serif);
    font-style: italic;
    color: var(--pk-accent);
    font-size: 1.2rem;
    border-left: 3px solid var(--pk-accent);
    padding-left: 1.5rem;
}

@media (max-width: 1024px) {
    .feature-item-featured {
        grid-template-columns: 1fr;
        padding: var(--space-lg);
        gap: var(--space-lg);
    }

    .feature-item-featured .card-image {
        min-height: 300px;
    }
}

@media (max-width: 768px) {
    .feature-item-featured {
        grid-column: span 1;
    }
}

/* === STATS SECTION === */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-lg);
    margin-bottom: var(--space-2xl);
}

.stat-item {
    padding: var(--space-lg) var(--space-md);
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(76, 179, 179, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.05);
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: transform 0.35s var(--ease-out-expo), box-shadow 0.35s var(--ease-out-expo), border-color 0.35s ease;
}

.stat-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.stat-item::after {
    content: '';
    position: absolute;
    bottom: -60%;
    left: 50%;
    transform: translateX(-50%);
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(76, 179, 179, 0.12) 0%, transparent 70%);
    pointer-events: none;
    transition: opacity 0.4s ease;
}

.stat-item:hover {
    transform: translateY(-6px);
    border-color: rgba(76, 179, 179, 0.5);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4), 0 0 30px rgba(0, 102, 102, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.stat-item:hover::before {
    opacity: 1;
}

.stat-number {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    line-height: 1.1;
    margin-bottom: 0.5rem;
    background: var(--pk-gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.02em;
}

.stat-label {
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.75) !important;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin: 0 !important;
}

@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }
}

.card-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    border-radius: var(--radius-sm);
    margin-bottom: var(--space-md);
    position: relative;
    border: 1px solid rgba(0, 102, 102, 0.1);
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.19, 1, 0.22, 1);
}

.feature-item:hover .card-image img {
    transform: scale(1.08);
}

.feature-num {
    display: none;
}

/* Service Icons - Professional Design */
.service-icon {
    display: none;
}


/* === FOOTER === */
.footer {
    background: var(--pk-gradient-bar);
    /* Ensures layers (gradient + white) work */
    color: var(--pk-primary);
    padding: var(--space-xl) 0 var(--space-md);
    margin-top: var(--space-md);
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    border-top: 4px solid var(--pk-accent);
    /* Greenish accent top */
    position: relative;
    overflow: hidden;
}

.footer::before {
    /* Subtle texture or grain */
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
    opacity: 0.02;
    pointer-events: none;
}


.footer-top,
.footer-copyright,
.footer-bottom {
    position: relative;
    z-index: 10;
}

.footer-top {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-xl);
    margin-bottom: var(--space-lg);
    padding-bottom: var(--space-md);
}

.footer-col {
    flex: 1;
    min-width: 200px;
}

/* Maintain original flex ratios */
.footer-col:nth-child(1) { flex: 2; }
.footer-col:nth-child(2) { flex: 1.5; }
.footer-col:nth-child(3) { flex: 1; }
.footer-col:nth-child(4) { flex: 1.5; }

/* Responsive adjustments for footer columns */
@media (max-width: 1200px) {
    .footer-top {
        gap: var(--space-lg);
    }
    .footer-col {
        min-width: 180px;
    }
}

@media (max-width: 1024px) {
    .footer-col {
        min-width: calc(50% - var(--space-lg));
    }
}

@media (max-width: 768px) {
    .footer-col {
        min-width: 100%;
    }
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--space-md);
    padding-top: 2rem;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.footer-copyright {
    font-size: 0.9rem;
    opacity: 0.85;
}

.footer-col h4 {
    margin-bottom: var(--space-md);
    color: var(--pk-primary);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    font-size: 0.85rem;
    position: relative;
    display: inline-block;
}

.footer-col h4::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 30px;
    height: 2px;
    background: var(--pk-accent);
    border-radius: 2px;
    transition: width 0.3s ease;
}

.footer-col:hover h4::after {
    width: 50px;
}

.footer-col a {
    display: flex;
    align-items: center;
    margin-bottom: 0.85rem;
    opacity: 0.85;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 0.95rem;
    position: relative;
    width: fit-content;
    color: var(--pk-primary);
    text-decoration: none;
}

.footer-col a:hover {
    opacity: 1;
    color: var(--pk-primary);
    transform: translateX(8px);
}

.footer-col a svg {
    margin-right: 12px;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.footer-col a:hover svg {
    transform: scale(1.2) rotate(5deg);
    color: var(--pk-accent);
}

.footer-links-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0 1.5rem;
}

.footer-quote {
    border-left: 3px solid var(--pk-accent);
    padding-left: 1.5rem;
    position: relative;
    max-width: 320px;
    margin-top: 1.5rem;
    line-height: 1.8;
    font-family: var(--font-serif);
    font-size: 1.2rem;
    font-style: normal;
    color: #334155 !important;
}

.footer .text-muted {
    color: #334155 !important;
}

.logo-footer {
    transition: transform 0.3s ease;
    display: inline-block;
    opacity: 1 !important;
    filter: none !important;
    -webkit-filter: none !important;
}

.logo-footer img {
    filter: none !important;
    -webkit-filter: none !important;
}

.logo-footer:hover {
    transform: scale(1.05);
}

.social-link-styled {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(0, 0, 0, 0.05);
    border-radius: 50%;
    color: var(--pk-primary) !important;
    transition: all 0.3s ease !important;
    margin-bottom: 0 !important;
}

.social-link-styled:hover {
    background: var(--pk-accent);
    color: white !important;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 102, 102, 0.2);
}

/* === REVIEW CARDS === */
.review-card {
    background: var(--pk-gradient-card);
    /* Header/Footer Color */
    color: var(--pk-primary);
    padding: var(--space-md);
    border-radius: var(--radius-md);
    border: 1px solid rgba(0, 102, 102, 0.2);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.review-card p,
.review-card .text-muted {
    color: #334155 !important;
    font-size: 0.95rem;
    /* Darker muted text */
}

.review-card h4 {
    color: var(--pk-primary);
}

.review-card:hover {
    border-color: var(--pk-accent);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px -5px rgba(0, 102, 102, 0.15);
}

.review-quote {
    color: var(--pk-accent);
    font-size: 2.5rem;
    line-height: 1;
    margin-bottom: 0.5rem;
    font-family: var(--font-serif);
}

/* === TESTIMONIAL SLIDER === */
.testimonial-slider {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
    overflow: hidden;
    padding: var(--space-md) 0;
}

.testimonial-track {
    display: flex;
    transition: transform 0.6s cubic-bezier(0.19, 1, 0.22, 1), height 0.4s ease;
}

.testimonial-slide {
    min-width: 100%;
    padding: 0 var(--space-md);
    opacity: 0.3;
    scale: 0.9;
    transition: all 0.6s ease;
}

.testimonial-slide.active {
    opacity: 1;
    scale: 1;
}

.slider-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: var(--space-md);
    margin-top: var(--space-md); /* Increased from space-sm to avoid touching content */
}

.slider-arrow {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    border: 1px solid var(--pk-accent);
    background: transparent;
    color: var(--pk-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.slider-arrow:hover {
    background: var(--pk-accent);
    color: white;
}

.slider-dots {
    display: flex;
    gap: 0.5rem;
}

.slider-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(0, 102, 102, 0.2);
    cursor: pointer;
    transition: all 0.3s ease;
}

.slider-dot.active {
    background: var(--pk-accent);
    width: 24px;
    border-radius: 4px;
}

.review-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid rgba(0, 102, 102, 0.2);
}

/* === UTILS === */
.flex {
    display: flex;
    gap: var(--space-sm);
    flex-wrap: wrap;
}

.hidden {
    display: none;
}

/* === PAGE HERO === */
.hero-page {
    padding: var(--space-2xl) 0 var(--space-lg);
    background: var(--pk-bg-surface);
    position: relative;
    overflow: hidden;
}

.hero-page::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(0, 102, 102, 0.1) 0%, transparent 70%);
    filter: blur(60px);
    z-index: 0;
}

/* === FORMS === */
.contact-form {
    background: var(--pk-gradient-card);
    padding: var(--space-lg);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(0, 102, 102, 0.2);
    box-shadow: var(--shadow-lg);
    color: var(--pk-primary);
}

.form-group {
    margin-bottom: var(--space-md);
}

.form-label {
    display: block;
    font-weight: 700;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--pk-primary);
}

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.5);
    border: 1px solid rgba(0, 102, 102, 0.2);
    color: var(--pk-primary);
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-size: 1rem;
    transition: all var(--duration-fast) var(--ease-out-expo);
    outline: none;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    border-color: var(--pk-accent);
    box-shadow: 0 0 0 4px rgba(13, 148, 136, 0.1);
}

.form-input::placeholder,
.form-textarea::placeholder {
    color: rgba(0, 51, 51, 0.4);
}

.form-textarea {
    min-height: 150px;
    resize: vertical;
}

/* === UTILS ADDITIONS === */
.grid {
    display: grid;
    gap: var(--space-md);
}

/* === MOBILE RESPONSIVENESS === */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background: var(--pk-gradient-bar);
        backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: center;
        transition: right 0.4s var(--ease-out-expo);
        z-index: 99;
        box-shadow: -10px 0 20px rgba(0, 0, 0, 0.1);
    }

    .nav-menu.active {
        right: 0;
    }

    .nav-link {
        font-size: 1.5rem;
    }

    .mobile-toggle {
        display: block;
        z-index: 101;
        width: 30px;
        height: 20px;
        position: relative;
        cursor: pointer;
    }

    .mobile-toggle span {
        display: block;
        width: 100%;
        height: 2px;
        background: currentColor;
        /* Matches parent color (white or primary) */
        position: absolute;
        transition: all 0.3s ease;
    }

    .mobile-toggle span:nth-child(1) {
        top: 0;
    }

    .mobile-toggle span:nth-child(2) {
        top: 9px;
    }

    .mobile-toggle span:nth-child(3) {
        top: 18px;
    }

    .mobile-toggle.active span:nth-child(1) {
        transform: rotate(45deg);
        top: 9px;
    }

    .mobile-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .mobile-toggle.active span:nth-child(3) {
        transform: rotate(-45deg);
        top: 9px;
    }

    /* Adjust text sizes for mobile */
    .display-1 {
        font-size: 2.8rem;
    }

    .display-2 {
        font-size: 2rem;
    }

    .section-padding {
        padding: var(--space-lg) 0;
    }
}

@media (max-width: 480px) {
    .display-1 { font-size: 2.2rem; }
    .display-2 { font-size: 1.75rem; }
    .display-3 { font-size: 1.5rem; }
    
    p { font-size: 1rem; }
    
    .container {
        width: 92%;
        padding: 0 10px;
    }

    .bento-grid {
        grid-template-rows: auto;
    }

    .bento-card.text-card h3 {
        font-size: 1.5rem;
    }

    .marquee-item {
        font-size: 1.5rem;
    }
}

@media (max-width: 320px) {
    .display-1 { font-size: 1.8rem; }
    .display-2 { font-size: 1.5rem; }
    
    .hero-badge {
        font-size: 0.75rem;
        padding: 0.4rem 0.8rem;
    }

    .marquee-item {
        font-size: 1.25rem;
    }

    .bento-content h3 {
        font-size: 1.1rem;
    }
}

@media (min-width: 769px) {
    .mobile-toggle {
        display: none;
    }
}

/* === EXPERTISE & REASONS === */
.expertise-list {
    list-style: none;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1rem;
}

.expertise-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: var(--space-md) var(--space-sm);
    background: rgba(0, 102, 102, 0.05);
    border: 1px solid var(--pk-accent-light);
    border-radius: var(--radius-md);
    font-size: 0.9rem;
    font-weight: 600;
    color: #ffffff;
    box-shadow: 0 10px 25px -10px var(--pk-accent-glow);
    transition: all 0.4s var(--ease-out-expo);
    height: 100%;
}

.expertise-item:hover {
    background: rgba(0, 102, 102, 0.15);
    border-color: #ffffff;
    transform: translateY(-5px);
    box-shadow: 0 20px 40px -12px var(--pk-accent-glow);
    color: #ffffff;
}

.quote-accent {
    margin-bottom: var(--space-lg);
    font-style: italic;
    color: var(--pk-text-muted);
    padding-left: 1.5rem;
    border-left: 3px solid var(--pk-accent);
    font-size: 1.2rem;
    line-height: 1.6;
    font-family: var(--font-serif);
}

.reason-card {
    display: flex;
    gap: var(--space-md);
    align-items: start;
    padding: var(--space-md);
    background: var(--pk-bg-surface);
    border-radius: var(--radius-md);
    border: 1px solid var(--pk-border);
    transition: all 0.4s var(--ease-out-expo);
}

.reason-card:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--pk-accent);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
}

.reason-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    background: rgba(0, 102, 102, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--pk-accent-light);
    border: 1px solid rgba(0, 102, 102, 0.2);
    transition: all 0.3s ease;
}

.reason-card:hover .reason-icon {
    background: var(--pk-accent);
    color: white;
    transform: scale(1.1) rotate(5deg);
}

.reason-title {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--pk-text-main);
}

@media (max-width: 1200px) {
    .expertise-list {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 992px) {
    .expertise-list {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .expertise-list {
        grid-template-columns: repeat(2, 1fr);
    }

    .reason-card {
        padding: var(--space-sm);
    }
}

@media (max-width: 480px) {
    .expertise-list {
        grid-template-columns: 1fr;
    }
}

/* Responsive Fixes for Magic and Our Story Sections */
@media (max-width: 1315px) {
    #magic-section .grid-auto-400,
    #our-story-section {
        grid-template-columns: 1fr !important;
        gap: var(--space-xl) !important;
    }

    #magic-section .grid-2-col,
    #our-story-section .grid-2-col {
        grid-template-columns: 1fr !important;
        gap: var(--space-md) !important;
    }

    #magic-section .fade-in-up,
    #our-story-section div {
        text-align: center !important;
    }

    #magic-section .quote-accent,
    #our-story-section .quote-accent {
        text-align: left !important;
        margin: var(--space-md) auto !important;
        max-width: 90%;
    }

    #magic-section .image-frame,
    #our-story-section .image-frame {
        margin-top: 0 !important;
        width: 100% !important;
    }

    #magic-section .image-frame img,
    #our-story-section .image-frame img {
        height: auto !important;
        min-height: 300px;
        width: 100% !important;
    }

    #magic-section p,
    #our-story-section p {
        text-align: left !important;
        max-width: 100% !important;
    }

    #magic-section .flex,
    #our-story-section .flex {
        justify-content: center !important;
    }
}

/* Extreme Mobile Fixes (315px and below) */
@media (max-width: 315px) {
    * {
        word-wrap: break-word !important;
        overflow-wrap: break-word !important;
        box-sizing: border-box !important;
    }

    .container {
        width: 96% !important;
        padding: 0 8px !important;
    }

    .display-2 {
        font-size: 1.05rem !important;
        line-height: 1.25 !important;
    }

    #magic-section .image-frame img,
    #our-story-section .image-frame img {
        min-height: 180px !important;
    }

    .hero-badge {
        font-size: 0.6rem !important;
        padding: 0.25rem 0.5rem !important;
        white-space: normal !important;
    }

    .stat-number {
        font-size: 1.6rem !important;
    }

    .btn {
        width: 100% !important;
        padding: 0.75rem !important;
        font-size: 0.8rem !important;
    }
}

@media (max-width: 320px) {
    :root {
        --space-sm: 0.5rem;
        --space-md: 0.75rem;
    }

    .logo-img {
        height: 35px;
    }

    .navbar {
        height: 60px;
    }

    .hero-content .hero-badge,
    .hero-page .hero-badge {
        margin-top: 0;
    }

    .hero-badge {
        font-size: 0.7rem;
        padding: 0.3rem 0.7rem;
    }

    .display-2 {
        font-size: 1.4rem;
    }

    .reason-icon {
        width: 32px;
        height: 32px;
        border-radius: 8px;
    }

    .reason-icon svg {
        width: 16px;
        height: 16px;
    }

    .footer .logo-img {
        height: 40px;
    }
}

/* Fix for mobile header spacing */
@media (max-width: 480px) { .hero, .hero-page { padding-top: 100px !important; } }
@media (max-width: 330px) { .hero, .hero-page { padding-top: 80px !important; } }

/* --- Mobile Touch & Spacing Fixes --- */
@media (max-width: 480px) {
    /* Prevent hero dots from touching buttons */
    .hero-slider-nav {
        bottom: 20px !important;
    }
    
    .hero-content {
        padding-bottom: 40px !important;
    }

    /* Stack hero buttons to avoid overflow and touching dots */
    .hero-content .flex {
        flex-direction: column !important;
        align-items: center !important;
        gap: 12px !important;
    }

    .hero-content .flex .btn {
        width: 100% !important;
        max-width: 280px !important;
        margin-top: 0 !important;
    }

    /* New side arrows for mobile slider */
    .testimonial-slider .slider-controls {
        display: block !important;
        position: absolute;
        top: 45%; /* Vertically center */
        left: 0;
        right: 0;
        pointer-events: none; /* Let clicks pass through to arrows specifically */
        z-index: 10;
        transform: translateY(-50%);
    }

    .testimonial-slider .slider-dots {
        display: none !important; /* Hide dots on mobile as requested */
    }

    .testimonial-slider .slider-arrow {
        position: absolute;
        pointer-events: auto;
        background: rgba(0, 102, 102, 0.1);
        backdrop-filter: blur(4px);
        width: 36px !important;
        height: 36px !important;
        border-radius: 50% !important;
        border-color: rgba(255, 255, 255, 0.2) !important;
        display: flex !important;
        align-items: center;
        justify-content: center;
        color: var(--pk-accent-light) !important;
    }

    .testimonial-slider .prev-slide {
        left: 5px;
    }

    .testimonial-slider .next-slide {
        right: 5px;
    }

    .testimonial-slider {
        padding-bottom: 0 !important;
        margin-top: -1rem !important;
    }

    .testimonial-track {
        align-items: flex-start;
        transition: transform 0.6s cubic-bezier(0.19, 1, 0.22, 1), height 0.4s ease;
    }

    .testimonial-slide {
        padding: 10px var(--space-md) !important; /* Prevents shadow clipping */
    }

    .review-card {
        border-radius: 24px !important; /* More pronounced rounding */
        overflow: hidden;
    }
}

/* Fix for very small screens */
@media (max-width: 320px) {
    .display-2 {
        font-size: 1.35rem !important;
    }
    
    .hero-content {
        padding-bottom: 50px !important;
    }
}
