/* ============================================
   SAPLINE PHARMACEUTICAL — MAIN STYLES
   ============================================ */

/* ===== CSS VARIABLES ===== */
:root {
    --primary: #1d3461;
    --primary-light: #25497d;
    --accent: #5ba8a3;
    --accent-dark: #4a9090;
    --accent-light: #e0f2f0;
    --secondary: #2e7d9a;
    --white: #ffffff;
    --light: #f8fafe;
    --gray-100: #f1f5f9;
    --gray-200: #e2e8f0;
    --gray-300: #cbd5e1;
    --gray-500: #64748b;
    --gray-700: #334155;
    --gray-900: #0f172a;
    --gold: #d4a843;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 20px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 40px rgba(0,0,0,0.12);
    --shadow-xl: 0 20px 60px rgba(0,0,0,0.15);
    --radius: 12px;
    --radius-lg: 20px;
    --transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* ===== RESET & BASE ===== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--gray-700);
    line-height: 1.7;
    overflow-x: hidden;
    background: var(--white);
}

h1, h2, h3, h4 {
    font-family: 'Playfair Display', serif;
    color: var(--primary);
    line-height: 1.3;
}

a {
    text-decoration: none;
    color: inherit;
}

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

/* ===== UTILITY ===== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.section {
    padding: 100px 0;
}

.section-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 16px;
}

.section-label::before {
    content: '';
    width: 30px;
    height: 2px;
    background: var(--accent);
}

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 20px;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--gray-500);
    max-width: 600px;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header .section-subtitle {
    margin: 0 auto;
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 32px;
    border-radius: 50px;
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

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

.btn-primary:hover {
    background: var(--accent-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(91, 168, 163, 0.4);
}

.btn-outline {
    background: transparent;
    color: var(--white);
    border: 2px solid rgba(255,255,255,0.4);
}

.btn-outline:hover {
    background: var(--white);
    color: var(--primary);
    border-color: var(--white);
}

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

.btn-dark:hover {
    background: var(--primary-light);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(29, 52, 97, 0.3);
}

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

@keyframes fadeInLeft {
    from { opacity: 0; transform: translateX(-40px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes fadeInRight {
    from { opacity: 0; transform: translateX(40px); }
    to { opacity: 1; transform: translateX(0); }
}

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

@keyframes scaleIn {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}

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

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 0.6; }
    50% { transform: scale(1.05); opacity: 0.8; }
}

@keyframes slideDown {
    from { transform: translateY(-100%); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

@keyframes morphBlob {
    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%; }
}

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

@keyframes bounceIn {
    0% { transform: scale(0); opacity: 0; }
    50% { transform: scale(1.15); }
    100% { transform: scale(1); opacity: 1; }
}

@keyframes slideInRight {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@keyframes slideOutRight {
    from { transform: translateX(0); opacity: 1; }
    to { transform: translateX(100%); opacity: 0; }
}

.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

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

.reveal-left {
    opacity: 0;
    transform: translateX(-40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal-left.active {
    opacity: 1;
    transform: translateX(0);
}

.reveal-right {
    opacity: 0;
    transform: translateX(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal-right.active {
    opacity: 1;
    transform: translateX(0);
}

.reveal-scale {
    opacity: 0;
    transform: scale(0.9);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal-scale.active {
    opacity: 1;
    transform: scale(1);
}

.stagger-children .reveal:nth-child(1) { transition-delay: 0.1s; }
.stagger-children .reveal:nth-child(2) { transition-delay: 0.2s; }
.stagger-children .reveal:nth-child(3) { transition-delay: 0.3s; }
.stagger-children .reveal:nth-child(4) { transition-delay: 0.4s; }
.stagger-children .reveal:nth-child(5) { transition-delay: 0.5s; }
.stagger-children .reveal:nth-child(6) { transition-delay: 0.6s; }

/* ===== PRELOADER ===== */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--primary);
    z-index: 10000;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: opacity 0.6s ease, visibility 0.6s ease;
}

.preloader.hide {
    opacity: 0;
    visibility: hidden;
}

.preloader-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    margin-bottom: 30px;
    animation: fadeIn 0.8s ease;
}

.preloader-logo-img {
    height: 64px;
    width: auto;
    filter: brightness(0) invert(1);
}

.preloader-bar {
    width: 200px;
    height: 3px;
    background: rgba(255,255,255,0.1);
    border-radius: 10px;
    overflow: hidden;
}

.preloader-bar::after {
    content: '';
    display: block;
    width: 0%;
    height: 100%;
    background: var(--accent);
    border-radius: 10px;
    animation: loadBar 1.8s ease forwards;
}

@keyframes loadBar {
    to { width: 100%; }
}

/* ===== NAVBAR ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 20px 0;
    transition: var(--transition);
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(20px);
    padding: 12px 0;
    box-shadow: 0 2px 20px rgba(0,0,0,0.08);
}

.navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    transition: var(--transition);
}

/* Real logo image — always original colors */
.logo-img {
    height: 44px;
    width: auto;
    filter: none;
    transition: opacity 0.3s ease;
    flex-shrink: 0;
}

.logo:hover .logo-img {
    opacity: 0.85;
}

/* Home page: frosted-glass pill on hero (before scroll) */
.navbar:not(.scrolled):not(.navbar-dark) .logo {
    background: rgba(255, 255, 255, 0.92);
    padding: 6px 16px 6px 10px;
    border-radius: 50px;
    backdrop-filter: blur(8px);
}

/* White scrolled navbar: no pill needed */
.navbar.scrolled .logo {
    background: none;
    padding: 0;
    backdrop-filter: none;
}

/* Products page dark navbar: white logo, no pill */
.navbar-dark .logo-img {
    filter: brightness(0) invert(1);
}


.nav-links {
    display: flex;
    align-items: center;
    gap: 36px;
    list-style: none;
}

.nav-links a {
    font-size: 0.9rem;
    font-weight: 500;
    color: rgba(255,255,255,0.85);
    transition: var(--transition);
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: var(--transition);
}

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

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

.navbar.scrolled .nav-links a {
    color: var(--gray-500);
}

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

.nav-contact {
    padding: 10px 24px;
    background: var(--accent);
    color: var(--white) !important;
    border-radius: 50px;
    font-weight: 600 !important;
}

.nav-contact:hover {
    background: var(--accent-dark);
    color: var(--white) !important;
    transform: translateY(-1px);
}

.nav-contact::after {
    display: none !important;
}

/* Navbar on inner pages (always dark) */
.navbar-dark {
    background: var(--primary);
    padding: 14px 0;
}

.navbar-dark.scrolled {
    background: var(--primary);
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}


.navbar-dark .nav-links a {
    color: rgba(255,255,255,0.85);
}

.navbar-dark.scrolled .nav-links a {
    color: rgba(255,255,255,0.85);
}

.navbar-dark .nav-links a:hover {
    color: var(--white);
}

.navbar-dark.scrolled .nav-links a:hover {
    color: var(--white);
}

.navbar-dark .hamburger span {
    background: var(--white);
}

.navbar-dark.scrolled .hamburger span {
    background: var(--white);
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    z-index: 1001;
}

.hamburger span {
    width: 25px;
    height: 2px;
    background: var(--white);
    transition: var(--transition);
}

.navbar.scrolled .hamburger span {
    background: var(--primary);
}

/* ===== HERO ===== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, var(--primary) 0%, #244070 50%, #2a4e82 100%);
    overflow: hidden;
}

.hero-bg-shapes {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    overflow: hidden;
}

.hero-shape {
    position: absolute;
    border-radius: 50%;
    opacity: 0.06;
    background: var(--accent);
}

.hero-shape:nth-child(1) {
    width: 600px;
    height: 600px;
    top: -200px;
    right: -100px;
    animation: morphBlob 8s ease-in-out infinite, float 6s ease-in-out infinite;
}

.hero-shape:nth-child(2) {
    width: 400px;
    height: 400px;
    bottom: -100px;
    left: -100px;
    animation: morphBlob 10s ease-in-out infinite reverse, float 8s ease-in-out infinite reverse;
}

.hero-shape:nth-child(3) {
    width: 200px;
    height: 200px;
    top: 50%;
    left: 50%;
    animation: pulse 4s ease-in-out infinite;
}

.hero-particles {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: rgba(91, 168, 163, 0.3);
    border-radius: 50%;
    animation: float 3s ease-in-out infinite;
}

.hero-grid {
    position: absolute;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
    background-size: 60px 60px;
}

.hero .container {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    padding-top: 100px;
    padding-bottom: 60px;
}

.hero-content {
    animation: fadeInLeft 1s ease 0.5s both;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px;
    background: rgba(91, 168, 163, 0.15);
    border: 1px solid rgba(91, 168, 163, 0.3);
    border-radius: 50px;
    color: var(--accent);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 24px;
}

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

.hero h1 {
    font-size: clamp(2.5rem, 5vw, 3.8rem);
    color: var(--white);
    margin-bottom: 24px;
    line-height: 1.15;
}

.hero h1 .highlight {
    background: linear-gradient(135deg, var(--accent), #7ecdc8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-description {
    font-size: 1.15rem;
    color: rgba(255,255,255,0.7);
    margin-bottom: 40px;
    max-width: 520px;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.hero-stats {
    display: flex;
    gap: 40px;
    margin-top: 50px;
    padding-top: 40px;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.hero-stat h3 {
    font-size: 2.2rem;
    color: var(--accent);
    font-family: 'Inter', sans-serif;
    font-weight: 700;
}

.hero-stat p {
    color: rgba(255,255,255,0.5);
    font-size: 0.85rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.hero-visual {
    animation: fadeInRight 1s ease 0.8s both;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-image-wrapper {
    position: relative;
    width: 450px;
    height: 450px;
}

.hero-main-circle {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(91,168,163,0.2), rgba(46,125,154,0.2));
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    animation: morphBlob 10s ease-in-out infinite;
}

.hero-main-circle img {
    width: 75%;
    height: 75%;
    object-fit: cover;
    border-radius: 50%;
}

.hero-floating-card {
    position: absolute;
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: var(--radius);
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--white);
    animation: float 4s ease-in-out infinite;
}

.hero-floating-card:nth-child(2) {
    top: 10%;
    right: -30px;
    animation-delay: 0.5s;
}

.hero-floating-card:nth-child(3) {
    bottom: 15%;
    left: -40px;
    animation-delay: 1s;
}

.hero-floating-card .card-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: rgba(91, 168, 163, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    color: var(--accent);
}

.hero-floating-card .card-text h4 {
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    color: var(--white);
    font-weight: 600;
}

.hero-floating-card .card-text p {
    font-size: 0.75rem;
    color: rgba(255,255,255,0.6);
}

/* ===== TRUSTED BY ===== */
.trusted {
    padding: 40px 0;
    background: var(--light);
    border-bottom: 1px solid var(--gray-200);
}

.trusted p {
    text-align: center;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--gray-500);
    font-weight: 600;
    margin-bottom: 30px;
}

.trusted-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 60px;
    flex-wrap: wrap;
    opacity: 0.4;
}

.trusted-logos i {
    font-size: 2.5rem;
    color: var(--gray-500);
    transition: var(--transition);
}

.trusted-logos i:hover {
    opacity: 1;
    color: var(--primary);
}

/* ===== ABOUT ===== */
.about {
    background: var(--white);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.about-image {
    position: relative;
}

.about-image-main {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
}

.about-image-main img {
    width: 100%;
    height: 480px;
    object-fit: cover;
    object-position: center top;
    filter: contrast(1.05) brightness(1.02);
}

.about-experience-badge {
    position: absolute;
    bottom: -30px;
    right: -30px;
    width: 140px;
    height: 140px;
    background: var(--accent);
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--white);
    box-shadow: var(--shadow-lg);
    animation: pulse 3s ease-in-out infinite;
}

.about-experience-badge h3 {
    font-size: 2.5rem;
    color: var(--white);
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    line-height: 1;
}

.about-experience-badge p {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

.about-content .section-subtitle {
    margin-bottom: 30px;
}

.about-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 30px;
}

.about-feature {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: var(--light);
    border-radius: var(--radius);
    transition: var(--transition);
}

.about-feature:hover {
    background: var(--accent-light);
    transform: translateX(5px);
}

.about-feature i {
    color: var(--accent);
    font-size: 1.1rem;
}

.about-feature span {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--gray-700);
}

/* ===== DIRECTOR MESSAGE ===== */
.director {
    background: var(--light);
    position: relative;
    overflow: hidden;
}

.director::before {
    content: '\201C';
    position: absolute;
    top: 40px;
    left: 60px;
    font-size: 20rem;
    font-family: 'Playfair Display', serif;
    color: var(--accent);
    opacity: 0.05;
    line-height: 1;
}

.director-card {
    max-width: 1000px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 60px;
    align-items: center;
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 50px;
    box-shadow: var(--shadow-lg);
    position: relative;
}

.director-image {
    position: relative;
}

.director-image img {
    width: 100%;
    height: 350px;
    object-fit: cover;
    object-position: top center;
    border-radius: var(--radius);
    background: linear-gradient(160deg, #1d3461 0%, #25497d 40%, #2e7d9a 70%, #3a9a95 100%);
}

.director-image::after {
    content: '';
    position: absolute;
    top: 15px;
    left: 15px;
    width: 100%;
    height: 100%;
    border: 2px solid var(--accent);
    border-radius: var(--radius);
    z-index: -1;
}

.director-content {
    position: relative;
}

.director-quote-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--accent), #7ecdc8);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.3rem;
    margin-bottom: 24px;
}

.director-message {
    font-size: 1.1rem;
    line-height: 1.9;
    color: var(--gray-700);
    margin-bottom: 30px;
    font-style: italic;
}

.director-name {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 4px;
}

.director-title {
    color: var(--accent);
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.director-signature {
    margin-top: 15px;
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    color: var(--gray-300);
    font-style: italic;
}

/* ===== SERVICES ===== */
.services {
    background: var(--white);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.service-card {
    padding: 40px 30px;
    border-radius: var(--radius-lg);
    background: var(--white);
    border: 1px solid var(--gray-200);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--accent), var(--secondary));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.5s ease;
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: transparent;
}

.service-icon {
    width: 70px;
    height: 70px;
    border-radius: 16px;
    background: var(--accent-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--accent);
    margin-bottom: 24px;
    transition: var(--transition);
}

.service-card:hover .service-icon {
    background: var(--accent);
    color: var(--white);
    transform: scale(1.1);
}

.service-card h3 {
    font-size: 1.3rem;
    margin-bottom: 12px;
}

.service-card p {
    color: var(--gray-500);
    font-size: 0.95rem;
    line-height: 1.7;
}

/* ===== STATS ===== */
.stats {
    background: linear-gradient(135deg, var(--primary) 0%, #244070 100%);
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.stats::before {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    background: rgba(91,168,163,0.08);
    border-radius: 50%;
    top: -200px;
    right: -100px;
    animation: morphBlob 8s ease-in-out infinite;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    position: relative;
    z-index: 2;
}

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

.stat-number {
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--accent);
    font-family: 'Inter', sans-serif;
    line-height: 1;
    margin-bottom: 8px;
}

.stat-label {
    color: rgba(255,255,255,0.6);
    font-size: 0.9rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ===== PRODUCTS PREVIEW (Home) ===== */
.products {
    background: var(--light);
}

.products-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 24px;
}

.products-grid .product-card {
    flex: 0 1 calc(20% - 20px);
    min-width: 200px;
}

.product-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: var(--transition);
    border: 1px solid var(--gray-200);
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.product-image {
    height: 200px;
    background: linear-gradient(135deg, var(--accent-light), #dfe6e9);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: var(--accent);
    position: relative;
    overflow: hidden;
}

.product-image::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, transparent 60%, rgba(91,168,163,0.1));
}

.product-info {
    padding: 24px;
}

.product-category {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--accent);
    font-weight: 600;
    margin-bottom: 8px;
}

.product-info h3 {
    font-size: 1.1rem;
    margin-bottom: 8px;
}

.product-info p {
    font-size: 0.85rem;
    color: var(--gray-500);
}

/* ===== TEAM ===== */
.team {
    background: var(--white);
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.team-card {
    text-align: center;
    transition: var(--transition);
}

.team-card:hover {
    transform: translateY(-8px);
}

.team-image {
    width: 100%;
    height: 300px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-bottom: 20px;
    position: relative;
}

.team-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    transition: transform 0.5s ease;
}

/* Professional gradient background for transparent PNGs */
.team-image-director {
    background: linear-gradient(160deg, #1d3461 0%, #25497d 40%, #2e7d9a 70%, #3a9a95 100%);
}

.team-card:hover .team-image img {
    transform: scale(1.08);
}

/* Placeholder icon for team members without photos */
.team-image-placeholder {
    background: linear-gradient(160deg, var(--gray-200) 0%, var(--gray-300) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.team-placeholder-icon {
    font-size: 80px;
    color: var(--gray-500);
    opacity: 0.5;
}

.team-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 20px;
    background: linear-gradient(transparent, rgba(29,52,97,0.9));
    display: flex;
    justify-content: center;
    gap: 12px;
    opacity: 0;
    transform: translateY(10px);
    transition: var(--transition);
}

.team-card:hover .team-overlay {
    opacity: 1;
    transform: translateY(0);
}

.team-overlay a {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255,255,255,0.2);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 0.85rem;
    transition: var(--transition);
}

.team-overlay a:hover {
    background: var(--accent);
    transform: translateY(-3px);
}

.team-card h3 {
    font-size: 1.15rem;
    margin-bottom: 4px;
}

.team-card .role {
    color: var(--accent);
    font-size: 0.85rem;
    font-weight: 600;
}

/* ===== EVENTS & CSR ===== */
.events {
    background: var(--white);
}

.events-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
}

.event-card {
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--white);
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

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

.event-image {
    position: relative;
    height: 280px;
    overflow: hidden;
}

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

.event-card:hover .event-image img {
    transform: scale(1.05);
}

.event-date {
    position: absolute;
    top: 16px;
    left: 16px;
    background: rgba(29, 52, 97, 0.9);
    color: var(--white);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 6px;
}

.event-info {
    padding: 24px;
}

.event-info h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.3rem;
    color: var(--primary);
    margin-bottom: 10px;
}

.event-info p {
    font-size: 0.95rem;
    color: var(--gray-500);
    line-height: 1.6;
}

@media (max-width: 768px) {
    .events-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .event-image {
        height: 220px;
    }
}

/* ===== TESTIMONIALS ===== */
.testimonials {
    background: var(--light);
    overflow: hidden;
}

.testimonial-slider {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.testimonial-card {
    background: var(--white);
    padding: 36px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    position: relative;
}

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

.testimonial-stars {
    color: var(--gold);
    margin-bottom: 16px;
    font-size: 0.9rem;
}

.testimonial-text {
    font-size: 0.95rem;
    color: var(--gray-700);
    line-height: 1.8;
    margin-bottom: 24px;
    font-style: italic;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 14px;
}

.testimonial-author img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
}

.testimonial-author h4 {
    font-size: 1rem;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
}

.testimonial-author p {
    font-size: 0.8rem;
    color: var(--gray-500);
}

/* ===== CTA ===== */
.cta {
    background: linear-gradient(135deg, var(--accent) 0%, #3d9a92 50%, var(--secondary) 100%);
    padding: 100px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta::before, .cta::after {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: rgba(255,255,255,0.08);
}

.cta::before {
    top: -150px;
    left: -100px;
    animation: float 6s ease-in-out infinite;
}

.cta::after {
    bottom: -150px;
    right: -100px;
    animation: float 8s ease-in-out infinite reverse;
}

.cta h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    color: var(--white);
    margin-bottom: 20px;
}

.cta p {
    color: rgba(255,255,255,0.85);
    font-size: 1.15rem;
    max-width: 600px;
    margin: 0 auto 40px;
}

.cta .btn {
    background: var(--white);
    color: var(--primary);
    font-weight: 700;
}

.cta .btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

/* ===== CONTACT ===== */
.contact {
    background: var(--white);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 60px;
}

.contact-info {
    padding: 40px;
    background: var(--primary);
    border-radius: var(--radius-lg);
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.contact-info::before {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    background: rgba(91,168,163,0.1);
    border-radius: 50%;
    bottom: -150px;
    right: -100px;
    animation: morphBlob 8s ease-in-out infinite;
}

.contact-info h3 {
    color: var(--white);
    font-size: 1.8rem;
    margin-bottom: 16px;
}

.contact-info > p {
    color: rgba(255,255,255,0.7);
    margin-bottom: 36px;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin-bottom: 36px;
}

.contact-detail {
    display: flex;
    align-items: center;
    gap: 16px;
}

.contact-detail-icon {
    width: 50px;
    height: 50px;
    background: rgba(91,168,163,0.2);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    font-size: 1.1rem;
    flex-shrink: 0;
}

.contact-detail h4 {
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    color: rgba(255,255,255,0.5);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.contact-detail p {
    color: var(--white);
    font-weight: 500;
}

.contact-socials {
    display: flex;
    gap: 12px;
}

.contact-socials a {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    transition: var(--transition);
}

.contact-socials a:hover {
    background: var(--accent);
    transform: translateY(-3px);
}

.contact-form {
    padding: 10px;
}

.contact-form h3 {
    font-size: 1.8rem;
    margin-bottom: 8px;
}

.contact-form > p {
    color: var(--gray-500);
    margin-bottom: 30px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--gray-700);
    margin-bottom: 8px;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid var(--gray-200);
    border-radius: var(--radius);
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    color: var(--gray-700);
    transition: var(--transition);
    background: var(--light);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--accent);
    background: var(--white);
    box-shadow: 0 0 0 4px rgba(91,168,163,0.1);
}

.form-group textarea {
    height: 130px;
    resize: vertical;
}

.form-submit {
    width: 100%;
    padding: 16px;
    background: var(--accent);
    color: var(--white);
    border: none;
    border-radius: var(--radius);
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.form-submit:hover {
    background: var(--accent-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(91,168,163,0.3);
}

/* ===== FOOTER ===== */
.footer {
    background: var(--gray-900);
    padding: 80px 0 30px;
    color: rgba(255,255,255,0.6);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 60px;
}

.footer-brand .logo {
    margin-bottom: 16px;
}

.footer-brand .logo-img {
    filter: brightness(0) invert(1);
    opacity: 0.9;
}

.footer-brand p {
    font-size: 0.9rem;
    line-height: 1.7;
    margin-bottom: 20px;
}

.footer-socials {
    display: flex;
    gap: 10px;
}

.footer-socials a {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: rgba(255,255,255,0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.6);
    transition: var(--transition);
}

.footer-socials a:hover {
    background: var(--accent);
    color: var(--white);
    transform: translateY(-3px);
}

.footer-col h4 {
    color: var(--white);
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 20px;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col ul a {
    font-size: 0.9rem;
    transition: var(--transition);
}

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

.footer-bottom {
    padding-top: 30px;
    border-top: 1px solid rgba(255,255,255,0.08);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.footer-bottom p {
    font-size: 0.85rem;
}

.footer-bottom-links {
    display: flex;
    gap: 24px;
}

.footer-bottom-links a {
    font-size: 0.85rem;
    transition: var(--transition);
}

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

/* ===== BACK TO TOP ===== */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--accent);
    color: var(--white);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: var(--transition);
    z-index: 999;
    box-shadow: 0 4px 15px rgba(91,168,163,0.4);
}

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

.back-to-top:hover {
    background: var(--accent-dark);
    transform: translateY(-3px);
}

/* ===== CUSTOM CURSOR ===== */
@media (hover: hover) {
    .cursor-dot {
        width: 8px;
        height: 8px;
        background: var(--accent);
        border-radius: 50%;
        position: fixed;
        pointer-events: none;
        z-index: 9999;
        transition: transform 0.15s ease;
    }

    .cursor-outline {
        width: 35px;
        height: 35px;
        border: 2px solid rgba(91,168,163,0.4);
        border-radius: 50%;
        position: fixed;
        pointer-events: none;
        z-index: 9998;
        transition: transform 0.3s ease, width 0.3s ease, height 0.3s ease;
    }
}

/* ===== MOBILE NAV OVERLAY ===== */
.nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 998;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.nav-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* ===== RESPONSIVE ===== */

/* ---------- Tablet (1024px) ---------- */
@media (max-width: 1024px) {
    .hero .container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-description {
        margin: 0 auto 40px;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-stats {
        justify-content: center;
    }

    .hero-visual {
        display: none;
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .director-card {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .director-quote-icon {
        margin: 0 auto 24px;
    }

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 40px;
    }

    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .team-grid {
        grid-template-columns: repeat(2, 1fr);
    }

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

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .testimonial-slider {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ---------- Mobile (768px) ---------- */
@media (max-width: 768px) {
    /* --- Nav --- */
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        height: 100dvh;
        background: var(--primary);
        flex-direction: column;
        align-items: flex-start;
        padding: 100px 30px 40px;
        gap: 8px;
        transition: right 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
        box-shadow: -10px 0 40px rgba(0,0,0,0.3);
        z-index: 999;
        overflow-y: auto;
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links li {
        width: 100%;
    }

    .nav-links a {
        color: rgba(255,255,255,0.85) !important;
        font-size: 1.05rem;
        display: block;
        padding: 12px 0;
        border-bottom: 1px solid rgba(255,255,255,0.08);
    }

    .nav-links a::after {
        display: none;
    }

    .nav-contact {
        margin-top: 16px;
        text-align: center !important;
        display: flex !important;
        justify-content: center;
        border-bottom: none !important;
    }

    .hamburger {
        display: flex;
    }

    /* Hamburger animation */
    .hamburger.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }

    /* --- Sections --- */
    .section {
        padding: 60px 0;
    }

    .container {
        padding: 0 16px;
    }

    .section-title {
        font-size: clamp(1.6rem, 5vw, 2.2rem);
    }

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

    .section-header {
        margin-bottom: 40px;
    }

    /* --- Hero --- */
    .hero {
        min-height: auto;
        padding: 0;
    }

    .hero .container {
        padding-top: 120px;
        padding-bottom: 50px;
    }

    .hero h1 {
        font-size: clamp(1.8rem, 7vw, 2.6rem);
    }

    .hero-badge {
        font-size: 0.7rem;
        padding: 6px 14px;
    }

    .hero-description {
        font-size: 1rem;
        margin-bottom: 30px;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
        gap: 12px;
    }

    .hero-buttons .btn {
        width: 100%;
        max-width: 280px;
        justify-content: center;
    }

    .hero-stats {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 20px;
        margin-top: 36px;
        padding-top: 30px;
    }

    .hero-stat {
        flex: 1;
        min-width: 80px;
        text-align: center;
    }

    .hero-stat h3 {
        font-size: 1.6rem;
    }

    .hero-stat p {
        font-size: 0.7rem;
    }

    /* --- Trusted --- */
    .trusted {
        padding: 30px 0;
    }

    .trusted-logos {
        gap: 30px;
    }

    .trusted-logos i {
        font-size: 1.8rem;
    }

    /* --- About --- */
    .about-image-main img {
        height: 320px;
    }

    .about-experience-badge {
        right: 10px;
        bottom: -20px;
        width: 100px;
        height: 100px;
    }

    .about-experience-badge h3 {
        font-size: 1.8rem;
    }

    .about-features {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .about-content .btn {
        width: 100%;
        justify-content: center;
    }

    /* --- Director --- */
    .director::before {
        font-size: 10rem;
        top: 20px;
        left: 20px;
    }

    .director-card {
        padding: 24px;
        gap: 30px;
    }

    .director-image img {
        height: 280px;
    }

    .director-image::after {
        top: 10px;
        left: 10px;
    }

    .director-message {
        font-size: 0.95rem;
    }

    .director-name {
        font-size: 1.2rem;
    }

    /* --- Services --- */
    .services-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .service-card {
        padding: 28px 24px;
    }

    .service-icon {
        width: 56px;
        height: 56px;
        font-size: 1.2rem;
    }

    .service-card h3 {
        font-size: 1.15rem;
    }

    /* --- Stats --- */
    .stats {
        padding: 50px 0;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }

    .stat-number {
        font-size: 2.4rem;
    }

    .stat-label {
        font-size: 0.75rem;
    }

    /* --- Products preview --- */
    .products-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .product-image {
        height: 160px;
    }

    .product-info {
        padding: 18px;
    }

    /* --- Team --- */
    .team-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .team-image {
        height: 220px;
    }

    .team-card h3 {
        font-size: 1rem;
    }

    .team-card .role {
        font-size: 0.78rem;
    }

    /* --- Testimonials --- */
    .testimonial-slider {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .testimonial-card {
        padding: 24px;
    }

    /* --- CTA --- */
    .cta {
        padding: 60px 0;
    }

    .cta p {
        font-size: 1rem;
        margin-bottom: 30px;
    }

    /* --- Contact --- */
    .contact-info {
        padding: 28px;
    }

    .contact-info h3 {
        font-size: 1.4rem;
    }

    .contact-detail-icon {
        width: 44px;
        height: 44px;
        font-size: 1rem;
    }

    .contact-form h3 {
        font-size: 1.4rem;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .form-group input,
    .form-group textarea,
    .form-group select {
        padding: 12px 14px;
        font-size: 16px; /* prevents iOS zoom on focus */
    }

    /* --- Footer --- */
    .footer {
        padding: 50px 0 24px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 12px;
    }

    .footer-bottom-links {
        justify-content: center;
        gap: 16px;
    }

    /* --- Back to top --- */
    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 44px;
        height: 44px;
    }

    /* Hide custom cursor on touch */
    .cursor-dot,
    .cursor-outline {
        display: none !important;
    }
}

/* ---------- Small phones (480px) ---------- */
@media (max-width: 480px) {
    .container {
        padding: 0 14px;
    }

    .hero .container {
        padding-top: 100px;
        padding-bottom: 40px;
    }

    .hero h1 {
        font-size: 1.7rem;
    }

    .hero-description {
        font-size: 0.9rem;
    }

    .hero-stats {
        gap: 12px;
    }

    .hero-stat h3 {
        font-size: 1.4rem;
    }

    .section {
        padding: 50px 0;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .section-label {
        font-size: 0.7rem;
        letter-spacing: 2px;
    }

    /* Team 1-col on very small */
    .team-grid {
        grid-template-columns: 1fr;
    }

    .team-image {
        height: 260px;
    }

    /* Stats */
    .stats-grid {
        gap: 20px;
    }

    .stat-number {
        font-size: 2rem;
    }

    /* Director */
    .director-card {
        padding: 20px;
    }

    .director-image img {
        height: 240px;
    }

    .director-quote-icon {
        width: 48px;
        height: 48px;
        font-size: 1rem;
    }

    .director-message {
        font-size: 0.88rem;
        line-height: 1.7;
    }

    .director-signature {
        font-size: 1.4rem;
    }

    /* Contact */
    .contact-info {
        padding: 22px;
    }

    .contact-details {
        gap: 18px;
    }

    .contact-socials a {
        width: 40px;
        height: 40px;
    }

    /* CTA */
    .cta {
        padding: 50px 0;
    }

    .cta h2 {
        font-size: 1.5rem;
    }

    .cta p {
        font-size: 0.9rem;
    }

    /* Buttons */
    .btn {
        padding: 12px 24px;
        font-size: 0.88rem;
    }

    /* Footer */
    .footer-col h4 {
        margin-bottom: 14px;
    }
}

/* ---------- Safe area (notched phones) ---------- */
@supports (padding-bottom: env(safe-area-inset-bottom)) {
    .footer {
        padding-bottom: calc(24px + env(safe-area-inset-bottom));
    }

    .back-to-top {
        bottom: calc(20px + env(safe-area-inset-bottom));
    }

    .nav-links {
        padding-bottom: calc(40px + env(safe-area-inset-bottom));
    }
}

/* ---------- Touch-friendly tap targets ---------- */
@media (pointer: coarse) {
    .nav-links a,
    .footer-col ul a {
        min-height: 44px;
        display: flex;
        align-items: center;
    }

    .btn {
        min-height: 48px;
    }

    .service-card,
    .product-card,
    .team-card,
    .testimonial-card {
        -webkit-tap-highlight-color: transparent;
    }

    .service-card:hover,
    .product-card:hover,
    .team-card:hover {
        transform: none;
    }

    .service-card:active {
        transform: scale(0.98);
    }

    .product-card:active,
    .team-card:active {
        transform: scale(0.98);
    }
}

/* ---------- Landscape phones ---------- */
@media (max-height: 500px) and (orientation: landscape) {
    .hero {
        min-height: auto;
    }

    .hero .container {
        padding-top: 90px;
        padding-bottom: 30px;
    }

    .hero h1 {
        font-size: 1.6rem;
    }

    .hero-stats {
        margin-top: 20px;
        padding-top: 20px;
    }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .reveal,
    .reveal-left,
    .reveal-right,
    .reveal-scale {
        opacity: 1;
        transform: none;
    }

    .hero-shape,
    .particle,
    .hero-floating-card {
        animation: none !important;
    }
}

/* ===== EVENT POPUP ===== */
.event-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.7);
    backdrop-filter: blur(6px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
    padding: 20px;
}

.event-popup-overlay.active {
    opacity: 1;
    visibility: visible;
}

.event-popup {
    background: var(--white);
    border-radius: var(--radius-lg);
    max-width: 480px;
    width: 100%;
    overflow: hidden;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.3);
    transform: scale(0.85) translateY(30px);
    transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
}

.event-popup-overlay.active .event-popup {
    transform: scale(1) translateY(0);
}

.event-popup-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    color: var(--gray-700);
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

.event-popup-close:hover {
    background: var(--white);
    color: #e74c3c;
    transform: rotate(90deg);
}

.event-popup-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    background: linear-gradient(135deg, var(--accent), var(--secondary));
    color: white;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    z-index: 10;
    display: flex;
    align-items: center;
    gap: 6px;
    animation: popupBadgePulse 2s ease-in-out infinite;
}

@keyframes popupBadgePulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(91, 168, 163, 0.4); }
    50% { box-shadow: 0 0 0 8px rgba(91, 168, 163, 0); }
}

.event-popup-image {
    width: 100%;
    height: 240px;
    overflow: hidden;
    position: relative;
}

.event-popup-image::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: linear-gradient(transparent, white);
}

.event-popup-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.event-popup:hover .event-popup-image img {
    transform: scale(1.05);
}

.event-popup-content {
    padding: 24px 28px 28px;
}

.event-popup-content h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    color: var(--primary);
    margin-bottom: 10px;
}

.event-popup-meta {
    display: flex;
    gap: 16px;
    margin-bottom: 14px;
    flex-wrap: wrap;
}

.event-popup-meta span {
    font-size: 0.82rem;
    color: var(--gray-500);
    display: flex;
    align-items: center;
    gap: 6px;
}

.event-popup-meta span i {
    color: var(--accent);
    font-size: 0.75rem;
}

.event-popup-content p {
    font-size: 0.9rem;
    color: var(--gray-500);
    line-height: 1.7;
    margin-bottom: 20px;
}

.event-popup-btn {
    width: 100%;
    text-align: center;
    justify-content: center;
}

/* Responsive */
@media (max-width: 480px) {
    .event-popup {
        max-width: 100%;
        border-radius: var(--radius);
    }

    .event-popup-image {
        height: 180px;
    }

    .event-popup-content {
        padding: 18px 20px 22px;
    }

    .event-popup-content h3 {
        font-size: 1.25rem;
    }
}
