/* Modern enhancements for Geetham Technologies */

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* CSS Custom Properties */
:root {
    --primary: #d2b356;
    --primary-dark: #b8952e;
    --dark: #111111;
    --light: #f8f9fa;
    --text-muted: #666;
    --border-radius: 8px;
    --shadow: 0 4px 20px rgba(0,0,0,0.08);
    --shadow-hover: 0 8px 30px rgba(0,0,0,0.14);
    --transition: all 0.3s ease;
}

/* Remove page border (outdated decorative element) */
.page-border {
    display: none !important;
}

/* Remove wrapper margin that compensated for page border */
#wrapper {
    margin: 0 !important;
    padding: 0 !important;
}

/* Fix logo overflow: header is 71px, logo max-height was 80px */
#logo img {
    max-height: 56px;
}

/* Fix dark mode preloader flash — style.css hardcodes white */
[data-theme="dark"] #preloader {
    background-color: #121212;
}

/* ---- Banner ---- */

#banner {
    position: relative;
}

#banner::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(120deg, rgba(255,255,255,0.95) 0%, rgba(255,255,255,0.80) 50%, rgba(255,255,255,0.3) 100%);
    z-index: 0;
}

#banner-content {
    position: relative;
    z-index: 1;
}

#banner h1 {
    font-size: 52px;
    line-height: 1.15;
    font-weight: 800;
}

#banner h2 {
    font-size: 17px;
    line-height: 1.7;
    max-width: 520px;
}

/* Banner Buttons */
#banner .button {
    display: inline-block;
    margin: 10px 10px 0 0;
    padding: 14px 32px;
    border-radius: 4px;
    font-weight: 600;
    font-size: 15px;
    letter-spacing: 0.3px;
    transition: var(--transition);
    background: var(--primary);
    border-color: var(--primary);
    color: #fff !important;
}

#banner .button:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    color: #fff !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(210,179,86,0.4);
    opacity: 1;
}

#banner .button.btn-outline {
    background: transparent;
    border-color: var(--dark);
    color: var(--dark) !important;
}

#banner .button.btn-outline:hover {
    background: var(--dark);
    border-color: var(--dark);
    color: #fff !important;
    box-shadow: none;
    transform: translateY(-2px);
}

/* ---- Stats Bar ---- */

#stats {
    background: var(--dark);
    overflow: visible;
}

#stats .row {
    padding: 28px 0;
}

.stats-row {
    display: flex;
    justify-content: center;
    align-items: stretch;
    flex-wrap: wrap;
    padding: 0 20px;
}

.stat-item {
    text-align: center;
    padding: 16px 30px;
    border-right: 1px solid rgba(255,255,255,0.1);
    flex: 1;
    min-width: 140px;
}

.stat-item:last-child {
    border-right: none;
}

.stat-number {
    display: block;
    font-size: 34px;
    font-weight: 700;
    color: var(--primary);
    line-height: 1;
    margin-bottom: 8px;
    font-family: 'Work Sans', sans-serif;
}

.stat-label {
    display: block;
    font-size: 12px;
    color: rgba(255,255,255,0.6);
    text-transform: uppercase;
    letter-spacing: 1.2px;
    font-weight: 500;
}

/* ---- Service Cards ---- */

.service-card {
    background: #fff;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid #efefef;
    margin-bottom: 4px;
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
    border-color: var(--primary);
}

.service-card .icon {
    position: relative !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    background: rgba(210,179,86,0.12);
    border-radius: 50%;
    margin-bottom: 4px;
}

.service-card .icon i {
    font-size: 22px !important;
}

.service-card .icon-block-description {
    padding-top: 12px !important;
}

.service-card h4 {
    font-weight: 700;
    font-size: 16px;
    color: var(--dark);
    margin-bottom: 8px;
}

/* ---- Contact Section ---- */

#contact {
    background: var(--light);
}

#contact .section-heading {
    width: 100%;
    text-align: center;
    padding-bottom: 0;
}

.contact-grid {
    display: flex;
    gap: 24px;
    justify-content: center;
    align-items: stretch;
    flex-wrap: wrap;
    width: 100%;
    max-width: 1245px;
    margin: 0 auto;
    padding: 20px 20px 20px;
}

.contact-card {
    background: #fff;
    border-radius: var(--border-radius);
    padding: 36px 28px;
    text-align: center;
    box-shadow: var(--shadow);
    flex: 1;
    min-width: 220px;
    max-width: 300px;
    transition: var(--transition);
    border-top: 3px solid var(--primary);
}

.contact-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
}

.contact-icon {
    width: 64px;
    height: 64px;
    background: rgba(210,179,86,0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 18px;
}

.contact-icon i {
    color: var(--primary);
    font-size: 22px !important;
}

.contact-card h3 {
    font-size: 17px;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 12px;
    padding: 0;
}

.contact-card p {
    color: var(--text-muted);
    margin: 4px 0;
    font-size: 14px;
    line-height: 1.6;
}

.contact-card a {
    color: var(--text-muted);
    transition: var(--transition);
}

.contact-card a:hover {
    color: var(--primary);
}

/* ---- Clients ---- */

.client-logo-link {
    transition: var(--transition);
    opacity: 0.75;
}

.client-logo-link:hover {
    opacity: 1;
    transform: scale(1.05);
}

/* ---- Footer ---- */

#landing-footer {
    background: var(--dark);
}

#landing-footer .row {
    padding: 28px 0;
}

.footer-content {
    text-align: center;
    width: 100%;
    padding: 10px 20px !important;
}

.copyright {
    color: rgba(255,255,255,0.65) !important;
    font-size: 13px !important;
    margin: 0 0 6px 0;
}

.footer-tagline {
    color: rgba(255,255,255,0.35) !important;
    font-size: 12px !important;
    margin: 0;
    font-style: italic;
}

/* ---- Navigation active state ---- */
#header.nav-solid nav a.active {
    color: var(--primary);
    border-color: var(--primary) !important;
}

/* ==================== Theme Toggle Button ==================== */

#theme-toggle {
    float: right;
    margin-top: 19px;
    background: none;
    border: 1.5px solid rgba(17,17,17,0.25);
    border-radius: 20px;
    padding: 0 14px;
    cursor: pointer;
    font-size: 15px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: var(--transition);
    color: #111;
    font-family: 'Open Sans', sans-serif;
    outline: none;
    white-space: nowrap;
}

#theme-toggle:hover {
    border-color: var(--primary);
    color: var(--primary);
}

#header.nav-solid #theme-toggle {
    color: #333;
    border-color: rgba(0,0,0,0.2);
}

@media (max-width: 1024px) {
    #theme-toggle {
        float: none;
        position: absolute;
        right: 55px;
        top: 50%;
        transform: translateY(-50%);
        margin-top: 0;
        padding: 0 10px;
        height: 28px;
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    #theme-toggle {
        right: 50px;
    }
}

/* ==================== Dark Mode ==================== */

/* Smooth transitions on theme switch */
body,
h1, h2, h3, h4, h5, h6,
#header.nav-solid,
nav#nav-mobile ul,
nav#nav-mobile a,
.service-card,
.contact-card,
#contact,
#clients,
.section-title,
.section-subtitle {
    transition: background-color 0.3s ease, color 0.3s ease,
                border-color 0.3s ease, box-shadow 0.3s ease;
}

/* Body */
[data-theme="dark"] body {
    background: #121212;
    color: #cccccc;
}

/* Headings */
[data-theme="dark"] h1,
[data-theme="dark"] h2,
[data-theme="dark"] h3,
[data-theme="dark"] h4,
[data-theme="dark"] h5,
[data-theme="dark"] h6 {
    color: #e8e8e8;
}

/* Banner overlay — dark gradient instead of white */
[data-theme="dark"] #banner::before {
    background: linear-gradient(120deg, rgba(0,0,0,0.82) 0%, rgba(0,0,0,0.55) 50%, rgba(0,0,0,0.20) 100%);
}

[data-theme="dark"] #banner h1,
[data-theme="dark"] #banner h2 {
    color: #f0f0f0;
}

/* Navigation links over banner (transparent header state) */
[data-theme="dark"] #header nav a,
[data-theme="dark"] #header i,
[data-theme="dark"] #nav-trigger span {
    color: #e8e8e8;
}

/* Sticky/solid header */
[data-theme="dark"] #header.nav-solid {
    background: #1a1a1a;
    box-shadow: 0 2px 8px rgba(0,0,0,0.5);
}

[data-theme="dark"] #header.nav-solid a,
[data-theme="dark"] #header.nav-solid i {
    color: #e0e0e0;
}

/* Theme toggle in dark mode */
[data-theme="dark"] #theme-toggle {
    color: #e8e8e8;
    border-color: rgba(255,255,255,0.3);
}

[data-theme="dark"] #header.nav-solid #theme-toggle {
    color: #e0e0e0;
    border-color: rgba(255,255,255,0.25);
}

/* Mobile nav dropdown */
[data-theme="dark"] nav#nav-mobile ul {
    background-color: #1e1e1e;
    box-shadow: 0 5px 12px rgba(0,0,0,0.5);
}

[data-theme="dark"] nav#nav-mobile a {
    color: #e0e0e0;
}

[data-theme="dark"] nav#nav-mobile a:hover {
    background: #2a2a2a;
}

[data-theme="dark"] nav#nav-mobile li {
    border-color: #2e2e2e;
}

/* Section text */
[data-theme="dark"] .section-title {
    color: #e8e8e8;
}

[data-theme="dark"] .section-subtitle {
    color: #999;
}

/* Service cards */
[data-theme="dark"] .service-card {
    background: #1e1e1e;
    border-color: #2e2e2e;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

[data-theme="dark"] .service-card:hover {
    box-shadow: 0 8px 30px rgba(0,0,0,0.45);
    border-color: var(--primary);
}

[data-theme="dark"] .service-card h4 {
    color: #e8e8e8;
}

[data-theme="dark"] .service-card p {
    color: #999;
}

[data-theme="dark"] .service-card .icon {
    background: rgba(210,179,86,0.15);
}

/* Clients section */
[data-theme="dark"] #clients {
    background: #161616;
}

[data-theme="dark"] #clients img {
    filter: brightness(1.15);
}

/* Contact section */
[data-theme="dark"] #contact {
    background: #161616;
}

[data-theme="dark"] .contact-card {
    background: #1e1e1e;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

[data-theme="dark"] .contact-card:hover {
    box-shadow: 0 8px 30px rgba(0,0,0,0.45);
}

[data-theme="dark"] .contact-card h3 {
    color: #e8e8e8;
}

[data-theme="dark"] .contact-card p,
[data-theme="dark"] .contact-card a {
    color: #999;
}

[data-theme="dark"] .contact-card a:hover {
    color: var(--primary);
}

[data-theme="dark"] .contact-icon {
    background: rgba(210,179,86,0.15);
}

/* ---- Responsive ---- */

@media (max-width: 1024px) {
    #banner h1 {
        font-size: 42px;
    }
}

@media (max-width: 768px) {
    #stats .row {
        padding: 10px 0;
    }

    .stat-item {
        width: 50%;
        flex: none;
        border-right: none;
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }

    .stat-item:nth-child(odd) {
        border-right: 1px solid rgba(255,255,255,0.1);
    }

    .stat-item:nth-last-child(-n+2) {
        border-bottom: none;
    }

    .contact-grid {
        flex-direction: column;
        align-items: center;
    }

    .contact-card {
        max-width: 100%;
        width: 100%;
    }
}

@media (max-width: 480px) {
    #banner h1 {
        font-size: 32px;
        line-height: 1.2;
    }

    #banner h2 {
        font-size: 15px;
    }

    #banner .button {
        display: block;
        width: 100%;
        text-align: center;
        margin: 8px 0;
    }

    .stat-item {
        width: 100%;
        border-right: none;
    }

    .stat-number {
        font-size: 28px;
    }

    .service-card {
        width: 100% !important;
    }
}
