/* =========================================
   GAURAV DIGITAL - MASTER STYLESHEET (UNIVERSAL RESPONSIVENESS)
   ========================================= */

/* --- 1. GLOBAL SETTINGS & TYPOGRAPHY --- */
:root {
    --logo-gradient: linear-gradient(90deg, #00f2fe 0%, #4facfe 100%, #00f2fe 200%);
    --dark-bg: #050505;
    --watery-header: rgba(10, 18, 25, 0.45); 
    --text-main: #ffffff;
    --text-dim: #b0b0b0;
    --text-muted: #888888;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { 
    background-color: var(--dark-bg); 
    color: var(--text-main); 
    font-family: 'Montserrat', sans-serif; 
    overflow-x: hidden; 
}

/* --- KEYFRAME ANIMATIONS --- */
@keyframes fadeUp {
    0% { opacity: 0; transform: translateY(40px); }
    100% { opacity: 1; transform: translateY(0); }
}
@keyframes liquidGradient {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* --- 2. ENHANCED WATERY HEADER --- */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: clamp(15px, 2vw, 20px) 8%; 
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    background: var(--watery-header);
    backdrop-filter: blur(25px) saturate(180%);
    -webkit-backdrop-filter: blur(25px) saturate(180%);
    border-bottom: 1px solid rgba(0, 242, 254, 0.15);
    transition: padding 0.3s ease;
}

.nav-logo, .logo-img { 
    /* Balanced Desktop Logo */
    height: clamp(70px, 6vw, 110px); 
    width: auto; 
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}
.nav-logo:hover { transform: scale(1.05); }

.nav-links { display: flex; list-style: none; gap: clamp(15px, 3vw, 40px); }

.nav-links a {
    text-decoration: none;
    color: var(--text-dim);
    /* Balanced Nav Font */
    font-size: clamp(0.85rem, 1.2vw, 1rem); 
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px; 
    position: relative;
    transition: color 0.4s ease;
}
.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0%;
    height: 2px;
    background: var(--logo-gradient);
    transition: width 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}
.nav-links a:hover, .nav-links a.active { color: #ffffff; }
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }

/* --- HAMBURGER MENU --- */
.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 6px;
    z-index: 1001; 
}
.menu-toggle .bar {
    width: 30px;
    height: 3px;
    background-color: #fff;
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1), opacity 0.3s ease;
    border-radius: 3px;
}

/* --- 3. HERO SECTION --- */
.hero {
    min-height: 90vh; 
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    background: radial-gradient(circle at 50% 30%, #0d1a21 0%, #050505 100%);
    padding: clamp(120px, 15vw, 180px) 10% clamp(60px, 10vw, 100px); 
}
.hero-tagline {
    font-size: clamp(0.85rem, 1.5vw, 1rem); 
    letter-spacing: clamp(3px, 3vw, 8px); 
    text-transform: uppercase;
    font-weight: 800;
    display: block;
    margin-bottom: 15px;
    animation: fadeUp 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.hero h1 {
    /* Perfectly balanced Hero H1 for Mac & Windows */
    font-size: clamp(2.8rem, 6vw, 5rem) !important; 
    line-height: 1.1; 
    margin-top: 15px;    
    margin-bottom: 30px; 
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: -2px; 
    opacity: 0;
    animation: fadeUp 1s cubic-bezier(0.16, 1, 0.3, 1) 0.2s forwards;
}
.precision-line { display: block; margin-top: 15px; }
.gradient-text {
    background: var(--logo-gradient);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: liquidGradient 5s linear infinite;
}

.hero p {
    color: var(--text-dim);
    max-width: 800px; 
    /* Balanced Hero Paragraph */
    font-size: clamp(1.05rem, 1.5vw, 1.2rem); 
    line-height: 1.7;
    font-weight: 400;
    margin-bottom: 45px;
    opacity: 0;
    animation: fadeUp 1s cubic-bezier(0.16, 1, 0.3, 1) 0.4s forwards;
}
.hero .cta-btn {
    opacity: 0;
    animation: fadeUp 1s cubic-bezier(0.16, 1, 0.3, 1) 0.6s forwards;
}

/* --- 4. HOMEPAGE & SERVICES GRIDS --- */
.section-heading { text-align: center; margin-bottom: 50px; }
.section-heading span {
    font-size: 0.9rem; letter-spacing: 4px; text-transform: uppercase;
    color: #4facfe; font-weight: 700; display: block; margin-bottom: 10px;
}
.section-heading h2 {
    /* Balanced Section Heading */
    font-size: clamp(2.2rem, 4vw, 3.5rem) !important; 
    font-weight: 900; text-transform: uppercase;
    color: #fff; line-height: 1.2;
}
.section-heading p {
    color: var(--text-dim); max-width: 650px; margin: 15px auto 0;
    line-height: 1.6; font-size: clamp(1rem, 1.5vw, 1.1rem); 
}

.services-preview { padding: clamp(60px, 8vw, 100px) 8%; background: var(--dark-bg); }

.services-grid, .blog-grid {
    display: grid; 
    grid-template-columns: repeat(3, 1fr) !important; 
    gap: clamp(20px, 3vw, 40px); 
    padding-bottom: 50px;
    max-width: 1200px;
    margin: 0 auto;
}

.service-card, .service-box, .testimonial-card, .blog-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(0, 242, 254, 0.05);
    padding: clamp(20px, 3vw, 40px) clamp(15px, 2vw, 30px); 
    border-radius: 15px; text-align: left;
    transition: all 0.4s ease;
    overflow: hidden; position: relative; z-index: 1;
}
.service-card::before, .service-box::before, .testimonial-card::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0;
    background: radial-gradient(circle at top left, rgba(0, 242, 254, 0.08), transparent 50%);
    opacity: 0; z-index: -1; transition: opacity 0.4s ease;
}
.service-card:hover, .service-box:hover, .testimonial-card:hover {
    background: rgba(255, 255, 255, 0.03); border-color: #4facfe;
    transform: translateY(-8px); box-shadow: 0 15px 30px rgba(0, 242, 254, 0.1);
}
.service-card:hover::before, .service-box:hover::before, .testimonial-card:hover::before { opacity: 1; }

.service-box { text-align: center; }
.service-box h3, .service-card h3 {
    /* Balanced Card Titles */
    font-size: clamp(1.2rem, 2vw, 1.5rem); 
    font-weight: 900; text-transform: uppercase;
    letter-spacing: 1px; margin-bottom: 12px; color: #fff; transition: color 0.3s ease;
}
.service-box:hover h3, .service-card:hover h3 { color: #00f2fe; }
.service-box p, .service-card p { color: #b0b0b0; font-size: 1rem; line-height: 1.6; font-weight: 400; } 

/* --- 5. TESTIMONIALS SECTION --- */
.testimonials-section {
    padding: clamp(60px, 8vw, 100px) 8%;
    background: radial-gradient(circle at center, rgba(0, 242, 254, 0.05) 0%, var(--dark-bg) 70%);
}
.testimonial-grid {
    display: grid; grid-template-columns: repeat(3, 1fr); 
    gap: 30px; max-width: 1200px; margin: 0 auto;
}
.testimonial-card { display: flex; flex-direction: column; justify-content: space-between; }
.testimonial-card .quote {
    font-size: 1.1rem; color: #fff; line-height: 1.7; font-style: italic; margin-bottom: 25px; 
}
.testimonial-card h4 {
    color: #4facfe; font-size: 0.9rem; text-transform: uppercase; 
    letter-spacing: 1px; font-weight: 800;
}

/* --- 6. BUTTONS & CALLS TO ACTION --- */
.cta-btn, .btn {
    padding: 18px 45px; border-radius: 50px;
    background: var(--logo-gradient); background-size: 200% auto;
    color: #000; text-decoration: none; font-weight: 900; text-transform: uppercase;
    letter-spacing: 2px; display: inline-block; border: none;
    box-shadow: 0 8px 15px rgba(0, 242, 254, 0.2); transition: all 0.4s ease;
    font-size: 0.95rem; 
}
.cta-btn:hover, .btn:hover {
    transform: translateY(-3px); background-position: right center; 
    box-shadow: 0 15px 25px rgba(0, 242, 254, 0.3);
}
.final-cta {
    padding: clamp(80px, 10vw, 120px) 8%; text-align: center;
    background: linear-gradient(0deg, rgba(10,18,25,1) 0%, var(--dark-bg) 100%);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}
.final-cta h2 {
    font-size: clamp(2.2rem, 5vw, 3.5rem) !important; font-weight: 900; text-transform: uppercase; 
    color: #fff; margin-bottom: 15px;
}
.final-cta p { color: var(--text-dim); font-size: clamp(1.05rem, 1.5vw, 1.2rem); margin-bottom: 35px; } 

/* --- WHATSAPP FLOAT --- */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: clamp(55px, 5vw, 65px);
    height: clamp(55px, 5vw, 65px);
    z-index: 9999;
}

/* --- 7. FOOTER & SOCIALS --- */
.site-footer {
    background: #020202; padding: clamp(60px, 8vw, 100px) 8% 40px;
    border-top: 1px solid rgba(0, 242, 254, 0.1);
}
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1.5fr; gap: 40px; align-items: start; }
.f-logo { height: clamp(70px, 6vw, 100px); width: auto; margin-bottom: 15px; }
.footer-logo-col p { font-size: 0.95rem; line-height: 1.8; color: var(--text-dim); } 
.footer-social-col { text-align: center; }
.social-links { display: flex; justify-content: center; gap: 15px; margin-top: 15px; }
.social-links a { 
    display: flex; align-items: center; justify-content: center;
    width: 45px; height: 45px; border-radius: 50%; background: rgba(255, 255, 255, 0.05); 
    transition: all 0.4s ease; text-decoration: none;
    border: 1px solid rgba(255, 255, 255, 0.1); overflow: hidden;
}
.social-links a img { 
    width: 20px; height: 20px; object-fit: contain; filter: grayscale(1) invert(1); 
    opacity: 0.7; transition: all 0.3s ease; 
}
.social-links a:hover { 
    background: var(--logo-gradient); transform: translateY(-5px);
    border-color: transparent; box-shadow: 0 10px 20px rgba(0, 242, 254, 0.3);
}
.social-links a:hover img { filter: grayscale(0) invert(0); opacity: 1; }
.footer-contact-col { text-align: right; }
.footer-contact-col a { text-decoration: none; font-weight: 700; color: #4facfe; transition: color 0.3s ease; font-size: 0.95rem; } 
.footer-contact-col a:hover { color: #fff; }
.copyright { text-align: center; margin-top: 60px; font-size: 0.85rem; color: #ffffff; letter-spacing: 2px; text-transform: uppercase; opacity: 0.4; } 

/* =========================================================================
   8. MULTI-TIER RESPONSIVE BREAKPOINTS
   ========================================================================= */

/* TABLETS & IPADS (Max-width: 1024px) */
@media (max-width: 1024px) {
    .services-grid, .blog-grid, .testimonial-grid { 
        grid-template-columns: repeat(2, 1fr) !important; 
        gap: 25px; 
    }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .footer-contact-col { text-align: left; }
}

/* SMARTPHONES (Max-width: 992px) */
@media (max-width: 992px) {
    
    /* Mobile Menu Settings */
    .menu-toggle { display: flex; }
    .nav-links { 
        position: fixed; top: 0; right: -100%; height: 100vh; width: 260px; 
        background: rgba(10, 18, 25, 0.98); backdrop-filter: blur(25px) saturate(180%);
        -webkit-backdrop-filter: blur(25px) saturate(180%); border-left: 1px solid rgba(0, 242, 254, 0.2);
        display: flex; flex-direction: column; justify-content: center; align-items: center;
        transition: right 0.5s ease; box-shadow: -5px 0 20px rgba(0,0,0,0.5);
    }
    .nav-links.active { right: 0; }
    .menu-toggle.is-active .bar:nth-child(1) { transform: translateY(9px) rotate(45deg); }
    .menu-toggle.is-active .bar:nth-child(2) { opacity: 0; }
    .menu-toggle.is-active .bar:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }
    
    /* Force 1 Column on Phones to prevent squishing */
    .services-grid, .blog-grid, .testimonial-grid { 
        grid-template-columns: 1fr !important; 
        gap: 20px; 
    }
    
    /* Fix Hero layout */
    .hero { 
        display: flex; flex-direction: column; 
        padding: 140px 5% 60px;
    }
    
    .hero-tagline { margin-top: 60px; margin-bottom: 10px; order: 4; }
    .hero h1 { order: 1; }
    .hero p { order: 2; }
    .hero .cta-btn { order: 3; }
    
    .footer-grid { grid-template-columns: 1fr; text-align: center; gap: 30px; }
    .footer-contact-col { text-align: center; }
    .f-logo { margin: 0 auto 15px; }

    /* MOBILE FIX: Prevent WhatsApp button from overlapping Contact Form inputs */
    .contact-wrapper {
        padding-bottom: 120px !important; 
    }
    .contact-form {
        padding: 30px 20px 80px !important;
    }
}
