/* ===== STYLE.CSS – OPTIMIZED & RESTRUCTURED ===== */
/* TABLE OF CONTENTS:
   1. CSS Variables
   2. Global Reset & Base
   3. Preloader
   4. Custom Cursor
   5. Progress Bar
   6. Particle Canvas
   7. Typography
   8. Header & Navigation
   9. Main Content
  10. Hero Section
  11. Section Reveal Animations
  12. Reusable Components
  13. About Section
  14. Services Grids
  15. Products Grids
  16. Blog Grids
  17. Team & Values
  18. Counters
  19. Contact Sections
  20. Forms
  21. Footer
  22. Admin Overrides
  23. Utilities
  24. Responsive Media Queries
  25. Reduced Motion Preference
*/

/* -------------------- 1. CSS VARIABLES -------------------- */
:root {
    --pure-white: #ffffff;
    --gray-50: #fafafa;
    --gray-100: #f5f5f5;
    --gray-200: #eeeeee;
    --gray-300: #e0e0e0;
    --gray-400: #bdbdbd;
    --gray-500: #9e9e9e;
    --gray-600: #757575;
    --gray-700: #616161;
    --gray-800: #424242;
    --gray-900: #212121;

    --text-primary: #212121;
    --text-secondary: #616161;
    --border-light: rgba(0,0,0,0.05);
    --shadow-soft: 0 8px 30px rgba(0,0,0,0.02);
    --shadow-medium: 0 20px 40px rgba(0,0,0,0.04);
    --shadow-heavy: 0 30px 60px rgba(0,0,0,0.08);
    --gradient-orb: linear-gradient(145deg, #d6d6d6, #b3b3b3);
    --glass-bg: rgba(255,255,255,0.7);
    --glass-border: 1px solid rgba(255,255,255,0.3);
    
    --easing-smooth: cubic-bezier(0.33, 1, 0.68, 1);
    --easing-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);

    /* Preloader colors */
    --preloader-bg: #0a0a0a;
    --preloader-text: #ffffff;
    --preloader-accent: #3b82f6;
}

/* -------------------- 2. GLOBAL RESET & BASE -------------------- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    overflow-y: scroll;
    scroll-behavior: smooth;
}

body {
    background-color: var(--pure-white);
    color: var(--text-primary);
    font-family: 'Inter', sans-serif;
    overflow-x: hidden;
    line-height: 1.5;
}

/* No results message */
.no-results-message {
    text-align: center;
    padding: 40px 20px;
    background: var(--gray-100);
    border-radius: 16px;
    color: var(--gray-600);
    font-size: 1.2rem;
    margin: 20px 0;
}

.no-results-message a {
    display: inline-block;
    margin-left: 10px;
    padding: 10px 25px;
    background: var(--primary-color);
    color: rgb(0, 0, 0);
    text-decoration: none;
    border-radius: 30px;
    font-weight: 500;
    transition: background 0.2s;
    box-shadow: 0 4px 0 var(--primary-dark);
}

.no-results-message a:hover {
    background: var(--primary-dark);
}

.no-results-message a:active {
    transform: translateY(2px);
    box-shadow: 0 2px 0 var(--primary-dark);
}

/* -------------------- 3. PRELOADER -------------------- */
#preloader {
    position: fixed;
    inset: 0;
    background: radial-gradient(circle at center, #111 0%, #000 100%);
    z-index: 20000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.8s var(--easing-smooth), visibility 0.8s;
    overflow: hidden;
}

#preloader::before {
    content: "";
    position: absolute;
    width: 300%;
    height: 300%;
    background: radial-gradient(circle, rgba(255,255,255,0.04) 0%, transparent 60%);
    animation: rotateBg 20s linear infinite;
}

#preloader.hidden {
    opacity: 0;
    visibility: hidden;
}

.preloader-content {
    text-align: center;
    animation: fadeScale 1.2s var(--easing-smooth);
    position: relative;
    z-index: 2;
}

.preloader-spinner {
    width: 90px;
    height: 90px;
    margin: 0 auto 30px;
    border: 2px solid rgba(255,255,255,0.08);
    border-top: 2px solid #ffffff;
    border-radius: 50%;
    animation: spin 1s linear infinite, pulseGlowDark 2s ease-in-out infinite alternate;
}

.preloader-title {
    font-size: clamp(2.5rem, 10vw, 5rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 0.5rem;
    text-shadow: 0 0 30px rgba(0,0,0,0.6);
    background: linear-gradient(45deg, #ffffff 30%, #999999 50%, #ffffff 70%);
    background-size: 200% 200%;
    background-position: 0% 50%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    will-change: background-position, transform;
    animation: shimmer 3s linear infinite, bounceSoft 2.5s ease-in-out infinite;
}

.preloader-sub {
    font-size: 0.85rem;
    font-weight: 300;
    color: rgba(255,255,255,0.6);
    letter-spacing: 0.5em;
    text-transform: uppercase;
    animation: fadeInPulse 2.5s infinite;
}

/* Preloader Keyframes */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes fadeScale {
    0% { opacity: 0; transform: scale(0.85); }
    100% { opacity: 1; transform: scale(1); }
}

@keyframes shimmer {
    0% { background-position: 0% center; }
    100% { background-position: 200% center; }
}

@keyframes pulseGlowDark {
    0% { box-shadow: 0 0 0 0 rgba(255,255,255,0.15); }
    100% { box-shadow: 0 0 25px 8px rgba(255,255,255,0.05); }
}

@keyframes bounceSoft {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

@keyframes fadeInPulse {
    0% { opacity: 0.6; }
    50% { opacity: 1; letter-spacing: 0.6em; }
    100% { opacity: 0.6; }
}

@keyframes rotateBg {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* -------------------- 4. CUSTOM CURSOR -------------------- */
.cursor-dot, .cursor-ring { display: none; }

@media (min-width: 1025px) {
    .cursor-dot {
        display: block;
        position: fixed;
        width: 8px;
        height: 8px;
        background: #000;
        border-radius: 50%;
        pointer-events: none;
        z-index: 10000;
        transform: translate(-50%, -50%);
        transition: width 0.2s ease, height 0.2s ease, background 0.2s ease;
        box-shadow: 0 0 14px rgba(0,0,0,0.25);
    }

    .cursor-ring {
        display: block;
        position: fixed;
        width: 50px;
        height: 50px;
        border: 1.2px solid rgba(0,0,0,0.25);
        border-radius: 50%;
        pointer-events: none;
        z-index: 9999;
        transform: translate(-50%, -50%);
        transition: all 0.3s var(--easing-smooth);
        background: rgba(0,0,0,0.03);
        backdrop-filter: blur(4px);
    }

    .cursor-dot.hover {
        width: 16px;
        height: 16px;
        background: #111;
        box-shadow: 0 0 18px rgba(0,0,0,0.4);
    }

    .cursor-ring.hover {
        width: 75px;
        height: 75px;
        border-color: rgba(0,0,0,0.4);
        border-width: 1.6px;
        backdrop-filter: blur(6px);
    }
}

/* -------------------- 5. PROGRESS BAR -------------------- */
#progress-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: rgba(0,0,0,0.02);
    z-index: 10001;
    pointer-events: none;
}

#progress-bar {
    height: 100%;
    width: 0%;
    background: var(--gray-700);
    box-shadow: 0 0 8px rgba(0,0,0,0.1);
    transition: width 0.1s;
}

/* -------------------- 6. PARTICLE CANVAS -------------------- */
#particleCanvas {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    opacity: 0.15;
}

/* -------------------- 7. TYPOGRAPHY -------------------- */
h1, h2, h3, h4 {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.rounded-icon {
    width: 80px;
    height: 80px;
    border-radius: 20px;
}

.rounded-icon-circle {
    border-radius: 50%;
}

/* -------------------- 8. HEADER & NAVIGATION -------------------- */
header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 100px;
    padding: 0 7%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--pure-white);
    border-bottom: 1px solid var(--border-light);
    box-shadow: 0 4px 20px rgba(0,0,0,0.02);
    z-index: 1000;
    transition: background 0.4s var(--easing-smooth), backdrop-filter 0.4s var(--easing-smooth), box-shadow 0.4s, transform 0.3s;
    box-sizing: border-box;
}

header.scrolled {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(16px) saturate(180%);
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.08);
    border-bottom-color: rgba(255,255,255,0.2);
}

.logo-box {
    display: flex;
    align-items: center;
}

.logo-box a {
    display: flex;
    align-items: center;
    text-decoration: none;
    transition: transform 0.4s var(--easing-bounce);
}

.logo-box h2 {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--gray-900);
    letter-spacing: -0.02em;
}

.logo-link {
    text-decoration: none;
    color: black;
}

.logo-link:hover {
    opacity: 0.8;
}

.logo-box a:hover {
    transform: scale(1.05) rotate(-2deg);
}

.logo-img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 4px 12px rgba(0,0,0,0.04);
    transition: all 0.4s var(--easing-bounce);
}

.logo-img:hover {
    box-shadow: 0 12px 28px rgba(0,0,0,0.15);
    transform: scale(1.08) rotate(4deg);
}

nav {
    display: flex;
    gap: 40px;
}

.nav-link {
    color: var(--gray-700);
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    opacity: 0.75;
    transition: 0.3s;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 0%;
    height: 2px;
    background: var(--gray-900);
    transition: width 0.3s var(--easing-smooth);
}

.nav-link:hover {
    opacity: 1;
    color: var(--gray-900);
}

.nav-link:hover::after {
    width: 100%;
}

/* Hamburger (mobile) */
.hamburger {
    display: none;
    width: 32px;
    height: 24px;
    background: transparent;
    border: none;
    cursor: pointer;
    flex-direction: column;
    justify-content: space-between;
    flex-shrink: 0;
}

.hamburger span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--gray-800);
    border-radius: 0;
    transition: all 0.25s var(--easing-smooth);
}

.hamburger.active span:nth-child(1) {
    transform: translateY(11px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: translateY(-11px) rotate(-45deg);
}

/* Mobile dropdown */
.mobile-dropdown {
    display: none;
    position: fixed;
    top: 100px;
    left: 0;
    width: 100%;
    background: var(--pure-white);
    border-bottom: 1px solid var(--gray-200);
    box-shadow: 0 20px 30px -10px rgba(0,0,0,0.02);
    z-index: 999;
    padding: 24px 7%;
    flex-direction: column;
    gap: 22px;
}

.mobile-dropdown.active {
    display: flex;
    animation: slideDown 0.4s var(--easing-smooth);
}

.mobile-dropdown a {
    color: var(--gray-800);
    text-decoration: none;
    font-size: 18px;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    padding: 12px 0;
    border-bottom: 1px solid var(--gray-200);
    transition: all 0.3s;
}

.mobile-dropdown a:hover {
    color: black;
    padding-left: 12px;
    border-bottom-color: var(--gray-700);
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* -------------------- 9. MAIN CONTENT -------------------- */
main {
    position: relative;
    z-index: 5;
    background: var(--pure-white);
    margin-top: 100px;
}

/* -------------------- 10. HERO SECTION -------------------- */
.hero {
    min-height: calc(100vh - 100px);
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gray-50);
    position: relative;
    overflow: hidden;
    flex-direction: column;
    padding: 0 20px;
}

.hero-title {
    font-size: clamp(4rem, 16vw, 12rem);
    font-weight: 800;
    line-height: 0.9;
    text-align: center;
    color: var(--gray-900);
    animation: floatText 4s infinite alternate var(--easing-smooth);
    margin: 0;
    text-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.hero-sub {
    font-size: clamp(1.2rem, 5vw, 1.8rem);
    font-weight: 300;
    color: var(--gray-600);
    margin-top: 1.5rem;
    letter-spacing: 0.4em;
    text-transform: uppercase;
    opacity: 0.85;
    border-top: 1px solid var(--gray-400);
    padding-top: 1.2rem;
    animation: fadeInUp 1.2s 0.2s backwards, glowPulse 3s infinite;
}

.hero-blob {
    position: absolute;
    width: 60vw;
    height: 60vw;
    background: radial-gradient(circle at 30% 50%, rgba(0,0,0,0.02), transparent 70%);
    border-radius: 50%;
    z-index: 0;
    animation: blobMove 25s infinite alternate ease-in-out;
}

@keyframes floatText {
    0% { transform: translateY(0) scale(1); }
    100% { transform: translateY(-15px) scale(1.02); }
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes blobMove {
    0% { transform: translate(-20%, -20%) scale(1) rotate(0deg); }
    100% { transform: translate(15%, 15%) scale(1.4) rotate(10deg); }
}

/* -------------------- 11. SECTION REVEAL ANIMATIONS -------------------- */
.section {
    padding: 100px 8%;
    max-width: 1600px;
    margin: 0 auto;
}

.reveal {
    opacity: 0;
    transition: opacity 1s var(--easing-smooth), transform 1s var(--easing-smooth);
}

.reveal.visible {
    opacity: 1;
    transform: translate(0) scale(1) rotate(0);
}

.reveal-left { transform: translateX(-40px); }
.reveal-right { transform: translateX(40px); }
.reveal.visible.reveal-left,
.reveal.visible.reveal-right { transform: translateX(0); }

.fade-up { transform: translateY(40px); }
.fade-up.visible { transform: translateY(0); }

.scale { transform: scale(0.9); }
.scale.visible { transform: scale(1); }

.reveal-rotate { transform: rotate(-5deg) scale(0.9); }
.reveal-rotate.visible { transform: rotate(0) scale(1); }

.reveal-flip { transform: perspective(400px) rotateY(10deg) scale(0.9); }
.reveal-flip.visible { transform: perspective(400px) rotateY(0) scale(1); }

.reveal-zoom { transform: scale(0.7); }
.reveal-zoom.visible { transform: scale(1); }

.reveal-slide-up { transform: translateY(60px); }
.reveal-slide-up.visible { transform: translateY(0); }

.reveal-slide-down { transform: translateY(-60px); }
.reveal-slide-down.visible { transform: translateY(0); }

.reveal-slide-left { transform: translateX(-60px); }
.reveal-slide-left.visible { transform: translateX(0); }

.reveal-slide-right { transform: translateX(60px); }
.reveal-slide-right.visible { transform: translateX(0); }

[data-delay="0.1"] { transition-delay: 0.1s; }
[data-delay="0.2"] { transition-delay: 0.2s; }
[data-delay="0.3"] { transition-delay: 0.3s; }
[data-delay="0.4"] { transition-delay: 0.4s; }
[data-delay="0.5"] { transition-delay: 0.5s; }
[data-delay="0.6"] { transition-delay: 0.6s; }
[data-delay="0.7"] { transition-delay: 0.7s; }
[data-delay="0.8"] { transition-delay: 0.8s; }

.section-tag {
    color: var(--gray-600);
    text-transform: uppercase;
    letter-spacing: 6px;
    font-size: 11px;
    display: inline-block;
    margin-bottom: 1rem;
    animation: glowPulse 3s infinite;
}

@keyframes glowPulse {
    0% { opacity: 0.8; text-shadow: 0 0 0 rgba(0,0,0,0.1); }
    50% { opacity: 1; text-shadow: 0 0 10px rgba(0,0,0,0.1); }
    100% { opacity: 0.8; text-shadow: 0 0 0 rgba(0,0,0,0.1); }
}

/* -------------------- 12. REUSABLE COMPONENTS -------------------- */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    border: var(--glass-border);
    border-radius: 28px;
    padding: 30px;
    box-shadow: var(--shadow-soft);
    transition: box-shadow 0.4s, transform 0.4s;
}

.glass-card:hover {
    box-shadow: var(--shadow-heavy);
    transform: translateY(-10px) scale(1.01);
}

.btn {
    background: var(--gray-800);
    color: white;
    border: none;
    padding: 20px 40px;
    width: auto;
    border-radius: 60px;
    font-weight: 700;
    font-size: 16px;
    letter-spacing: 4px;
    text-transform: uppercase;
    cursor: pointer;
    transition: 0.4s var(--easing-bounce);
    box-shadow: 0 8px 0 var(--gray-900), 0 8px 20px rgba(0,0,0,0.08);
    position: relative;
    overflow: hidden;
    display: inline-block;
    text-decoration: none;
    text-align: center;
}

.btn:hover {
    transform: translateY(-6px) scale(1.02);
    box-shadow: 0 4px 0 var(--gray-900), 0 16px 32px rgba(0,0,0,0.15);
    background: var(--gray-900);
}

.btn .ripple {
    position: absolute;
    border-radius: 50%;
    background-color: rgba(255,255,255,0.5);
    transform: scale(0);
    animation: ripple 0.6s linear;
    pointer-events: none;
}

@keyframes ripple {
    to { transform: scale(4); opacity: 0; }
}

/* -------------------- 13. ABOUT SECTION -------------------- */
.about-grid {
    display: flex;
    gap: 70px;
    align-items: center;
    flex-wrap: wrap;
}

.about-text { flex: 1 1 45%; }
.about-text h2 { font-size: clamp(36px,5vw,64px); margin: 20px 0; }
.about-text p { color: var(--gray-700); }

.about-visual { flex: 1 1 40%; display: flex; justify-content: center; }

.solar-orb {
    width: clamp(200px,30vw,350px);
    height: clamp(200px,30vw,350px);
    background: var(--gradient-orb);
    border-radius: 50%;
    animation: orbFloat 8s infinite alternate var(--easing-smooth), orbGlow 4s infinite alternate, spinSlow 20s infinite linear;
}

@keyframes orbFloat {
    0% { transform: translateY(0) scale(1); }
    100% { transform: translateY(-20px) scale(1.05); }
}

@keyframes orbGlow {
    0% { box-shadow: 0 0 0 rgba(0,0,0,0.1); }
    100% { box-shadow: 0 20px 40px rgba(0,0,0,0.2); }
}

@keyframes spinSlow {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* -------------------- 14. SERVICES GRIDS -------------------- */
/* Homepage service grid */
.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
    margin-top: 50px;
}

.service-card {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255,255,255,0.4);
    border-radius: 32px;
    padding: 40px 30px;
    transition: all 0.5s var(--easing-bounce);
    box-shadow: var(--shadow-soft);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.6s;
}

.service-card:hover {
    transform: translateY(-12px) scale(1.02);
    border-color: var(--gray-500);
    box-shadow: var(--shadow-heavy);
}

.service-card:hover::before {
    left: 100%;
}

.service-card i {
    font-size: 56px;
    color: var(--gray-700);
    margin-bottom: 25px;
    transition: transform 0.3s;
}

.service-card:hover i {
    transform: scale(1.1) rotate(5deg);
}

/* Detailed services page */
.service-detailed-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-top: 60px;
}

.service-detailed-card {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255,255,255,0.4);
    border-radius: 32px;
    padding: 40px 30px;
    transition: all 0.5s var(--easing-bounce);
    box-shadow: var(--shadow-soft);
    transform-style: preserve-3d;
}

.service-detailed-card:hover {
    transform: scale(1.03) translateY(-10px) rotateX(2deg);
    border-color: var(--gray-500);
    box-shadow: var(--shadow-heavy);
}

.service-detailed-card i {
    font-size: 56px;
    color: var(--gray-700);
    margin-bottom: 25px;
    transition: transform 0.3s;
}

.service-detailed-card:hover i {
    transform: scale(1.15) rotateY(180deg);
}

/* -------------------- 15. PRODUCTS GRIDS -------------------- */
/* Homepage product preview */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
    margin-top: 50px;
}

.product-card {
    background: var(--pure-white);
    border: 1px solid var(--gray-200);
    border-radius: 32px;
    overflow: hidden;
    transition: all 0.4s var(--easing-bounce);
    box-shadow: var(--shadow-soft);
}

.product-card:hover {
    transform: translateY(-15px) scale(1.02);
    border-color: var(--gray-600);
    box-shadow: var(--shadow-medium);
}

.product-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-bottom: 1px solid var(--gray-200);
    transition: transform 0.6s;
}

.product-card:hover img {
    transform: scale(1.05);
}

.product-card h3 {
    margin: 20px 20px 10px;
    font-size: 22px;
    transition: color 0.3s;
}

.product-card:hover h3 {
    color: var(--gray-900);
}

.product-card p {
    color: var(--gray-600);
    margin: 0 20px 20px;
    font-size: 15px;
    line-height: 1.5;
}

.product-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0 20px 25px;
    color: var(--gray-900);
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    transition: color 0.3s, gap 0.3s;
}

.product-link i {
    font-size: 12px;
    transition: transform 0.3s;
}

.product-link:hover {
    color: #000000;
    gap: 15px;
}

.product-link:hover i {
    transform: translateX(8px);
}

/* Full product page */
.product-full-grid {
    display: flex;
    flex-direction: column;
    gap: 80px;
    margin-top: 60px;
}

.product-full-card {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 50px;
    align-items: center;
    background: var(--pure-white);
    border: 1px solid var(--gray-200);
    border-radius: 40px;
    padding: 40px;
    transition: all 0.5s var(--easing-bounce);
    box-shadow: var(--shadow-soft);
}

.product-full-card:hover {
    transform: scale(1.02) translateY(-8px);
    border-color: var(--gray-600);
    box-shadow: var(--shadow-heavy);
}

.product-media img {
    width: 100%;
    height: auto;
    border-radius: 24px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transition: transform 0.5s;
}

.product-full-card:hover .product-media img {
    transform: scale(1.03);
}

.product-details h3 {
    font-size: 32px;
    margin-bottom: 10px;
}

.product-tagline {
    font-size: 18px;
    color: var(--gray-600);
    font-style: italic;
    margin-bottom: 20px;
}

.product-features {
    list-style: none;
    margin: 25px 0;
    padding: 0;
}

.product-features li {
    margin-bottom: 10px;
    color: var(--gray-700);
    display: flex;
    align-items: center;
    gap: 12px;
    transform: translateX(0);
    transition: transform 0.3s;
}

.product-features li:hover {
    transform: translateX(8px);
}

.product-features i {
    color: var(--gray-800);
    width: 20px;
}

/* -------------------- 16. BLOG GRIDS -------------------- */
/* Homepage blog preview */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-top: 50px;
}

.blog-card {
    background: var(--pure-white);
    border: 1px solid var(--gray-200);
    border-radius: 32px;
    padding: 30px;
    transition: all 0.4s var(--easing-bounce);
    position: relative;
    overflow: hidden;
}

.blog-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: var(--gray-700);
    transition: width 0.4s;
}

.blog-card:hover {
    transform: translateY(-12px);
    border-color: var(--gray-600);
    box-shadow: var(--shadow-medium);
}

.blog-card:hover::after {
    width: 100%;
}

.blog-date {
    display: block;
    color: var(--gray-500);
    font-size: 12px;
    margin-bottom: 20px;
}

.blog-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--gray-900);
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    transition: color 0.3s, gap 0.3s;
    margin-top: 15px;
}

.blog-link i {
    font-size: 12px;
    transition: transform 0.3s;
}

.blog-link:hover {
    color: #000000;
    gap: 12px;
}

.blog-link:hover i {
    transform: translateX(4px);
}

/* Full blog page */
.blog-full-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 40px;
    margin-top: 60px;
}

.blog-full-card {
    background: var(--pure-white);
    border: 1px solid var(--gray-200);
    border-radius: 32px;
    padding: 30px;
    transition: all 0.4s var(--easing-bounce);
}

.blog-full-card:hover {
    transform: translateY(-12px) scale(1.01);
    border-color: var(--gray-600);
    box-shadow: var(--shadow-medium);
}

.blog-meta {
    display: flex;
    justify-content: space-between;
    color: var(--gray-500);
    font-size: 12px;
    margin-bottom: 20px;
}

/* -------------------- 17. TEAM & VALUES -------------------- */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.team-card {
    background: var(--pure-white);
    border: 1px solid var(--gray-200);
    border-radius: 24px;
    padding: 30px;
    text-align: center;
    transition: all 0.4s var(--easing-bounce);
}

.team-card:hover {
    transform: translateY(-12px) scale(1.02);
    border-color: var(--gray-600);
    box-shadow: var(--shadow-medium);
}

.team-card img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    margin-bottom: 20px;
    object-fit: cover;
    border: 3px solid transparent;
    transition: border-color 0.3s, transform 0.4s;
}

.team-card:hover img {
    border-color: var(--gray-400);
    transform: scale(1.05);
}

.team-card h4 {
    font-size: 20px;
    margin-bottom: 8px;
}

.team-card p {
    color: var(--gray-600);
    font-size: 14px;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
}

.values-grid .glass-card {
    padding: 40px;
    transition: all 0.4s;
}

.values-grid .glass-card:hover {
    transform: translateY(-10px) rotate(1deg);
}

.values-grid i {
    font-size: 40px;
    color: var(--gray-700);
    transition: transform 0.3s;
}

.values-grid .glass-card:hover i {
    transform: scale(1.2) rotate(360deg);
}

.values-grid h3 { margin: 20px 0; }
.values-grid h2 { margin: 20px 0; }
.values-grid p { color: var(--gray-600); }

.manifesto {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.manifesto h2 {
    font-size: 48px;
    margin: 20px 0;
    animation: fadeInScale 1s;
}

.manifesto p {
    color: var(--gray-700);
    font-size: 18px;
    line-height: 1.8;
    animation: fadeInUp 1.2s 0.2s backwards;
}

@keyframes fadeInScale {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}

/* -------------------- 18. COUNTERS -------------------- */
.counter-grid {
    display: flex;
    gap: 40px;
    justify-content: center;
    margin: 40px 0;
    flex-wrap: wrap;
}

.counter-item {
    text-align: center;
    min-width: 150px;
}

.counter-number {
    font-size: 56px;
    font-weight: 800;
    color: var(--gray-900);
    line-height: 1;
    font-family: 'Space Grotesk', sans-serif;
    animation: countPulse 2s infinite;
}

@keyframes countPulse {
    0% { text-shadow: 0 0 0 rgba(0,0,0,0.1); }
    50% { text-shadow: 0 0 15px rgba(0,0,0,0.2); }
    100% { text-shadow: 0 0 0 rgba(0,0,0,0.1); }
}

.counter-label {
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--gray-600);
    margin-top: 10px;
}

/* -------------------- 19. CONTACT SECTIONS -------------------- */
/* Homepage contact */
.contact-container {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 70px;
}

.contact-info h3 { font-size: 34px; }
.contact-info h3 span { color: var(--gray-800); }
.contact-info p { color: var(--gray-600); margin: 25px 0; }
.whatsapp-badge i { font-size: 28px; }
.whatsapp-number { font-size: 18px; font-weight: 500; }
.whatsapp-note { color: var(--gray-600); }
.whatsapp-note a { color: var(--gray-800); }

/* Contact page enhanced */
.contact-enhanced {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 60px;
    align-items: start;
}

.contact-info-card, .contact-form-card {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 32px;
    padding: 40px;
    transition: transform 0.4s, box-shadow 0.4s;
}

.contact-info-card:hover, .contact-form-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-heavy);
}

.contact-form-card {
    background: var(--pure-white);
    border: 1px solid var(--gray-200);
    box-shadow: var(--shadow-soft);
}

.contact-method {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 25px;
    transition: transform 0.3s;
}

.contact-method:hover {
    transform: translateX(10px);
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: var(--gray-100);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-icon i { font-size: 24px; }

.map-container {
    margin-top: 40px;
    border-radius: 24px;
    overflow: hidden;
    height: 300px;
    transition: box-shadow 0.3s;
}

.map-container:hover {
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

/* -------------------- 20. FORMS -------------------- */
.input-field {
    position: relative;
    margin-bottom: 35px;
}

.input-field input,
.input-field textarea,
.input-field select {
    width: 100%;
    padding: 16px 0;
    background: transparent;
    border: none;
    border-bottom: 1.5px solid var(--gray-300);
    font-size: 16px;
    font-family: 'Inter', sans-serif;
    outline: none;
    color: var(--gray-900);
    transition: border-color 0.3s;
}

.input-field input:focus,
.input-field textarea:focus,
.input-field select:focus {
    border-bottom-color: var(--gray-700);
}

.input-field label {
    position: absolute;
    left: 0;
    top: 16px;
    color: var(--gray-500);
    font-size: 13px;
    letter-spacing: 1px;
    pointer-events: none;
    transition: 0.25s var(--easing-smooth);
    text-transform: uppercase;
}

.input-field input:focus ~ label,
.input-field input:not(:placeholder-shown) ~ label,
.input-field textarea:focus ~ label,
.input-field textarea:not(:placeholder-shown) ~ label {
    top: -10px;
    font-size: 11px;
    color: var(--gray-700);
}

#form-status {
    margin-top: 25px;
    color: var(--gray-700);
    font-size: 14px;
    text-align: center;
    font-weight: 500;
    animation: fadeIn 0.5s;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* -------------------- 21. FOOTER -------------------- */
footer {
    background: var(--pure-white);
    padding: 80px 8% 40px;
    border-top: 1px solid var(--gray-200);
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 50px;
    margin-top: 40px;
}

.footer-col h2 { font-size: 28px; color: var(--gray-800); margin-bottom: 15px; }
.footer-col h4 { color: var(--gray-700); margin-bottom: 20px; letter-spacing: 2px; }
.footer-col p { color: var(--gray-600); font-size: 14px; line-height: 1.7; }

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.footer-links a {
    color: var(--gray-600);
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.footer-links a:hover {
    color: var(--gray-900);
    transform: translateX(10px) scale(1.05);
}

.back-top {
    margin-top: 30px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--gray-700);
    font-weight: 600;
    text-decoration: none;
    letter-spacing: 2px;
    font-size: 13px;
}

.back-top i { transition: transform 0.3s; }
.back-top:hover i { transform: translateY(-8px); }

.footer-bottom {
    grid-column: 1 / -1;
    border-top: 1px solid var(--gray-200);
    padding-top: 40px;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    font-size: 11px;
    color: var(--gray-500);
}

.footer-bottom a {
    color: inherit;
    text-decoration: none;
    transition: opacity 0.3s;
}

.footer-bottom a:hover {
    color: var(--gray-900);
    opacity: 0.8;
}

/* -------------------- 22. ADMIN OVERRIDES -------------------- */
/* Modal overlay – full screen with blur */
.admin-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999999 !important;
}

/* Modal content card – premium glassmorphism */
.modal-content {
    max-width: 420px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    padding: 40px;
    text-align: center;
    background: var(--pure-white);
    border-radius: 32px;
    box-shadow: var(--shadow-heavy);
    border: 1px solid var(--gray-200);
    animation: modalFadeIn 0.4s var(--easing-smooth);
}

@keyframes modalFadeIn {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

.modal-content h2 {
    margin-bottom: 10px;
    font-size: 28px;
}

.modal-content p {
    color: var(--gray-600);
    margin-bottom: 30px;
    font-size: 15px;
}

/* Error & block messages */
.form-error {
    color: #b00020 !important;
    font-size: 14px;
    margin-bottom: 15px;
    display: none;
    animation: fadeIn 0.3s;
    font-weight: 500;
}

#loginBlockMessage {
    color: #b00020;
}

/* Dashboard statistics cards */
.dashboard-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.dashboard-stats .glass-card {
    padding: 30px;
    text-align: center;
    transition: transform 0.3s var(--easing-smooth), box-shadow 0.3s;
}

.dashboard-stats .glass-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-heavy);
}

.dashboard-stats i {
    font-size: 40px;
    color: var(--gray-700);
    margin-bottom: 15px;
}

.dashboard-stats h3 {
    font-size: 20px;
    margin-bottom: 10px;
    color: var(--gray-800);
}

.dashboard-stats .counter-number {
    font-size: 48px;
    font-weight: 800;
    color: var(--gray-900);
    font-family: 'Space Grotesk', sans-serif;
    line-height: 1.2;
}

/* Blog table */
#blogTable {
    width: 100%;
    border-collapse: collapse;
}

#blogTable th {
    text-align: left;
    padding: 15px 10px;
    background: var(--gray-100);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 1px;
}

#blogTable td {
    padding: 12px 10px;
    border-bottom: 1px solid var(--gray-200);
}

#blogTable tr:hover {
    background: var(--gray-50);
}

.status-badge {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
}

.status-badge.published {
    background: #e0f2e9;
    color: #0b5e42;
}

.status-badge.draft {
    background: #fff0e0;
    color: #a45a00;
}

.edit-btn, .delete-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 14px;
    padding: 5px 10px;
    border-radius: 20px;
    transition: 0.2s;
}

.edit-btn {
    color: var(--gray-700);
    background: var(--gray-100);
    margin-right: 8px;
}

.edit-btn:hover {
    background: var(--gray-200);
}

.delete-btn {
    color: #b00020;
    background: #ffe5e5;
}

.delete-btn:hover {
    background: #ffcccc;
}

/* Hide header when admin login modal is visible */
body.admin-modal-visible header {
    display: none !important;
}

body.categoryModal-visible header {
    display: none !important;
}

/* -------------------- 23. UTILITIES -------------------- */
.text-center { text-align: center; }
.mt-5 { margin-top: 50px; }
.mb-3 { margin-bottom: 30px; }

/* -------------------- 24. RESPONSIVE MEDIA QUERIES -------------------- */
@media (max-width: 1024px) {
    .section { padding: 80px 6%; }
    .contact-enhanced { grid-template-columns: 1fr; gap: 40px; }
    .contact-container { grid-template-columns: 1fr; gap: 40px; }
    .about-grid { flex-direction: column; text-align: center; }
    .about-visual { order: -1; }
    .product-full-card {
        grid-template-columns: 1fr;
        gap: 30px;
        padding: 30px;
    }
    .product-media { order: -1; }
}

@media (max-width: 768px) {
    /* Header */
    header { height: 80px; }
    .logo-img { width: 100px; height: 100px; }
    nav { display: none !important; }
    .hamburger { display: flex !important; }
    .mobile-dropdown { top: 80px; }

    /* Main */
    main { margin-top: 80px; }
    .section { padding: 60px 5%; }
    .hero { min-height: calc(100vh - 650px); }
    .hero-title { font-size: clamp(3rem, 12vw, 6rem); }
    .hero-sub { letter-spacing: 0.2em; font-size: 0.9rem; }

    /* Counters */
    .counter-grid { gap: 20px; }
    .counter-item { min-width: 120px; }
    .counter-number { font-size: 42px; }

    /* Grids */
    .service-detailed-grid { gap: 30px; }
    .blog-full-grid { grid-template-columns: 1fr; }
    .team-grid { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }

    /* Footer */
    footer {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: left;
    }
    .footer-links a {
        justify-content: flex-start;
    }
    .back-top {
        justify-content: flex-start;
    }

    /* Contact */
    .map-container { height: 250px; }
    .contact-info-card, .contact-form-card { padding: 30px; }
}

@media (max-width: 480px) {
    /* Header */
    .logo-img { width: 90px; height: 90px; }

    /* Sections */
    .section { padding: 40px 5%; }
    .hero-title { font-size: clamp(2.5rem, 10vw, 4rem); }
    .hero-sub {
        font-size: 0.8rem;
        letter-spacing: 0.1em;
        border-top-width: 1px;
        padding-top: 0.8rem;
    }

    /* Buttons */
    .btn {
        width: 100%;
        padding: 16px 20px;
        font-size: 14px;
        letter-spacing: 2px;
    }

    /* Text */
    .about-text p,
    .manifesto p,
    .service-card p,
    .blog-card p,
    .team-card p {
        font-size: 15px;
        line-height: 1.6;
    }

    /* Cards */
    .service-card, .blog-card, .team-card,
    .contact-info-card, .contact-form-card {
        padding: 25px;
    }

    /* Footer */
    .footer-bottom {
        flex-direction: column;
        gap: 10px;
        text-align: left;
    }

    /* Counters */
    .counter-number { font-size: 36px; }
    .counter-item { min-width: 100px; }

    /* Manifesto */
    .manifesto h2 { font-size: 32px; }

    /* Icons */
    .service-card i, .service-detailed-card i { font-size: 48px; }

    /* Grid gaps */
    .service-grid, .blog-grid, .team-grid, .values-grid,
    .product-grid, .product-full-grid {
        gap: 25px;
    }

    /* Product full card */
    .product-full-card {
        padding: 20px;
    }
    .product-details h3 {
        font-size: 26px;
    }
}

/* -------------------- 25. REDUCED MOTION PREFERENCE -------------------- */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* ===== ADDITIONS FOR ADMIN BLOG MANAGEMENT ===== */

/* File input styling */
.file-input-wrapper {
    margin-bottom: 25px;
    position: relative;
}
.file-label {
    display: inline-block;
    background: var(--gray-200);
    color: var(--gray-800);
    padding: 12px 25px;
    border-radius: 30px;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    letter-spacing: 0.5px;
    transition: all 0.3s;
    border: 1px solid var(--gray-300);
}
.file-label:hover {
    background: var(--gray-300);
}
.file-input-wrapper input[type="file"] {
    position: absolute;
    left: -9999px;
    opacity: 0;
}

/* Image preview */
#imagePreview img {
    border: 2px solid var(--gray-300);
    padding: 5px;
    background: white;
}

/* Select field adjustments - remove floating label effect */
.select-field label {
    position: static;
    transform: none;
    color: var(--gray-700);
    font-size: 13px;
    letter-spacing: 1px;
    margin-bottom: 5px;
    display: block;
    text-transform: uppercase;
}
.select-field select {
    border-bottom: 1.5px solid var(--gray-300);
    padding: 12px 0;
    background: transparent;
    width: 100%;
    font-size: 16px;
    outline: none;
}
.select-field select:focus {
    border-bottom-color: var(--gray-700);
}

/* Checkbox group */
.checkbox-group {
    margin: 20px 0;
    display: flex;
    gap: 30px;
    align-items: center;
}
.checkbox-group label {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--gray-700);
    font-size: 15px;
    cursor: pointer;
}
.checkbox-group input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--gray-700);
}

/* Modal adjustments for delete/category */
.admin-modal {
    backdrop-filter: blur(4px);
}
.modal-content h2 {
    margin-bottom: 20px;
}
.modal-content .btn {
    margin: 0;
}

/* Category table actions */
#blogTable .edit-btn, #blogTable .delete-btn {
    padding: 6px 12px;
    margin: 0 3px;
    border: none;
    border-radius: 20px;
    font-size: 13px;
    cursor: pointer;
}

/* Toast Notifications */
#toast-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 999999;
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 350px;
}

.toast {
    background: white;
    border-radius: 8px;
    padding: 15px 20px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    display: flex;
    align-items: center;
    gap: 12px;
    animation: slideInRight 0.3s ease;
    border-left: 4px solid;
}

.toast-success { border-left-color: #0b5e42; }
.toast-error { border-left-color: #b00020; }
.toast-warning { border-left-color: #ff9800; }
.toast-info { border-left-color: #2196f3; }

.toast-icon {
    font-size: 20px;
    font-weight: bold;
}

.toast-message {
    flex: 1;
    font-size: 14px;
    color: #333;
}

.toast-close {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: #999;
    padding: 0 5px;
}

.toast-close:hover {
    color: #333;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}
