/* Base Reset & Typography */
:root {
    /* Color Palette */
    --color-primary: #0f172a;
    /* Corporate Navy */
    --color-primary-light: #1e293b;
    --color-accent: #64748b;
    /* Cool Slate */
    --color-gold: #C5A572;
    /* Premium Gold - Keeping for accent */
    --color-bg-light: #f8fafc;
    --color-bg-offwhite: #f1f5f9;
    --color-text-main: #334155;
    --color-text-light: #64748b;
    --color-white: #FFFFFF;

    --font-heading: 'Playfair Display', serif;
    --font-body: 'Outfit', sans-serif;

    --transition-standard: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    color: var(--color-text-main);
    background-color: var(--color-bg-light);
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4 {
    font-family: var(--font-heading);
    color: var(--color-primary);
    font-weight: 600;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-standard);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

/* Utilities */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

.text-center {
    text-align: center;
}

/* Header */
#main-header {
    background-color: var(--color-white);
    padding: 1.2rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.05);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.menu-toggle {
    display: none;
    font-size: 1.5rem;
    color: var(--color-primary);
    cursor: pointer;
}

.logo a {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--color-primary);
    letter-spacing: -0.5px;
}

nav ul {
    display: flex;
    align-items: center;
    gap: 2rem;
}

nav a {
    font-weight: 500;
    color: var(--color-text-main);
    font-size: 0.95rem;
}

nav a:hover {
    color: var(--color-gold);
}

/* Buttons */
.btn-secondary {
    background-color: transparent;
    color: var(--color-white);
    padding: 0.8rem 2rem;
    border-radius: 4px;
    font-weight: 500;
    border: 1px solid var(--color-white);
}

.btn-secondary:hover {
    background-color: var(--color-white);
    color: var(--color-primary);
}

/* Hero Section */
#hero {
    height: 100vh;
    background-image: url('https://images.unsplash.com/photo-1486406146926-c627a92ad1ab?auto=format&fit=crop&w=1600&q=80');
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: center;
    margin-top: 60px;
    /* Header offset */
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.75), rgba(30, 41, 59, 0.5));
}

.hero-content {
    position: relative;
    z-index: 2;
    color: var(--color-white);
    max-width: 800px;
}

.hero-content h1 {
    color: var(--color-white);
    font-size: 3.5rem;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.hero-content .accent-text {
    color: var(--color-gold);
    font-style: italic;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 2.5rem;
    opacity: 0.9;
    max-width: 600px;
}

.cta-group {
    display: flex;
    gap: 1rem;
}

/* About Section */
#about {
    padding: 6rem 0 3rem 0;
    background-color: var(--color-white);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-text p {
    color: var(--color-text-light);
    margin-bottom: 1.5rem;
    font-size: 1.05rem;
}

.feature-list li {
    margin-bottom: 0.8rem;
    color: var(--color-primary);
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 10px;
}

.feature-list .icon {
    color: var(--color-gold);
    font-weight: bold;
}

.about-image {
    position: relative;
}

.about-image img {
    border-radius: 8px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.experience-badge {
    position: absolute;
    bottom: -30px;
    left: -30px;
    background-color: var(--color-gold);
    padding: 2rem;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 120px;
    height: 120px;
    color: var(--color-white);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
    z-index: 10;
}

.experience-badge .number {
    font-size: 1.8rem;
    font-weight: 700;
    line-height: 1;
}

.experience-badge .text {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Stats Section */
#stats {
    background-color: var(--color-bg-offwhite);
    padding: 4rem 0;
    border-top: 1px solid #e0e0e0;
    border-bottom: 1px solid #e0e0e0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    text-align: center;
}

.stat-item h3 {
    font-size: 3rem;
    color: var(--color-primary);
    margin-bottom: 0.5rem;
}

.stat-item p {
    color: var(--color-text-light);
    font-weight: 500;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
}

/* Solutions Section */
#solutions {
    padding: 6rem 0;
    background-color: var(--color-bg-light);
}

.section-header {
    margin-bottom: 4rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.service-card {
    background: var(--color-white);
    border-radius: 8px;
    overflow: hidden;
    transition: var(--transition-standard);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.03);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.08);
}

.card-image {
    height: 220px;
    overflow: hidden;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-standard);
}

.service-card:hover .card-image img {
    transform: scale(1.05);
}

.card-content {
    padding: 2rem;
}

.card-content h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--color-primary);
}

.card-content p {
    color: var(--color-text-light);
    font-size: 0.95rem;
}

/* Visual Break */
#visual-break {
    padding: 6rem 0;
    background: var(--color-primary);
    color: var(--color-white);
}

#visual-break h2 {
    color: var(--color-white);
    font-style: italic;
    opacity: 0.9;
}

/* New Contact Section */
#contact-us {
    padding: 6rem 0;
    background-color: var(--color-white);
}

.contact-grid {
    display: flex;
    justify-content: center;
    max-width: 800px;
    margin: 0 auto;
}

.contact-info {
    text-align: center;
    width: 100%;
}

.contact-info>p {
    margin-bottom: 3rem;
    color: var(--color-text-light);
    font-size: 1.1rem;
}

.contact-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 2rem;
    padding: 1rem;
    background: var(--color-bg-light);
    border-radius: 8px;
}

.contact-item i {
    font-size: 1.5rem;
    color: var(--color-gold);
    color: var(--color-gold);
    margin-bottom: 0.5rem;
    background: var(--color-bg-light);
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.contact-item h3 {
    font-size: 1.1rem;
    margin-bottom: 0.3rem;
}

.contact-item p {
    color: var(--color-text-light);
    font-size: 1rem;
}

.map-container {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    height: 100%;
}

.map-container iframe {
    min-height: 400px;
    height: 100%;
}

@media (max-width: 900px) {
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .contact-info {
        padding-right: 0;
    }
}

/* Partners Section */
#partners {
    padding: 4rem 0 6rem 0;
    background-color: var(--color-white);
}

.partners-carousel {
    margin-top: 3rem;
}

.partner-item {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    border: 1px solid #e0e0e0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    overflow: hidden;
    transition: var(--transition-standard);
    background-color: #fff;
    cursor: pointer;
    margin: 0 auto;
    /* Center in owl item */
}

.partner-item:hover {
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
    transform: translateY(-5px);
    border-color: var(--color-gold);
}

.partner-item img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: var(--transition-standard);
}

@media (max-width: 600px) {
    .partner-item {
        width: 100px;
        height: 100px;
        padding: 1rem;
    }

    .partners-grid {
        gap: 1.5rem;
    }
}

/* Footer */
footer {
    background-color: var(--color-primary);
    color: #e0e0e0;
    padding: 4rem 0 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-col h4 {
    color: var(--color-white);
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
}

.footer-col ul li {
    margin-bottom: 0.8rem;
}

.footer-col ul li a {
    color: #a0a0a0;
    font-size: 0.9rem;
}

.footer-col ul li a:hover {
    color: var(--color-gold);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
    font-size: 0.85rem;
    color: #888;
}

/* Social Media Icons Styling */
.social-links {
    display: flex;
    gap: 1.5rem;
    margin-top: 1rem;
}

.social-links a {
    color: #a0a0a0;
    font-size: 1.5rem;
    transition: var(--transition-standard);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.05);
}

.social-links a:hover {
    color: var(--color-gold);
    background-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-3px);
}

/* Responsive */
@media (max-width: 900px) {
    .hero-content h1 {
        font-size: 2.8rem;
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .about-image {
        order: -1;
    }

    .stats-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 600px) {
    .header-content nav {
        display: none;
        /* Todo: Add mobile menu toggle for further iterations */
    }

    .hero-content h1 {
        font-size: 2.2rem;
    }

    .cta-group {
        flex-direction: column;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

/* Simplified Hierarchy */
.hierarchy-simple {
    margin-bottom: 4rem;
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.hierarchy-group h2 {
    font-size: 2.5rem;
    margin-bottom: 0.2rem;
    color: var(--color-primary);
}

.hierarchy-logo {
    max-width: 120px;
    margin: 0 auto;
}

.hierarchy-label {
    display: inline-block;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--color-gold);
    font-weight: 500;
}

/* Mobile Layout Adjustments */
@media (max-width: 768px) {

    /* Reduce top spacing above "Onlinemalls" heading */
    #partners {
        padding-top: 1.5rem;
    }

    /* Reduce spacing between brand logos by increasing item size relative to the container */
    .partner-item {
        width: 130px;
        height: 130px;
    }

    /* Center social media icons in footer */
    .social-links {
        justify-content: center;
    }

    /* Mobile Menu Styles */
    .menu-toggle {
        display: block;
    }

    .header-content nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--color-white);
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
        padding: 1rem 0;
        border-top: 1px solid #f1f1f1;
    }

    .header-content nav.active {
        display: block;
        animation: slideDown 0.3s ease forwards;
    }

    .header-content nav ul {
        flex-direction: column;
        gap: 0;
    }

    .header-content nav ul li {
        width: 100%;
        text-align: center;
    }

    .header-content nav ul li a {
        display: block;
        padding: 1rem;
    }

    .header-content nav ul li a:hover {
        background-color: var(--color-bg-light);
    }

    /* Heading Adjustments */
    h1 {
        font-size: 2.2rem;
    }

    h2,
    .section-title {
        font-size: 32px;
    }

    /* Fix specificity issue for Onlinemalls heading in Partners section */
    .hierarchy-group h2 {
        font-size: 32px;
    }

    #visual-break h2 {
        font-size: 24px;
    }

    h3 {
        font-size: 1.5rem;
    }

    h4 {
        font-size: 1.2rem;
    }

    .hero-content h1 {
        font-size: 1.8rem;
        /* Further reduced from 2.2rem for better fit */
        line-height: 1.3;
    }

    /* Set hero sentence font-size to 16px on mobile */
    .hero-content p {
        font-size: 16px;
    }

    /* Add spacing between the main line and the accent text */
    .hero-content h1 br {
        content: "";
        display: block;
        margin-bottom: 15px;
    }

    .hero-content .accent-text {
        display: inline-block;
        margin-top: 10px;
    }
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}