:root {
    /* Deep Unique Color Palette */
    --navy: #0f172a; 
    --navy-light: #1e293b;
    --teal: #0891b2;
    --teal-dark: #0e7490;
    --hero-blue: #1d4ed8;
    
    --bg-light: #ffffff;
    --bg-gray: #f8fafc;
    --text-main: #0f172a;
    --text-muted: #64748b;
    --border-color: #e2e8f0;
    
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-gray);
    color: var(--text-main);
    font-family: var(--font-body);
    line-height: 1.6;
    font-size: 18px; /* Larger base font for seniors */
    overflow-x: hidden;
}

h1, h2, h3, h4 {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--text-main);
}

/* Navbar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.2rem 5%;
    background: rgba(17, 17, 17, 0.85); /* Changed to glassmorphism */
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    position: absolute;
    top: 0;
    width: 100%;
    z-index: 100;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-icon {
    width: 100%;
    max-width: 260px;
    height: auto;
}

.logo-text {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    line-height: 1.1;
    color: var(--navy);
    letter-spacing: 0.5px;
}

.logo-text span {
    font-weight: 600;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
    color: var(--text-main);
    display: block;
}

nav {
    display: flex;
    gap: 2.5rem;
    align-items: center;
}

nav a {
    color: #ffffff; /* Make links visible on dark background */
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s ease;
}

nav a:hover {
    color: var(--teal); /* Better contrast on dark than hero-blue */
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.phone-link {
    font-weight: 700;
    color: var(--text-main);
    text-decoration: none;
}

.phone-link:hover {
    color: var(--hero-blue);
}

/* Buttons */
.btn-primary {
    background-color: var(--teal);
    color: white !important;
    padding: 0.8rem 1.8rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-block;
    text-align: center;
}

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

.full-width {
    width: 100%;
}

.btn-large {
    padding: 1.2rem 2.5rem;
    font-size: 1.1rem;
}

/* Hero Section (Unique Fabtech Architecture) */
.hero-section {
    background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 100%);
    position: relative;
    padding: 12rem 5% 10rem;
    color: white;
    clip-path: polygon(0 0, 100% 0, 100% 88%, 0 100%);
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 4rem;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.hero-content h1 {
    font-size: 3.5rem;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    color: white;
}

.highlight-text {
    color: #ffde59;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 2.5rem;
    opacity: 0.9;
}

/* Unique SVG Animation */
@keyframes floatNode {
    0% { transform: translateY(0px) }
    50% { transform: translateY(-8px) }
    100% { transform: translateY(0px) }
}

@keyframes pulseGlow {
    0% { opacity: 0.6; stroke-width: 0; }
    50% { opacity: 1; stroke-width: 4px; stroke: rgba(16, 185, 129, 0.5); }
    100% { opacity: 0.6; stroke-width: 0; }
}

.unique-hero-svg circle[fill="#ffde59"], .unique-hero-svg circle[fill="#ffffff"] {
    animation: floatNode 3s ease-in-out infinite;
}

.unique-hero-svg circle[fill="url(#glowPulse)"] {
    animation: pulseGlow 2s ease-in-out infinite;
}

.hero-image-wrapper {
    display: flex;
    justify-content: center;
}

/* Trust Bar */
.trust-bar {
    background-color: var(--bg-gray);
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    text-align: center;
    padding: 4rem 5% 2rem;
    max-width: 1000px;
    margin: 0 auto;
    gap: 1rem;
}

.trust-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.trust-icon {
    font-size: 2rem;
    background: white;
    width: 60px;
    height: 60px;
    line-height: 60px;
    border-radius: 50%;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

.trust-item span {
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--text-main);
}

/* Featured Services Grid */
.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    font-size: 2.5rem;
}

.services {
    padding: 4rem 5% 6rem;
    background-color: var(--bg-gray);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr));
    gap: 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.service-card {
    background: var(--bg-light);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    display: flex;
    flex-direction: column;
}

.service-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 15px 35px rgba(0, 165, 166, 0.2);
}

.service-details {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.service-details h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.price-tag {
    color: var(--text-muted);
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
}

.service-details .btn-primary {
    margin-top: auto;
    border-radius: 6px;
}

/* Device Supported Cards */
.device-item {
    display: flex;
    gap: 1.5rem;
    padding: 1.5rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    border: 1px solid var(--border-color);
    align-items: flex-start;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.device-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 25px rgba(0,0,0,0.1);
    border-color: var(--teal);
}

.device-icon-box {
    width: 60px;
    height: 60px;
    flex-shrink: 0;
    background-color: var(--bg-gray);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2rem;
    border: 1px solid rgba(0,0,0,0.05);
}

.device-item h4 {
    font-size: 1.2rem;
    color: var(--navy);
    margin-bottom: 0.3rem;
    font-weight: 700;
}

.device-item p {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.4;
    margin: 0;
}

/* CTA */
.cta {
    padding: 6rem 5%;
    text-align: center;
    background-color: var(--navy);
    color: white;
}

.cta h2 {
    font-size: 2.5rem;
    color: white;
    margin-bottom: 1rem;
}

.cta p {
    font-size: 1.1rem;
    max-width: 700px;
    margin: 0 auto;
    color: #e2e8f0;
}

/* Footer */
footer {
    padding: 3rem 5%;
    background-color: #0f172a;
    color: white;
}

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

.logo-footer {
    font-family: var(--font-heading);
    font-size: 1.2rem;
}

.footer-content p {
    color: #94a3b8;
}

/* Modal Styling */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(15, 23, 42, 0.75);
    backdrop-filter: blur(5px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal-content {
    background: white;
    border-radius: 12px;
    width: 90%;
    max-width: 500px;
    padding: 2.5rem;
    position: relative;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    text-align: center;
    animation: slideUp 0.3s ease-out forwards;
}

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

.close-modal {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    font-size: 2rem;
    color: var(--text-muted);
    cursor: pointer;
    line-height: 1;
}

.close-modal:hover {
    color: var(--navy);
}

.modal-content h2 {
    font-size: 1.8rem;
    color: var(--navy);
    margin-bottom: 1rem;
    padding-right: 20px;
}

.modal-body p {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.modal-highlight {
    color: var(--teal) !important;
    font-weight: 600;
    background: var(--teal-light);
    padding: 0.5rem;
    border-radius: 6px;
    margin-bottom: 1.5rem !important;
}

.modal-button-group {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1.5rem;
}

.modal-action-btn {
    display: flex !important;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 1.2rem;
    padding: 1.2rem !important;
}

.modal-action-btn svg {
    margin-bottom: 2px;
}



/* Scroll Reveal Animations */
.reveal-up {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal-up.active {
    opacity: 1;
    transform: translateY(0);
}

/* Pulsing Call Button */
@keyframes subtlePulse {
    0% { box-shadow: 0 10px 20px rgba(16, 185, 129, 0.3); }
    50% { box-shadow: 0 10px 35px rgba(16, 185, 129, 0.7); }
    100% { box-shadow: 0 10px 20px rgba(16, 185, 129, 0.3); }
}
.pulse-btn {
    animation: subtlePulse 2.5s infinite;
}

/* Mobile Floating Action Bar */
.mobile-action-bar {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(17, 17, 17, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 0.8rem;
    box-shadow: 0 -5px 20px rgba(0,0,0,0.3);
    z-index: 1000;
    border-top: 1px solid rgba(255,255,255,0.1);
}
.mobile-btn {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    padding: 0.8rem;
    color: white;
    text-decoration: none;
    font-weight: 700;
    border-radius: 8px;
    font-size: 1.1rem;
}
.mobile-call { background-color: #10b981; }
.mobile-text { background-color: var(--hero-blue); margin-left: 0.8rem; }

/* Booking Form */
.booking-form {
    text-align: left;
    margin-top: 0.5rem;
    overflow-y: auto;
    padding-right: 0.5rem;
    flex-grow: 1;
}
.booking-form::-webkit-scrollbar { width: 6px; }
.booking-form::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 4px; }
.booking-form .form-group { margin-bottom: 1.2rem; }
.booking-form .row { display: flex; gap: 1rem; }
.booking-form .col { flex: 1; }
.booking-form label {
    display: block; font-weight: 600; font-size: 0.95rem; color: var(--navy); margin-bottom: 0.4rem;
}
.booking-form input[type="text"],
.booking-form input[type="tel"],
.booking-form input[type="email"],
.booking-form select,
.booking-form textarea {
    width: 100%; padding: 0.8rem; border: 1px solid var(--border-color); border-radius: 8px;
    font-size: 1rem; font-family: var(--font-body); transition: all 0.2s ease; background-color: var(--bg-gray);
}
.booking-form input:focus, .booking-form select:focus, .booking-form textarea:focus {
    outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px rgba(8, 145, 178, 0.1); background-color: white;
}
.checkbox-grid {
    display: grid; grid-template-columns: 1fr 1fr; gap: 0.8rem; background: var(--bg-gray);
    padding: 1rem; border-radius: 8px; border: 1px solid var(--border-color);
}
.checkbox-grid label {
    font-weight: 500; font-size: 0.9rem; margin-bottom: 0; display: flex; align-items: center; gap: 8px; cursor: pointer; color: var(--text-main);
}
.checkbox-grid input[type="checkbox"] { width: 18px; height: 18px; cursor: pointer; accent-color: var(--teal); }
.modal-footer-contact {
    margin-top: 1rem; padding-top: 1rem; border-top: 1px solid var(--border-color); text-align: center; flex-shrink: 0;
}
.modal-footer-contact p { font-size: 0.9rem; color: var(--text-muted); margin-bottom: 0.8rem; }
.quick-contact-btns { display: flex; gap: 1rem; justify-content: center; }
.quick-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 0.6rem 1rem;
    border-radius: 6px; font-weight: 600; font-size: 0.95rem; text-decoration: none; transition: all 0.2s; flex: 1; max-width: 200px;
}
.quick-call { background-color: #10b981; color: white; }
.quick-text { background-color: var(--bg-gray); color: var(--navy); border: 1px solid var(--border-color); }
.quick-btn:hover { transform: translateY(-2px); opacity: 0.9; }


/* Responsive */
@media (max-width: 900px) {
    .navbar {
        flex-wrap: wrap;
        justify-content: center;
    }
    nav {
        width: 100%;
        justify-content: center;
    }
    .nav-actions {
        display: none;
    }
    .hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .hero-section {
        padding-top: 15rem;
    }
    .hero-content h1 {
        font-size: 2.8rem;
    }
    .hero-image-wrapper {
        display: none;
    }
    .trust-bar {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding-top: 2rem;
    }
    .portfolio-grid {
        grid-template-columns: 1fr !important;
        gap: 2rem !important;
    }
    
    body {
        padding-bottom: 80px; /* Space for the mobile action bar */
    }
    .mobile-action-bar {
        display: flex;
    }
}

@media (max-width: 480px) {
    .navbar {
        padding: 0.5rem 3%;
        gap: 0.5rem;
    }
    .logo-icon {
        max-width: 220px;
        height: auto !important;
    }
    nav {
        gap: 0.8rem;
        font-size: 0.9rem;
        flex-wrap: wrap; /* allow wrapping on super tiny screens */
        margin-top: 0.2rem;
    }
    .hero-section {
        padding: 11rem 5% 5rem;
        clip-path: polygon(0 0, 100% 0, 100% 95%, 0 100%);
    }
    .trust-item span {
        font-size: 0.85rem;
    }
    .booking-form .row { flex-direction: column; gap: 0; }
    .booking-form .col { margin-bottom: 1.2rem; }
    .booking-form .col:last-child { margin-bottom: 0; }
    .checkbox-grid { grid-template-columns: 1fr; }
    .footer-content {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    .unique-hero-svg {
        width: 100%;
        height: auto;
    }
}

/* Extra support for iPhone SE / Tiny phones <= 360px width */
@media (max-width: 360px) {
    .navbar {
        padding: 0.5rem 2%;
    }
    .logo-icon {
        max-width: 200px;
        height: auto !important;
    }
    nav {
        gap: 0.5rem;
        font-size: 0.8rem;
    }
    .hero-content h1 {
        font-size: 2.2rem !important; /* force smaller hero text on SE */
    }
    .trust-icon {
        width: 45px;
        height: 45px;
        line-height: 45px;
        font-size: 1.5rem;
    }
}
