﻿/*html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
}

body {
  margin-bottom: 60px;
}*/


/* ===== RESPONSIVE DESIGN & CUSTOM CSS ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    width: 100%;
    overflow-x: hidden;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: #333;
}

/* global heading scale */
h1 {
    font-size: 2.5rem !important; /* base size for large screens */
    line-height: 1.2;
}

.hero-home p {
    font-size: 20px !important;
    color: #fff !important;
}

/* hero spacing is now controlled with Tailwind classes on the section element */
/* previous rules were removed to avoid conflicts and simplify responsive behavior */

/* ===== NAVIGATION STYLES ===== */
nav {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
}

    nav.bg-white {
        background-color: #fdf1f1;
    }

.th-color {
    color: #d82d2d;
}

.brand-logo img {
    max-width: 150px;
    height: auto;
    transition: transform 0.3s ease;
}

.hero-home p {
    font-size: 16px !important;
    color: #fff !important;
    line-height: 22px;
}

P {
    font-weight: 600;
}

.text-4xl {
    font-size: 3.25rem !important;
    line-height: 4rem !important;
}

footer p, .brand-bg-primary p {
    font-size: 16px !important;
    color: #fff !important;
    line-height: 22px;
}

.brand-logo img:hover {
    transform: scale(1.05);
}

@media (max-width: 768px) {
    .brand-logo img {
        max-width: 120px;
    }

    nav {
        padding: 0.5rem 0;
    }

    p {
        font-size: 16px;
        line-height: 1.8;
        color: #555;
    }

    .hero-bg {
        background-attachment: scroll;
    }
    /* hero spacing handled via Tailwind in markup */
}

/* ===== HERO SECTION ===== */
.hero-bg {
    background-image: url('./images/dhava-bg.webp');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    position: relative;
}

    .hero-bg::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: linear-gradient(135deg, rgba(216, 45, 45, 0.3), rgba(147, 51, 234, 0.3));
        z-index: 1;
    }

    .hero-bg > * {
        position: relative;
        z-index: 2;
    }

img.hero-img {
    max-width: 540px;
    width: 100%;
    height: auto;
    border-radius: 20px;
    filter: drop-shadow(0 20px 25px rgba(0, 0, 0, 0.2));
    transition: transform 0.5s ease;
}

    img.hero-img:hover {
        transform: translateY(-10px);
    }

@media (max-width: 1024px) {
    img.hero-img {
        max-width: 400px;
    }

    h1 {
        font-size: 2rem !important;
    }
}

@media (max-width: 768px) {
    img.hero-img {
        max-width: 300px !important;
    }

    h1 {
        font-size: 1.7rem !important;
    }
}

@media (max-width: 480px) {
    img.hero-img {
        max-width: 85vw !important;
        width: 85vw !important;
    }

    h1 {
        font-size: 1.5rem !important;
    }
}

/* ===== ABOUT SECTION ===== */
img.about-us {
    max-height: 500px;
    height: auto;
    border-radius: 30px;
    margin: auto;
    transition: transform 0.5s ease;
}

    img.about-us:hover {
        transform: scale(1.02);
    }

@media (max-width: 768px) {
    img.about-us {
        max-height: 350px;
        border-radius: 20px;
    }
}

@media (max-width: 480px) {
    img.about-us {
        border-radius: 15px;
        margin-top: 20px;
        ;
    }
}

/* ===== FEATURE CARDS ===== */
.feature-card {
    background: #f9fafb;
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -2px rgba(0,0,0,0.05);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid #d82d2d40;
    text-align: center;
}

    .feature-card:hover {
        transform: translateY(-8px);
        box-shadow: 0 20px 35px rgba(216, 45, 45, 0.15);
        border-color: #d82d2d;
        background: linear-gradient(135deg, #f9fafb 0%, #fff5f5 100%);
    }

    .feature-card svg {
        transition: all 0.3s ease;
    }

    .feature-card:hover svg {
        transform: scale(1.1) rotate(5deg);
    }

@media (max-width: 768px) {
    .feature-card {
        padding: 1.5rem;
    }

        .feature-card h3 {
            font-size: 1rem;
        }
}

@media (max-width: 480px) {
    .feature-card {
        padding: 1rem;
    }

        .feature-card p {
            font-size: 0.85rem;
        }
}

/* ===== FOOTER ===== */
footer {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
}

    footer a.brand-logo {
        display: flex;
        justify-content: center;
        margin-bottom: 10px;
    }

        footer a.brand-logo img {
            max-width: 120px;
        }

    footer nav a {
        display: inline-block;
        margin: 0.5rem 0;
        transition: all 0.3s ease;
    }

        footer nav a:hover {
            color: #d82d2d;
            transform: translateX(5px);
        }

@media (max-width: 768px) {
    footer nav {
        display: flex;
        flex-direction: column;
        gap: 0;
    }
}

/* ===== SCROLL ANIMATIONS ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes zoomIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

[data-aos="fade-up"].aos-animate {
    animation: fadeInUp 1s ease-out;
}

[data-aos="fade-down"].aos-animate {
    animation: fadeInUp 1s ease-out reverse;
}

[data-aos="fade-right"].aos-animate {
    animation: slideInRight 1s ease-out;
}

[data-aos="fade-left"].aos-animate {
    animation: slideInLeft 1s ease-out;
}

[data-aos="zoom-in"].aos-animate {
    animation: zoomIn 1s ease-out;
}

/* ===== BUTTONS & LINKS ===== */
a.transition, button {
    position: relative;
    overflow: hidden;
}

    a.transition::before, button::before {
        content: '';
        position: absolute;
        top: 50%;
        left: 50%;
        width: 0;
        height: 0;
        border-radius: 50%;
        background: rgba(255, 255, 255, 0.3);
        transform: translate(-50%, -50%);
        transition: width 0.6s, height 0.6s;
    }

    a.transition:hover::before, button:hover::before {
        width: 300px;
        height: 300px;
    }

/* ===== SECTION SPACING ===== */
section {
    padding-top: 3rem;
    padding-bottom: 3rem;
}

@media (max-width: 768px) {
    section {
        padding-top: 2rem;
        padding-bottom: 2rem;
    }
}

@media (max-width: 480px) {
    section {
        padding-top: 1.5rem;
        padding-bottom: 1.5rem;
    }
}

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4, h5, h6 {
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.5px;
}

h1 {
    font-size: 3.5rem;
}

@media (max-width: 1024px) {
    h1 {
        font-size: 2.5rem;
    }
}

@media (max-width: 768px) {
    h1 {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 1.5rem;
    }
}

h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
}

@media (max-width: 768px) {
    h2 {
        font-size: 1.875rem;
        margin-bottom: 1.5rem;
    }
}

@media (max-width: 480px) {
    h2 {
        font-size: 1.5rem;
        margin-bottom: 1rem;
    }
}

p {
    line-height: 1.8;
    color: #555;
}

/* ===== UTILITY CLASSES ===== */
.container {
    max-width: 1120px !important;
    margin: 0 auto;
   /* padding: 0 1rem;*/
    width: 100%;
}

@media (max-width: 1024px) {
    .container {
        max-width: 960px;
    }
}

@media (max-width: 768px) {
    .container {
        max-width: 100%;
        padding: 0 1rem;
        margin: 0 auto;
    }
}

@media (max-width: 480px) {
    .container {
        max-width: 100%;
        padding: 0 0.75rem;
        margin: 0 auto;
        overflow: hidden;
    }
}

/* ===== GRADIENT BACKGROUNDS ===== */
.bg-gradient-primary {
    background: linear-gradient(135deg, #d82d2d 0%, #b82e2e 100%);
}

.text-gradient {
    background: linear-gradient(135deg, #d82d2d 0%, #6366f1 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ===== SHADOWS ===== */
.shadow-sm {
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.shadow-md {
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.shadow-lg {
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
}

.shadow-xl {
    box-shadow: 0 20px 25px rgba(0, 0, 0, 0.1);
}

/* ===== LIST STYLES ===== */
ul {
    list-style: none;
}

    ul li::before {
        content: "●";
        color: #d82d2d;
        font-weight: bold;
        margin-right: 0.5rem;
    }

/* ===== GRID RESPONSIVENESS ===== */
.grid {
    display: grid;
    gap: 2rem;
}


@media (max-width: 1500px) {

    .md\:text-6xl {
        font-size: 2.4rem !important;
        line-height: 1.3 !important;
    }

    img.hero-img {
        max-width: 395px;
    }
}


@media (max-width: 768px) {
    .grid {
        gap: 1.5rem;
    }

        .grid.md\:grid-cols-3 {
            grid-template-columns: repeat(2, 1fr);
        }

        .grid.lg\:grid-cols-4 {
            grid-template-columns: repeat(2, 1fr);
        }

    .md\:text-6xl {
        font-size: 1.7rem !important;
        line-height: 1.2 !important;
    }


    .container.mx-auto.px-6.flex.flex-col.lg\:flex-row.items-center.justify-between {
        padding-top: 28px !important;
    }
}

@media (max-width: 480px) {
    .grid {
        gap: 1rem;
        grid-template-columns: 1fr !important;
    }
}

/* ===== FOCUS STATES ===== */
a:focus, button:focus {
    outline: 2px solid #d82d2d;
    outline-offset: 2px;
}

/* ===== ACCESSIBILITY ===== */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

