/* ============================================
   MODERN AQUILA GROUP WEBSITE - CSS
   Mobile-First Responsive Design
   ============================================ */

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

:root {
    /* Primary Colors */
    --primary-blue: #1e3c72;
    --primary-gold: #f39c12;
    --accent-teal: #16a085;
    --accent-purple: #8e44ad;
    --accent-orange: #e74c3c;
    --accent-green: #27ae60;
    
    /* Neutral Colors */
    --dark-gray: #2c3e50;
    --light-gray: #ecf0f1;
    --white: #ffffff;
    --text-dark: #2c3e50;
    --text-light: #7f8c8d;
    
    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.15);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.2);
    
    /* Transitions */
    --transition: all 0.3s ease;
}

html {
    scroll-behavior: smooth;
}

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

/* ============================================
   UTILITIES & COMMON STYLES
   ============================================ */

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

.container-fluid {
    width: 100%;
    padding-right: 20px;
    padding-left: 20px;
    margin-right: auto;
    margin-left: auto;
}

.row {
    display: flex;
    flex-wrap: wrap;
    margin-right: -10px;
    margin-left: -10px;
}

.col-12 {
    flex: 0 0 100%;
    padding-left: 10px;
    padding-right: 10px;
}

@media (min-width: 768px) {
    .col-md-4 {
        flex: 0 0 33.333333%;
        padding-left: 10px;
        padding-right: 10px;
    }
    
    .col-md-6 {
        flex: 0 0 50%;
        padding-left: 10px;
        padding-right: 10px;
    }
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-blue);
    margin-bottom: 10px;
    position: relative;
}

.section-header p {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 20px;
}

.header-line {
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-gold), var(--accent-teal));
    margin: 0 auto;
    border-radius: 2px;
}

/* ============================================
   HEADER & CONTACT TOP
   ============================================ */

.header-top {
    background: linear-gradient(135deg, var(--primary-blue) 0%, #0f2027 100%);
    color: var(--white);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow-md);
}

.header-contact {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    align-items: center;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.95rem;
    flex-wrap: wrap;
}

.contact-item i {
    color: var(--primary-gold);
    font-size: 1.2rem;
}

.contact-item span {
    font-weight: 500;
}

@media (max-width: 767px) {
    .header-top {
        padding: 12px 0;
    }
    
    .contact-item {
        font-size: 0.85rem;
        flex: 0 0 100%;
        margin-bottom: 8px;
    }
    
    .section-header h2 {
        font-size: 1.8rem;
    }
}

/* ============================================
   HERO SECTION
   ============================================ */

.hero {
    position: relative;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--accent-purple) 50%, var(--accent-teal) 100%);
    color: var(--white);
    padding: 60px 20px;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(243, 156, 18, 0.2) 0%, transparent 70%);
    border-radius: 50%;
    animation: float 6s ease-in-out infinite;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -5%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(22, 160, 133, 0.2) 0%, transparent 70%);
    border-radius: 50%;
    animation: float 8s ease-in-out infinite reverse;
}

.hero-gradient {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse at top right, transparent 0%, rgba(0, 0, 0, 0.3) 100%);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 10;
}

.hero-inner {
    text-align: center;
}

.logo-section {
    margin-bottom: 30px;
}

.logo {
    max-width: 600px;
    height: auto;
    animation: slideDown 0.8s ease;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 10px;
    animation: slideUp 0.8s ease 0.2s both;
    letter-spacing: -1px;
}

.hero-subtitle {
    font-size: 1.5rem;
    font-weight: 300;
    margin-bottom: 20px;
    animation: slideUp 0.8s ease 0.4s both;
    letter-spacing: 1px;
}

.hero-description {
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.8;
    animation: slideUp 0.8s ease 0.6s both;
    opacity: 0.95;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-30px); }
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 767px) {
    .hero {
        min-height: 500px;
        padding: 40px 20px;
    }
    
    .hero-title {
        font-size: 2.2rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .hero-description {
        font-size: 0.95rem;
    }
    
    .logo {
        max-width: 400px;
    }
}

/* ============================================
   SUBSIDIARIES SECTION
   ============================================ */

.subsidiaries {
    padding: 80px 20px;
    background: linear-gradient(180deg, var(--white) 0%, #f8f9fa 100%);
}

.subsidiaries-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

@media (max-width: 767px) {
    .subsidiaries-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .subsidiaries {
        padding: 50px 20px;
    }
}

/* ============================================
   SUBSIDIARY CARDS
   ============================================ */

.subsidiary-card {
    background: var(--white);
    border-radius: 15px;
    padding: 35px 25px;
    text-align: center;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    border-top: 4px solid var(--primary-gold);
    cursor: pointer;
}

.subsidiary-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.subsidiary-card:hover::before {
    left: 100%;
}

.subsidiary-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.subsidiary-card.fade-in {
    animation: fadeInUp 0.6s ease forwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.card-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    border-radius: 50%;
    margin-bottom: 20px;
    position: relative;
    z-index: 2;
}

.subsidiary-card h3 {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--primary-blue);
}

.subsidiary-card p {
    font-size: 0.95rem;
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 20px;
    min-height: 60px;
}

.card-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 25px;
    background: linear-gradient(135deg, var(--primary-blue), var(--accent-purple));
    color: var(--white);
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: var(--transition);
    border: 2px solid transparent;
    position: relative;
    z-index: 2;
}

.card-btn:hover {
    transform: translateX(5px);
    box-shadow: var(--shadow-md);
}

/* Card Color Variations */

.card-energy {
    border-top-color: var(--accent-orange);
}

.card-energy .card-icon {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: var(--white);
}

.card-energy .card-btn {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
}

.card-real-estate {
    border-top-color: #3498db;
}

.card-real-estate .card-icon {
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: var(--white);
}

.card-real-estate .card-btn {
    background: linear-gradient(135deg, #3498db, #2980b9);
}

.card-commerce {
    border-top-color: var(--accent-green);
}

.card-commerce .card-icon {
    background: linear-gradient(135deg, #27ae60, #1e8449);
    color: var(--white);
}

.card-commerce .card-btn {
    background: linear-gradient(135deg, #27ae60, #1e8449);
}

.card-finance {
    border-top-color: var(--primary-gold);
}

.card-finance .card-icon {
    background: linear-gradient(135deg, #f39c12, #d68910);
    color: var(--white);
}

.card-finance .card-btn {
    background: linear-gradient(135deg, #f39c12, #d68910);
}

.card-entertainment {
    border-top-color: var(--accent-purple);
}

.card-entertainment .card-icon {
    background: linear-gradient(135deg, #8e44ad, #6c3483);
    color: var(--white);
}

.card-entertainment .card-btn {
    background: linear-gradient(135deg, #8e44ad, #6c3483);
}

.card-records {
    border-top-color: var(--accent-teal);
}

.card-records .card-icon {
    background: linear-gradient(135deg, #16a085, #117a65);
    color: var(--white);
}

.card-records .card-btn {
    background: linear-gradient(135deg, #16a085, #117a65);
}

@media (max-width: 767px) {
    .subsidiary-card {
        padding: 25px 20px;
    }
    
    .subsidiary-card h3 {
        font-size: 1.2rem;
    }
    
    .card-icon {
        width: 60px;
        height: 60px;
        font-size: 2rem;
    }
}

/* ============================================
   STATS SECTION
   ============================================ */

.stats-section {
    padding: 80px 20px;
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--accent-purple) 100%);
    color: var(--white);
}

.stat-item {
    text-align: center;
    padding: 30px;
    margin-bottom: 20px;
}

.stat-number {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 10px;
    background: linear-gradient(135deg, var(--primary-gold), #f1c40f);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    font-size: 1.1rem;
    font-weight: 600;
    opacity: 0.95;
    letter-spacing: 0.5px;
}

@media (max-width: 767px) {
    .stats-section {
        padding: 50px 20px;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .stat-label {
        font-size: 1rem;
    }
}

/* ============================================
   FOOTER
   ============================================ */

.footer {
    background: linear-gradient(135deg, var(--primary-blue) 0%, #0f1419 100%);
    color: var(--white);
    padding: 60px 20px 30px;
}

.footer-content {
    margin-bottom: 30px;
    gap: 30px;
}

.footer h4 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--primary-gold);
}

.footer p {
    font-size: 0.95rem;
    line-height: 1.6;
    opacity: 0.9;
}

.footer-social {
    padding-top: 0;
}

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

.social-link {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(243, 156, 18, 0.2);
    color: var(--primary-gold);
    border-radius: 50%;
    text-decoration: none;
    transition: var(--transition);
    font-size: 1.2rem;
    border: 2px solid var(--primary-gold);
}

.social-link:hover {
    background: var(--primary-gold);
    color: var(--primary-blue);
    transform: scale(1.1);
}

.footer-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
    margin: 20px 0;
}

.footer-bottom {
    text-align: center;
    font-size: 0.9rem;
    opacity: 0.8;
}

@media (max-width: 767px) {
    .footer {
        padding: 40px 20px 20px;
    }
    
    .footer-content {
        flex-direction: column;
    }
    
    .social-links {
        justify-content: center;
    }
    
    .footer h4 {
        font-size: 1.1rem;
    }
}

/* ============================================
   RESPONSIVE TYPOGRAPHY
   ============================================ */

@media (max-width: 480px) {
    html {
        font-size: 14px;
    }
    
    .container {
        padding: 0 15px;
    }
    
    .section-header h2 {
        font-size: 1.6rem;
    }
    
    .section-header p {
        font-size: 0.95rem;
    }
}

/* ============================================
   ACCESSIBILITY & ANIMATIONS
   ============================================ */

@media (prefers-reduced-motion: reduce) {
    * {
        animation: none !important;
        transition: none !important;
    }
}

/* Print Styles */
@media print {
    .header-top,
    .footer {
        background: var(--white);
        color: var(--text-dark);
        border-top: 1px solid var(--light-gray);
        border-bottom: 1px solid var(--light-gray);
    }
}

/* ============================================
   SCROLLBAR STYLING
   ============================================ */

::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--light-gray);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-blue);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent-teal);
}
