:root {
    --bg-color: #ffffff;
    --card-bg: rgba(0, 0, 0, 0.02);
    --card-border: rgba(0, 0, 0, 0.06);
    --text-primary: #000000;
    --text-secondary: #5f6368;
    --accent-blue: #1a73e8;
    --accent-purple: #9334e6;
    --glass-blur: 15px;
    --font-main: 'Google Sans Flex', 'Inter', -apple-system, sans-serif;
    --msg-error: #f44336;
    --msg-success: var(--accent-blue);
}

.bg-glow {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: radial-gradient(circle at 50% 50%, rgba(26, 115, 232, 0.03), transparent 70%);
    z-index: -3;
    pointer-events: none;
}

.msg-error { border-color: var(--msg-error) !important; }
.msg-success { border-color: var(--msg-success) !important; }
.msg-info { border-color: var(--accent-purple) !important; }

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

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: var(--font-main);
    line-height: 1.6;
    overflow-x: hidden;
}

.glass {
    background: var(--card-bg);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border: 1px solid var(--card-border);
    border-radius: 24px;
}

.content-page ul {
    list-style: disc;
    margin-left: 24px;
    margin-bottom: 24px;
}
.content-page li {
    margin-bottom: 8px;
}

.glass-nav {
    position: fixed;
    top: 24px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 1200px;
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 40px;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 36px;
    transition: all 0.3s ease;
}

/* Hamburger Button */
.menu-trigger {
    display: none;
    cursor: pointer;
    z-index: 1001;
    color: var(--text-primary);
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Mobile Side Panel */
.mobile-panel {
    position: fixed;
    top: 0;
    right: -300px;
    width: 300px;
    height: 100vh;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(20px);
    border-left: 1px solid var(--card-border);
    z-index: 2000;
    padding: 100px 40px;
    display: flex;
    flex-direction: column;
    gap: 32px;
    transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-panel.active {
    right: 0;
}

.mobile-panel a {
    color: #ffffff; /* Contrast against dark background */
    text-decoration: none;
    font-size: 20px;
    font-weight: 500;
    transition: opacity 0.3s ease;
}

.mobile-panel a:hover {
    opacity: 0.7;
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1999;
    opacity: 0;
    visibility: hidden;
    transition: 0.3s;
}

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

/* Typography */
h1 {
    font-size: clamp(2.5rem, 8vw, 5rem);
    font-weight: 500;
    letter-spacing: -0.005em;
    line-height: 1.2;
    margin-bottom: 24px;
}

.gradient-text {
    background: linear-gradient(135deg, #000000 40%, var(--accent-blue) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 800;
}

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

.hero {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
}

#hero-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -2;
    pointer-events: none;
}

.hero-noise {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    pointer-events: none;
    opacity: 0.03;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%' height='100%' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 16px 32px;
    border-radius: 32px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-primary {
    background: var(--text-primary);
    color: var(--bg-color);
}

.btn-primary:hover {
    transform: scale(1.05);
    background: #f1f3f4;
    color: var(--text-primary);
}

.btn-outline {
    border: 1px solid var(--card-border);
    color: var(--text-primary);
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.05);
}

/* Nav Links */
.nav-links {
    display: flex;
    gap: 32px;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 15px;
    transition: color 0.3s;
}

.nav-links a:hover, .nav-links a.active {
    color: var(--text-primary);
    font-weight: 600;
}

/* Form Styles */
.contact-form {
    max-width: 600px;
    margin: 0 auto;
}

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

.form-input {
    width: 100%;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--card-border);
    border-radius: 12px;
    padding: 16px;
    color: var(--text-primary);
    font-size: 16px;
    outline: none;
    transition: border-color 0.3s;
}

.form-input:focus {
    border-color: var(--accent-blue);
}


/* Social Share Buttons */
.share-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--card-border);
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
}

.share-btn i, .share-btn svg {
    width: 20px;
    height: 20px;
}

.share-btn:hover {
    transform: translateY(-3px);
    border-color: transparent;
    color: white;
}

.share-btn.whatsapp:hover { background: #25D366; box-shadow: 0 10px 20px rgba(37, 211, 102, 0.3); }
.share-btn.linkedin:hover { background: #0077b5; box-shadow: 0 10px 20px rgba(0, 119, 181, 0.3); }
.share-btn.twitter:hover { background: #000000; box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3); }
.share-btn.copy:hover { background: var(--accent-purple); box-shadow: 0 10px 20px rgba(147, 52, 230, 0.3); }

/* Contact Page Specific */
.contact-section {
    padding-top: 180px;
    padding-bottom: 100px;
}

.contact-header {
    margin-bottom: 60px;
}

.contact-subtitle {
    color: var(--text-secondary);
    font-size: 18px;
    max-width: 600px;
}

.contact-grid {
    display: flex;
    gap: 80px;
    width: 100%;
}

.contact-form-column {
    flex: 1.5;
}

.contact-info-column {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.contact-form.glass {
    padding: 40px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    color: var(--text-secondary);
}

.form-error {
    color: var(--msg-error);
    font-size: 12px;
    margin-top: 4px;
}

.submit-btn {
    width: 100%;
    margin-top: 24px;
}

.info-card {
    padding: 40px;
}

.info-card h3 {
    margin-bottom: 24px;
}

.info-item {
    margin-bottom: 24px;
}

.info-item:last-child {
    margin-bottom: 0;
}

.info-label {
    color: var(--text-secondary);
    margin-bottom: 4px;
    font-size: 14px;
}

.info-value {
    color: var(--text-primary);
    text-decoration: none;
    font-size: 18px;
    font-weight: 500;
    transition: color 0.3s;
}

.info-value:hover {
    color: var(--accent-blue);
}

.office-text {
    color: var(--text-secondary);
    line-height: 1.8;
}

/* Footer */

/* Footer */
footer {
    padding: 80px 0 40px;
    border-top: 1px solid var(--card-border);
    margin-top: 100px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 48px;
    margin-bottom: 60px;
}

.footer-col h4 {
    margin-bottom: 24px;
    font-weight: 500;
}

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

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

.footer-col a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-col a:hover {
    color: var(--text-primary);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    color: var(--text-secondary);
    font-size: 14px;
}

/* Spacing Helpers */
.mt-100 { margin-top: 100px; }
.mt-80 { margin-top: 80px; }
.mb-40 { margin-bottom: 40px; }
.mb-32 { margin-bottom: 32px; }
.pt-40 { padding-top: 40px; }
.pb-24 { padding-bottom: 24px; }

/* Icon Container */
.icon-box {
    width: 56px;
    height: 56px;
    background: rgba(255, 255, 255, 0.05); /* Soft background for icons */
    border: 1px solid var(--card-border);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 32px;
    color: var(--accent-blue);
    transition: all 0.3s ease;
}

.glass:hover .icon-box {
    transform: translateY(-5px);
    background: var(--accent-blue);
    color: white;
}

/* Service Images */
.service-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 24px;
    opacity: 0.8;
    transition: opacity 0.5s;
}

.glass:hover .service-img {
    opacity: 1;
}

/* List Spacing */
.check-list {
    list-style: none;
    margin-top: 32px;
}

.check-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    color: var(--text-secondary);
}

.check-list i {
    color: var(--accent-blue);
}

/* ==========================================
   RESPONSIVE — Tablet (max-width: 992px)
   ========================================== */
@media (max-width: 992px) {
    .nav-links, .glass-nav .btn-primary {
        display: none;
    }
    .menu-trigger {
        display: block;
    }
    .mt-100 { margin-top: 60px; }
}

/* ==========================================
   RESPONSIVE — Mobile (max-width: 768px)
   ========================================== */
@media (max-width: 768px) {
    /* --- Navigation --- */
    .glass-nav {
        height: 56px;
        padding: 0 20px;
        top: 12px;
        width: 94%;
        border-radius: 28px;
    }
    
    /* --- Hero Section --- */
    .hero {
        padding-top: 100px;
        padding-bottom: 40px;
        height: auto;
        min-height: 75vh;
    }
    
    .hero h1 {
        font-size: clamp(1.8rem, 7vw, 2.8rem);
        line-height: 1.25;
        margin-bottom: 16px;
    }
    
    .hero p {
        font-size: 16px !important;
        max-width: 100% !important;
        padding: 0 8px;
    }
    
    .hero .btns {
        flex-direction: column;
        width: 100%;
        max-width: 280px;
        gap: 12px !important;
    }
    
    .btn {
        width: 100%;
        text-align: center;
        padding: 14px 24px;
        font-size: 15px;
    }
    
    /* --- Typography Scaling --- */
    h1 {
        font-size: clamp(1.8rem, 7vw, 2.8rem) !important;
        margin-bottom: 16px;
    }
    
    h2 {
        font-size: clamp(1.4rem, 5vw, 2rem) !important;
        margin-bottom: 16px;
    }
    
    h3 {
        font-size: clamp(1.1rem, 4vw, 1.4rem) !important;
    }
    
    /* --- Sections & Container --- */
    section {
        padding: 40px 0;
    }
    
    .container {
        padding: 0 16px;
    }
    
    /* --- Inner Pages (services, about, contact) top padding --- */
    section.container[style*="padding-top: 180px"], 
    .contact-section,
    .blog-detail-section,
    .portfolio-detail-section {
        padding-top: 150px !important;
    }
    
    /* --- Glass Cards --- */
    .glass {
        padding: 20px !important;
        border-radius: 18px;
    }
    
    /* --- Grids: prevent overflow on small screens --- */
    [style*="grid-template-columns: repeat(auto-fit, minmax(300px"] {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }
    
    /* --- Service page flex layouts --- */
    .glass[style*="display: flex"][style*="align-items: center"][style*="gap: 40px"] {
        flex-direction: column !important;
        gap: 24px !important;
    }
    
    .glass[style*="flex-direction: row-reverse"] {
        flex-direction: column !important;
        gap: 24px !important;
    }
    
    /* Fix min-width: 300px elements causing overflow */
    [style*="min-width: 300px"] {
        min-width: 0 !important;
        width: 100% !important;
    }
    
    /* Fix service image containers height */
    [style*="min-width: 300px"][style*="height: 360px"] {
        height: 220px !important;
    }
    
    /* Fix feature checkmarks wrapping */
    [style*="display: flex"][style*="gap: 24px"][style*="font-weight: 500"] {
        flex-direction: column !important;
        gap: 8px !important;
    }
    
    /* --- About Page stat cards --- */
    [style*="flex: 1; display: flex; flex-direction: column; gap: 20px"] {
        flex-direction: row !important;
        gap: 12px !important;
    }
    
    [style*="flex: 1; display: flex; flex-direction: column; gap: 20px"] .glass {
        flex: 1;
    }
    
    /* --- Contact Page --- */
    .contact-section {
        padding-top: 120px !important;
        padding-bottom: 60px;
    }

    .contact-header {
        margin-bottom: 40px;
        text-align: center;
    }

    .contact-subtitle {
        margin: 0 auto;
        font-size: 16px;
    }

    .contact-grid {
        flex-direction: column;
        gap: 32px;
    }

    .contact-form.glass, .info-card {
        padding: 30px 20px !important;
    }

    .info-value {
        font-size: 16px;
    }
    
    /* --- Footer --- */
    footer {
        padding: 48px 0 32px;
        margin-top: 60px;
    }
    
    .footer-grid {
        grid-template-columns: 1fr 1fr !important;
        gap: 32px;
        margin-bottom: 40px;
    }
    
    .footer-col h3 {
        font-size: 18px !important;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }
    
    /* --- Spacing overrides --- */
    .mt-80 { margin-top: 40px !important; }
    .mt-100 { margin-top: 40px !important; }
    .mb-40 { margin-bottom: 24px; }
    
    /* Large inline paddings override */
    [style*="padding: 80px"] {
        padding: 28px !important;
    }
    
    [style*="padding: 60px"] {
        padding: 24px !important;
    }
    
    [style*="margin-bottom: 80px"] {
        margin-bottom: 40px !important;
    }
    
    [style*="margin-bottom: 60px"] {
        margin-bottom: 32px !important;
    }
}

/* ==========================================
   RESPONSIVE — Small Mobile (max-width: 480px)
   ========================================== */
@media (max-width: 480px) {
    .glass-nav {
        height: 52px;
        padding: 0 16px;
        top: 8px;
        width: 95%;
    }
    
    .glass-nav a[style*="font-size: 20px"] {
        font-size: 17px !important;
    }
    
    .hero {
        padding-top: 90px;
        min-height: 70vh;
    }
    
    .hero h1 {
        font-size: clamp(1.5rem, 8vw, 2.2rem);
    }
    
    .container {
        padding: 0 14px;
    }
    
    .glass {
        padding: 16px !important;
        border-radius: 16px;
    }
    
    /* Footer goes single column on very small screens */
    .footer-grid {
        grid-template-columns: 1fr !important;
        gap: 28px;
    }
    
    /* About page stat row stays side by side */
    [style*="flex: 1; display: flex; flex-direction: column; gap: 20px"] {
        flex-direction: row !important;
        gap: 8px !important;
    }
    
    [style*="flex: 1; display: flex; flex-direction: column; gap: 20px"] .glass {
        padding: 16px !important;
    }
    
    [style*="flex: 1; display: flex; flex-direction: column; gap: 20px"] .glass h3 {
        font-size: 26px !important;
    }
}

/* ==========================================
   Mobile Panel Enhancements
   ========================================== */
@media (max-width: 992px) {
    .mobile-panel {
        width: 280px;
        right: -280px;
        padding: 80px 32px;
        gap: 24px;
    }
    
    .mobile-panel a {
        font-size: 18px;
        padding: 8px 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.06);
        transition: all 0.3s ease;
    }
    
    .mobile-panel a:last-child {
        border-bottom: none;
    }
    
    .mobile-panel .btn.btn-primary {
        margin-top: 16px;
        text-align: center;
        padding: 14px 24px;
        border-radius: 14px;
        border-bottom: none;
        background: var(--accent-blue);
        font-size: 15px;
    }
}

/* ==========================================
   WhatsApp Chat Box System
   ========================================== */
.whatsapp-wrapper {
    position: fixed;
    bottom: 32px;
    left: 32px;
    z-index: 2000;
}

.whatsapp-btn {
    width: 60px;
    height: 60px;
    background: #25d366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    cursor: pointer;
    box-shadow: 0 8px 16px rgba(37, 211, 102, 0.3);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    animation: whatsapp-pulse 2s infinite;
}

@keyframes whatsapp-pulse {
    0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7); }
    70% { box-shadow: 0 0 0 15px rgba(37, 211, 102, 0); }
    100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

.whatsapp-btn:hover {
    transform: scale(1.1);
}

.whatsapp-btn i {
    font-size: 30px;
}

.whatsapp-chat-box {
    position: absolute;
    bottom: 80px;
    left: 0;
    width: 320px;
    background: rgba(13, 17, 23, 0.8);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    overflow: hidden;
    display: none;
    flex-direction: column;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4);
    transform-origin: bottom left;
    transition: all 0.3s ease;
}

.whatsapp-chat-box.active {
    display: flex;
    animation: slideUpFade 0.3s forwards;
}

@keyframes slideUpFade {
    from { transform: translateY(20px) scale(0.95); opacity: 0; }
    to { transform: translateY(0) scale(1); opacity: 1; }
}

.chat-header {
    background: #075e54;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    position: relative;
}

.chat-header .close-chat {
    position: absolute;
    top: 15px;
    right: 15px;
    color: rgba(255, 255, 255, 0.7);
    cursor: pointer;
    font-size: 14px;
}

.chat-logo {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #fff;
    padding: 2px;
    object-fit: cover;
}

.chat-info h4 {
    color: white;
    font-size: 16px;
    margin-bottom: 2px;
}

.chat-info span {
    font-size: 12px;
    color: #8ed6cd;
    display: flex;
    align-items: center;
    gap: 4px;
}

.chat-info span::before {
    content: '';
    width: 8px;
    height: 8px;
    background: #25d366;
    border-radius: 50%;
}

.chat-body {
    padding: 24px;
    background: radial-gradient(circle at top right, rgba(255, 255, 255, 0.03), transparent);
}

.chat-message {
    background: rgba(255, 255, 255, 0.05);
    padding: 12px 16px;
    border-radius: 12px;
    border-top-left-radius: 2px;
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.5;
}

.chat-footer {
    padding: 16px 24px 24px;
}

.chat-footer .btn-wa {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    background: #25d366;
    color: white;
    text-decoration: none;
    padding: 12px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 14px;
    transition: 0.3s;
}

.chat-footer .btn-wa:hover {
    background: #20ba5a;
    transform: translateY(-2px);
}

/* WhatsApp Mobile */
@media (max-width: 768px) {
    .whatsapp-wrapper {
        bottom: 16px;
        left: 16px;
    }
    
    .whatsapp-btn {
        width: 52px;
        height: 52px;
    }
    
    .whatsapp-btn i {
        font-size: 26px;
    }
    
    .whatsapp-chat-box {
        position: fixed;
        bottom: 80px;
        left: 16px;
        right: 16px;
        width: auto;
        max-width: calc(100vw - 32px);
        border-radius: 16px;
    }
    
    .chat-header {
        padding: 16px;
    }
    
    .chat-body {
        padding: 16px;
    }
    
    .chat-footer {
        padding: 12px 16px 16px;
    }
}
