/* 
    Design System for Digiactiv
    Colors: Blue, White, Orange
    Typography: Outfit & Inter
*/

:root {
    --primary-blue: #0a58ca;
    --deep-blue: #052c65;
    --accent-orange: #fb8500;
    --accent-orange-hover: #e67e00;
    --white: #ffffff;
    --light-gray: #f8f9fa;
    --text-dark: #212529;
    --text-muted: #6c757d;
    --card-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    --transition: all 0.3s ease;
}

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

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    color: var(--deep-blue);
}

a {
    text-decoration: none;
    transition: var(--transition);
}

ul {
    list-style: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
    border: none;
}

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

.btn-primary:hover {
    background: var(--accent-orange-hover);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(251, 133, 0, 0.3);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary-blue);
    color: var(--primary-blue);
}

.btn-outline:hover {
    background: var(--primary-blue);
    color: var(--white);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(10, 88, 202, 0.3);
}

/* Floating Animation */
@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}

.floating {
    animation: float 6s ease-in-out infinite;
}

/* Header & Nav */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: transparent;
    transition: var(--transition);
    padding: 20px 0;
}

header.scrolled {
    background: var(--white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    padding: 10px 0;
}

header.menu-open {
    background: transparent !important;
    box-shadow: none !important;
}

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

.logo {
    font-family: 'Outfit', sans-serif;
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--primary-blue);
    display: flex;
    align-items: center;
}

.logo-img {
    height: 55px;
    width: auto;
    object-fit: contain;
    margin-right: 12px; /* Controlled spacing instead of flex gap */
    transition: var(--transition);
}

.logo:hover .logo-img {
    transform: scale(1.1) rotate(5deg);
}

.logo span {
    color: var(--accent-orange);
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a {
    color: var(--text-dark);
    font-weight: 500;
    padding: 5px 0;
    position: relative;
    transition: var(--transition);
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--primary-blue);
}

.nav-links a.active {
    font-weight: 700;
}

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

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

.nav-cta {
    display: flex;
    align-items: center;
    gap: 15px;
}

.menu-btn {
    display: none;
    font-size: 1.5rem;
    color: var(--primary-blue);
    cursor: pointer;
}

/* Hero Section */
.hero {
    position: relative;
    padding: 180px 0 100px; 
    background: #f4f8fb; /* Lightened base background */
    /* Balanced overlay: light and clean but with subtle depth */
    background-image: 
        linear-gradient(to right, rgba(255, 255, 255, 0.7) 20%, rgba(255, 255, 255, 0.3) 50%, rgba(255, 255, 255, 0) 100%), 
        linear-gradient(rgba(0, 50, 150, 0.01), rgba(0, 50, 150, 0.01)), 
        url('assets/hero-bg.jpg');
    background-size: cover, cover, auto 100%;
    background-position: center, center, right center;
    background-repeat: no-repeat;
    height: 100vh;
    width: 100%;
    display: flex;
    align-items: flex-start; 
    justify-content: flex-start;
    overflow: hidden;
}

.hero::after {
    content: '\f107';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    color: var(--primary-blue);
    font-size: 2rem;
    animation: bounce 2s infinite;
    cursor: pointer;
    z-index: 5;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {transform: translateX(-50%) translateY(0);}
    40% {transform: translateX(-50%) translateY(-10px);}
    60% {transform: translateX(-50%) translateY(-5px);}
}

.hero-content {
    max-width: 650px;
    text-align: left;
    position: relative;
    z-index: 2;
    margin-left: 0; 
}

.hero h1 {
    font-size: 3.5rem;
    line-height: 1.1;
    margin-bottom: 25px;
    letter-spacing: -1px;
}

.hero h1 span {
    color: var(--primary-blue);
    background: linear-gradient(to right, var(--primary-blue), var(--accent-orange));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    font-size: 1rem;
    color: var(--text-muted);
    margin-bottom: 40px;
    max-width: 500px;
}

.hero-content-wrap {
    margin-left: 15%; /* Further increased space on the left as requested */
    margin-right: auto;
    display: flex;
    justify-content: flex-start;
}

.hero-btns {
    display: flex;
    justify-content: flex-start;
    gap: 20px;
}

@media (max-width: 992px) {
    .hero-content-wrap {
        margin-left: 0;
        justify-content: center;
    }
}

/* Subpage Hero Styles with Stylish Graphics */
.about-hero, .services-hero, .contact-hero {
    position: relative;
    padding: 180px 0 100px;
    background: 
        radial-gradient(circle at 2px 2px, rgba(10, 88, 202, 0.05) 1px, transparent 0),
        linear-gradient(135deg, #f4f8fb 0%, #ffffff 100%);
    background-size: 30px 30px, 100% 100%;
    text-align: center;
    overflow: hidden;
}

.about-hero::before, .services-hero::before, .contact-hero::before,
.about-hero::after, .services-hero::after, .contact-hero::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    z-index: 1;
    opacity: 0.15;
    animation: blobFloat 15s infinite alternate;
}

.about-hero::before, .services-hero::before, .contact-hero::before {
    width: 400px;
    height: 400px;
    background: var(--primary-blue);
    top: -100px;
    left: -100px;
}

.about-hero::after, .services-hero::after, .contact-hero::after {
    width: 300px;
    height: 300px;
    background: var(--accent-orange);
    bottom: -50px;
    right: -50px;
    animation-delay: -5s;
}

@keyframes blobFloat {
    0% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(30px, -50px) scale(1.1); }
    66% { transform: translate(-20px, 20px) scale(0.9); }
    100% { transform: translate(0, 0) scale(1); }
}

.about-hero .container, .services-hero .container, .contact-hero .container {
    position: relative;
    z-index: 2;
}

.about-hero h1, .services-hero h1, .contact-hero h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
}

.about-hero p, .services-hero p, .contact-hero p {
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.2rem;
    color: var(--text-muted);
}

/* Distinct Hero Graphics */
.hero-graphic {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 500px;
    height: auto;
    z-index: 1;
    opacity: 0.12; /* Subtle but distinct behind text */
    pointer-events: none;
    user-select: none;
    transition: var(--transition);
}

.about-hero:hover .hero-graphic, 
.services-hero:hover .hero-graphic, 
.contact-hero:hover .hero-graphic {
    transform: translate(-50%, -55%);
    opacity: 0.18;
}

/* Floating 3D Icons for Contact Page */
.contact-graphics {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 1;
}

.floating-icon {
    position: absolute;
    width: 120px;
    height: auto;
    filter: drop-shadow(0 15px 30px rgba(0,0,0,0.1));
    opacity: 0.6;
    animation: iconFloat 8s infinite ease-in-out;
}

.mail-icon {
    top: 20%;
    left: 15%;
    width: 140px;
    animation-delay: -1s;
}

.phone-icon {
    top: 50%;
    right: 15%;
    width: 130px;
    animation-delay: -4s;
}

.map-icon {
    bottom: 15%;
    left: 25%;
    width: 110px;
    animation-delay: -2s;
}

@keyframes iconFloat {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(5deg); }
}

@media (max-width: 768px) {
    .floating-icon {
        width: 80px;
        opacity: 0.3;
    }
}

/* Services Section */
.section {
    padding: 25px 0; /* Ultra-minimized from 40px */
}

.section-header {
    text-align: center;
    margin-bottom: 15px; /* Ultra-minimized from 30px */
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.section-header p {
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px; /* Reduced from 30px */
}

.service-card {
    background: var(--white);
    padding: 30px; /* Reduced from 40px */
    border-radius: 20px;
    box-shadow: var(--card-shadow);
    transition: var(--transition);
    border: 1px solid rgba(0,0,0,0.03);
}

.service-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary-blue);
}

.service-icon {
    width: 75px;
    height: 75px;
    background: #eef4ff; /* Flat solid light blue */
    color: var(--primary-blue);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 22px;
    font-size: 2rem;
    margin-bottom: 25px;
    position: relative;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 3px solid #ffffff;
    box-shadow: 5px 5px 0px rgba(10, 88, 202, 0.1); /* 2D hard shadow */
}

.service-card:hover .service-icon {
    background: var(--accent-orange);
    color: var(--white);
    transform: scale(1.1) translateY(-5px);
    box-shadow: 8px 8px 0px rgba(251, 133, 0, 0.2); /* 2D orange shadow */
}

/* 2D Decorative Element */
.service-icon::after {
    content: '';
    position: absolute;
    width: 25px;
    height: 25px;
    background: rgba(251, 133, 0, 0.2);
    border-radius: 50%;
    top: -10px;
    left: -10px;
    z-index: -1;
    transition: var(--transition);
}

.service-card:hover .service-icon::after {
    background: rgba(10, 88, 202, 0.2);
    transform: scale(2);
}

.service-card h3 {
    margin-bottom: 15px;
}

/* Why Choose Us */
.why-us {
    background: var(--light-gray);
}

.why-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.why-item {
    display: flex;
    gap: 15px;
}

.why-item i {
    color: var(--accent-orange);
    font-size: 1.5rem;
    margin-top: 5px;
}

/* Results / Case Studies */
.results-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    text-align: center;
    gap: 20px;
}

.result-item h3 {
    font-size: 2.5rem;
    color: var(--primary-blue);
    margin-bottom: 5px;
}

.result-item p {
    color: var(--text-muted);
    font-weight: 500;
}

/* Testimonials */
.testimonials {
    background: var(--light-gray);
}

.testimonial-card {
    background: var(--white);
    padding: 30px;
    border-radius: 20px;
    box-shadow: var(--card-shadow);
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: 20px;
}

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

.testimonial-author h4 {
    margin: 0;
    font-size: 1.1rem;
}

.testimonial-author span {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* CTA Banner */
.cta-banner {
    padding: 80px 0;
    background: linear-gradient(rgba(10, 88, 202, 0.7), rgba(10, 88, 202, 0.7)), url('https://images.unsplash.com/photo-1557804506-669a67965ba0?ixlib=rb-1.2.1&auto=format&fit=crop&w=1920&q=80');
    background-size: cover;
    background-position: center;
    color: var(--white);
    text-align: center;
}

.cta-banner h2 {
    color: var(--white);
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.cta-banner p {
    margin-bottom: 30px;
    font-size: 1.2rem;
    opacity: 0.9;
}

/* Footer */
footer {
    padding: 80px 0 30px;
    background: var(--deep-blue);
    color: rgba(255,255,255,0.7);
}

footer h3, footer h4 {
    color: var(--white);
    margin-bottom: 25px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 50px;
    margin-bottom: 50px;
}

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

.footer-links a {
    color: rgba(255,255,255,0.7);
}

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

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: var(--white);
}

.social-links a:hover {
    background: var(--primary-blue);
}

.copyright {
    padding-top: 30px;
    border-top: 1px solid rgba(255,255,255,0.1);
    text-align: center;
    font-size: 0.9rem;
}

/* Animations */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

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

/* Floating WhatsApp Button */
.whatsapp-fab {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: #25d366;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    z-index: 1000;
    transition: var(--transition);
    text-decoration: none;
}

.whatsapp-fab:hover {
    background: #128c7e;
    transform: scale(1.1) rotate(15deg);
    color: white;
}

.whatsapp-fab::before {
    content: 'Chat with us';
    position: absolute;
    right: 70px;
    background: white;
    color: #333;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    white-space: nowrap;
}

.whatsapp-fab:hover::before {
    opacity: 1;
    visibility: visible;
    right: 80px;
}

/* Mobile Responsiveness */
@media (max-width: 992px) {
    .container {
        padding: 0 15px;
    }
    .hero {
        padding: 160px 0 300px;
        background-position: center bottom;
        background-image: 
            linear-gradient(to bottom, rgba(255, 255, 255, 0.6) 20%, rgba(255, 255, 255, 0.3) 50%, rgba(255, 255, 255, 0) 100%), 
            url('assets/hero-bg.jpg');
        background-size: cover, cover;
        min-height: auto;
    }
    .hero-content {
        max-width: 100%;
        text-align: center;
    }
    .hero-btns {
        justify-content: center;
    }
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
    .results-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    body {
        text-align: left; /* Reset to left for better readability */
        font-size: 15px;
        line-height: 1.6;
    }
    header {
        padding: 15px 0;
    }
    h1 { font-size: 2.5rem !important; }
    h2 { font-size: 2rem !important; }
    h3 { font-size: 1.6rem !important; }
    p { margin-bottom: 1.2rem; }
    
    .hero {
        padding: 120px 0 180px;
        background-position: 80% center;
    }
    .hero h1 {
        font-size: 2.8rem;
    }
    .hero-btns {
        gap: 12px;
        flex-direction: column;
        align-items: center;
        margin-top: 120px;
    }
    .hero-btns .btn {
        width: 100%;
        max-width: 250px;
        padding: 14px 30px !important;
        font-size: 1rem !important;
    }
    .btn-lg {
        padding: 14px 30px !important;
        font-size: 1rem !important;
    }
    
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 75%;
        height: 60vh; /* Reduced from down as requested */
        background: rgba(255, 255, 255, 0.5); /* 50% transparency */
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 30px;
        transition: 0.5s cubic-bezier(0.77, 0.2, 0.05, 1.0);
        z-index: 1001;
        display: flex;
        padding: 40px 20px;
        box-shadow: -10px 10px 30px rgba(0,0,0,0.1);
        border-radius: 0 0 0 40px; /* Rounded only at the bottom left corner */
    }
    .nav-links.active {
        right: 0;
    }
    .nav-links li {
        margin: 0;
        opacity: 0;
        transform: translateY(20px);
        transition: 0.4s ease forwards;
    }
    .nav-links.active li {
        opacity: 1;
        transform: translateY(0);
    }
    /* Staggered animation for menu items */
    .nav-links.active li:nth-child(1) { transition-delay: 0.1s; }
    .nav-links.active li:nth-child(2) { transition-delay: 0.2s; }
    .nav-links.active li:nth-child(3) { transition-delay: 0.3s; }
    .nav-links.active li:nth-child(4) { transition-delay: 0.4s; }

    .nav-links a {
        font-size: 1.8rem;
        font-weight: 700;
        color: var(--deep-blue);
    }
    
    .nav-cta-mobile {
        display: flex;
        flex-direction: column;
        gap: 15px;
        margin-top: 20px;
        width: 80%;
        opacity: 0;
        transform: translateY(20px);
        transition: 0.4s ease 0.5s forwards;
    }
    .nav-links.active .nav-cta-mobile {
        opacity: 1;
        transform: translateY(0);
    }
    
    .nav-cta {
        display: none;
    }
    .menu-btn {
        display: block;
        z-index: 1002;
        font-size: 1.8rem;
    }
    
    .section {
        padding: 60px 0;
    }
    .section-header h2 {
        font-size: 2.2rem;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .results-grid {
        grid-template-columns: 1fr 1fr;
        gap: 15px;
    }
    .result-item h3 {
        font-size: 2rem;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .footer-col {
        text-align: center;
    }
    .social-links {
        justify-content: center;
    }
    
    .whatsapp-fab {
        bottom: 20px;
        right: 20px;
        width: 50px;
        height: 50px;
        font-size: 24px;
    }
}

@media (max-width: 480px) {
    h1 { font-size: 2.2rem !important; }
    h2 { font-size: 1.8rem !important; }
    .hero {
        padding: 100px 0 150px;
    }
    .hero h1 {
        font-size: 2.4rem;
    }
}
