/* ===== HORTON TECHNOLOGY SERVICES - CUSTOM CSS ===== */

/* ===== CSS VARIABLES & GLOBAL STYLES ===== */
:root {
    /* Color Palette */
    --primary-color: #667eea;
    --primary-dark: #5a6fd8;
    --secondary-color: #764ba2;
    --accent-color: #4facfe;
    --success-color: #28a745;
    --warning-color: #ffc107;
    --danger-color: #dc3545;
    
    /* Gradients */
    --primary-gradient: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    --secondary-gradient: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --accent-gradient: linear-gradient(135deg, var(--accent-color) 0%, #00f2fe 100%);
    --dark-gradient: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    --light-gradient: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    
    /* Text Colors */
    --text-dark: #2c3e50;
    --text-light: #6c757d;
    --text-muted: #adb5bd;
    --text-white: #ffffff;
    
    /* Background Colors */
    --bg-white: #ffffff;
    --bg-light: #f8f9fa;
    --bg-dark: #2c3e50;
    --header-bg: linear-gradient(90deg, rgba(102,126,234,0.95) 0%, rgba(118,75,162,0.95) 100%);
    
    /* Effects */
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.1);
    --shadow: 0 10px 30px rgba(0,0,0,0.1);
    --shadow-hover: 0 20px 40px rgba(0,0,0,0.15);
    --border-radius: 16px;
    --border-radius-sm: 8px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===== TYPOGRAPHY ===== */
* {
    font-family: 'Inter', sans-serif;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    color: var(--text-dark);
    line-height: 1.2;
}

p {
    color: var(--text-light);
    line-height: 1.6;
}

/* ===== HEADER STYLES ===== */
/* Override template header styles */
.header-section,
.section.header-section,
.custom-header,
.transparent-header {
    background: var(--header-bg) !important;
    border-bottom: 1px solid rgba(0,0,0,0.07);
    transition: var(--transition);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    box-shadow: var(--shadow);
    padding: 0 !important;
    margin: 0 !important;
    min-height: auto !important;
    height: auto !important;
}

.custom-header.scrolled,
.header-section.scrolled,
.section.header-section.scrolled {
    background: var(--header-bg) !important;
    box-shadow: 0 6px 24px rgba(0,0,0,0.12);
}

.header-wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.15rem 0;
    margin: 0 !important;
    height: auto !important;
    min-height: auto !important;
}

/* Logo Styling */
.header-logo {
    flex-shrink: 0;
    display: flex;
    align-items: center;
}

.header-logo img {
    height: 70px;
    width: auto;
    max-width: 280px;
    object-fit: contain;
    transition: var(--transition);
    background: transparent;
    border-radius: 8px;
}

.header-logo img:hover {
    transform: scale(1.05);
}

/* Navigation Menu */
.main-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 1.5rem;
    align-items: center;
}

.main-menu > li {
    position: relative;
}

.main-menu > li > a {
    color: var(--text-white);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.85rem;
    padding: 0.25rem 0.7rem;
    border-radius: 12px;
    transition: var(--transition);
    position: relative;
    white-space: nowrap;
    background: transparent;
}

.main-menu > li > a:hover,
.main-menu > li.active-menu > a {
    color: var(--text-white);
    background: rgba(255,255,255,0.12);
    transform: translateY(-2px);
}

/* Submenu Styling */
.sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: rgba(30, 34, 54, 0.98) !important;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    min-width: 220px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: var(--transition);
    padding: 0.7rem 0;
    border: 1px solid rgba(0,0,0,0.1);
    z-index: 1001;
}

.main-menu > li:hover .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.sub-menu li {
    list-style: none;
}

.sub-menu li a {
    display: block;
    padding: 0.6rem 1.2rem;
    color: #fff !important;
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    border-left: 3px solid transparent;
}

.sub-menu li a:hover {
    background: rgba(102, 126, 234, 0.18);
    color: #fff !important;
    border-left-color: #667eea;
}

/* Nested Submenu */
.sub-menu .sub-menu {
    left: 100%;
    top: 0;
    margin-left: 1px;
    background: rgba(30, 34, 54, 0.98) !important;
}

/* Header Meta */
.header-meta {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    flex-shrink: 0;
}

/* Cart Button */
.header-cart .cart-btn {
    background: var(--bg-white);
    color: var(--text-dark) !important;
    border: 1px solid #e0e0e0;
    border: none;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    position: relative;
    transition: var(--transition);
    box-shadow: var(--shadow);
}

.header-cart .cart-btn:hover {
    background: #f3f3f3;
    color: var(--text-dark) !important;
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.header-cart .count {
    position: absolute;
    top: -5px;
    right: -5px;
    background: var(--secondary-gradient);
    color: var(--text-white);
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 600;
}

/* Cart Dropdown */
.dropdown-cart {
    border: none;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    padding: 1rem;
    min-width: 300px;
    margin-top: 0.5rem;
    background: var(--bg-white);
}

.dropdown-cart, .dropdown-cart * {
    color: var(--text-dark) !important;
}

.single-cart-item, .item-content, .cart-total, .cart-btn {
    color: var(--text-dark) !important;
}

.single-cart-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(0,0,0,0.1);
}

.single-cart-item:last-child {
    border-bottom: none;
}

.item-image img {
    border-radius: 8px;
    object-fit: cover;
}

.item-content h4 {
    margin: 0;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-dark);
}

.item-content .quantity {
    font-size: 0.8rem;
    color: var(--text-light);
}

.cart-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    border-top: 2px solid rgba(0,0,0,0.1);
    margin-top: 1rem;
    font-weight: 600;
}

/* CTA Button */
.header-btn-2 .btn {
    background: var(--primary-gradient);
    color: var(--text-white);
    padding: 0.4rem 1rem;
    border-radius: 16px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    box-shadow: var(--shadow);
    border: none;
    white-space: nowrap;
    font-size: 0.85rem;
    margin-left: 0.4rem;
}

.header-btn-2 .btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
    color: var(--text-white);
    background: #764ba2;
}

/* Mobile Toggle */
.header-toggle button {
    background: var(--primary-gradient);
    border: none;
    border-radius: 8px;
    width: 36px;
    height: 36px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    transition: var(--transition);
}

.header-toggle button span {
    width: 20px;
    height: 2px;
    background: var(--text-white);
    border-radius: 1px;
    transition: var(--transition);
}

.header-toggle button:hover {
    transform: scale(1.05);
}

/* Offcanvas Styling */
.offcanvas {
    background: var(--bg-white);
    border: none;
}

.offcanvas-header {
    border-bottom: 1px solid rgba(0,0,0,0.1);
    padding: 1.5rem;
}

.offcanvas-logo img {
    height: 60px;
    width: auto;
    max-width: 180px;
    object-fit: contain;
}

.close-btn {
    background: var(--primary-gradient);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-white);
    transition: var(--transition);
}

.close-btn:hover {
    transform: scale(1.1);
}

.offcanvas-body {
    padding: 2rem 1.5rem;
}

.offcanvas-menu .main-menu {
    flex-direction: column;
    gap: 0;
}

.offcanvas-menu .main-menu > li > a {
    display: block;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(0,0,0,0.1);
    border-radius: 0;
    color: var(--text-dark);
}

.offcanvas-menu .sub-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: none;
    padding-left: 1rem;
    background: rgba(102, 126, 234, 0.05);
    margin: 0.5rem 0;
    border-radius: 8px;
}

/* ===== HERO SECTION ===== */
.hero-section {
    background: var(--primary-gradient);
    min-height: 100vh;
    position: relative;
    overflow: hidden;
    padding-top: 80px;
    display: flex;
    align-items: center;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000"><defs><radialGradient id="a" cx="50%" cy="50%"><stop offset="0%" stop-color="%23ffffff" stop-opacity="0.1"/><stop offset="100%" stop-color="%23ffffff" stop-opacity="0"/></radialGradient></defs><circle cx="200" cy="200" r="100" fill="url(%23a)"/><circle cx="800" cy="300" r="150" fill="url(%23a)"/><circle cx="400" cy="700" r="120" fill="url(%23a)"/></svg>');
    opacity: 0.3;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-badge {
    display: inline-block;
    background: rgba(255,255,255,0.2);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.3);
    padding: 12px 24px;
    border-radius: 50px;
    color: var(--text-white);
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 24px;
    animation: fadeInUp 0.8s ease-out;
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    color: var(--text-white);
    line-height: 1.2;
    margin-bottom: 24px;
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.hero-subtitle {
    font-size: clamp(1.1rem, 2vw, 1.25rem);
    color: rgba(255,255,255,0.9);
    line-height: 1.6;
    margin-bottom: 40px;
    animation: fadeInUp 0.8s ease-out 0.4s both;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    animation: fadeInUp 0.8s ease-out 0.6s both;
}

.hero-image {
    animation: fadeInUp 0.8s ease-out 0.8s both;
}

.floating {
    animation: float 6s ease-in-out infinite;
}

/* ===== BUTTONS ===== */
.btn-primary {
    background: var(--text-white);
    color: var(--primary-color);
    padding: 16px 32px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    box-shadow: var(--shadow);
    border: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
    color: var(--primary-color);
    text-decoration: none;
}

.btn-secondary {
    background: transparent;
    color: var(--text-white);
    padding: 16px 32px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    border: 2px solid rgba(255,255,255,0.3);
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-secondary:hover {
    background: rgba(255,255,255,0.1);
    border-color: var(--text-white);
    color: var(--text-white);
    transform: translateY(-2px);
    text-decoration: none;
}

.btn-outline {
    background: transparent;
    color: var(--primary-color);
    padding: 16px 32px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    border: 2px solid var(--primary-color);
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-outline:hover {
    background: var(--primary-color);
    color: var(--text-white);
    transform: translateY(-2px);
    text-decoration: none;
}

/* ===== SECTIONS ===== */
.section {
    padding: 100px 0;
}

.section-light {
    background: var(--bg-light);
}

.section-dark {
    background: var(--dark-gradient);
    color: var(--text-white);
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-subtitle {
    color: var(--primary-color);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 14px;
    margin-bottom: 16px;
}

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 24px;
}

.section-description {
    font-size: 1.1rem;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* ===== SERVICE CARDS ===== */
.service-card {
    background: var(--bg-white);
    border-radius: var(--border-radius);
    padding: 40px 30px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
    height: 100%;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--primary-gradient);
    transform: scaleX(0);
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-icon {
    width: 80px;
    height: 80px;
    background: var(--primary-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    font-size: 32px;
    color: var(--text-white);
}

.service-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 16px;
}

.service-text {
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 24px;
}

.service-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.service-link:hover {
    color: var(--secondary-color);
    text-decoration: none;
}

/* ===== ABOUT SECTION ===== */
.about-content {
    display: flex;
    align-items: center;
    gap: 60px;
}

.about-text h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 24px;
}

.about-text p {
    font-size: 1.1rem;
    color: var(--text-light);
    line-height: 1.7;
    margin-bottom: 32px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary-color);
    display: block;
}

.stat-label {
    color: var(--text-light);
    font-weight: 500;
}

/* ===== BLOG CARDS ===== */
.blog-card {
    background: var(--bg-white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    height: 100%;
    position: relative;
}

.blog-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
}

.blog-card:hover .blog-image {
    transform: scale(1.05);
}

.blog-image {
    height: 220px;
    background-size: cover;
    background-position: center;
    position: relative;
    transition: transform 0.3s ease;
}

.blog-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0,0,0,0.1) 0%, rgba(0,0,0,0.4) 100%);
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 16px;
}

.blog-date {
    background: var(--primary-color);
    color: var(--text-white);
    padding: 8px 12px;
    border-radius: 8px;
    text-align: center;
    min-width: 60px;
}

.blog-date .day {
    display: block;
    font-size: 18px;
    font-weight: 700;
    line-height: 1;
}

.blog-date .month {
    display: block;
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
}

.blog-category {
    background: rgba(255, 255, 255, 0.9);
    color: var(--primary-color);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.blog-content {
    padding: 24px;
    display: flex;
    flex-direction: column;
    height: calc(100% - 220px);
}

.blog-meta-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    font-size: 13px;
    color: var(--text-muted);
}

.blog-author, .blog-time {
    display: flex;
    align-items: center;
    gap: 6px;
}

.blog-author i, .blog-time i {
    color: var(--primary-color);
    font-size: 12px;
}

.blog-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 12px;
    line-height: 1.4;
    flex-grow: 1;
}

.blog-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.blog-title a:hover {
    color: var(--primary-color);
}

.blog-excerpt {
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 20px;
    flex-grow: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
}

.read-more-btn {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.3s ease;
}

.read-more-btn:hover {
    color: var(--secondary-color);
    transform: translateX(4px);
}

.blog-tags {
    display: flex;
    gap: 6px;
}

.blog-tags .tag {
    background: var(--light-bg);
    color: var(--text-muted);
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

/* ===== CTA SECTION ===== */
.cta-section {
    background: var(--dark-gradient);
    color: var(--text-white);
    text-align: center;
}

.cta-section h2 {
    color: var(--text-white);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    margin-bottom: 24px;
}

.cta-section p {
    color: rgba(255,255,255,0.9);
    font-size: 1.1rem;
    margin-bottom: 40px;
}

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-6px); }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Animation for menu items */
.main-menu > li {
    animation: fadeInDown 0.5s ease-out;
}

.main-menu > li:nth-child(1) { animation-delay: 0.1s; }
.main-menu > li:nth-child(2) { animation-delay: 0.2s; }
.main-menu > li:nth-child(3) { animation-delay: 0.3s; }
.main-menu > li:nth-child(4) { animation-delay: 0.4s; }
.main-menu > li:nth-child(5) { animation-delay: 0.5s; }

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 991px) {
    .header-menu {
        display: none;
    }
    
    .header-btn-2 {
        display: none;
    }
}

/* Additional template overrides */
.section {
    padding: 100px 0;
}

.section.header-section {
    padding: 0 !important;
    margin: 0 !important;
    min-height: auto !important;
    height: auto !important;
}

/* Override any template section styles that might affect header */
#header.section,
#header.header-section,
#header.custom-header {
    padding: 0 !important;
    margin: 0 !important;
    min-height: auto !important;
    height: auto !important;
    background: var(--header-bg) !important;
}

@media (max-width: 768px) {
    .header-wrap {
        padding: 0.3rem 0;
    }
    
    .header-logo img {
        height: 60px;
        max-width: 200px;
    }
    
    .hero-buttons {
        flex-direction: column;
    }
    
    .about-content {
        flex-direction: column;
        text-align: center;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .section {
        padding: 60px 0;
    }
}

@media (max-width: 576px) {
    .header-logo img {
        height: 55px;
        max-width: 150px;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
}

/* ===== UTILITY CLASSES ===== */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 1rem; }
.mb-4 { margin-bottom: 1.5rem; }
.mb-5 { margin-bottom: 3rem; }

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 1rem; }
.mt-4 { margin-top: 1.5rem; }
.mt-5 { margin-top: 3rem; }

.d-flex { display: flex; }
.d-none { display: none; }
.d-block { display: block; }

.align-items-center { align-items: center; }
.justify-content-center { justify-content: center; }
.justify-content-between { justify-content: space-between; }

.gap-1 { gap: 0.25rem; }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 1rem; }
.gap-4 { gap: 1.5rem; }

.flex-wrap { flex-wrap: wrap; }
.flex-column { flex-direction: column; }

/* ===== BOOTSTRAP OVERRIDES ===== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -15px;
}

.col-lg-6, .col-lg-4, .col-lg-8, .col-md-6, .col-12 {
    padding: 0 15px;
    flex: 1;
}

.col-lg-6 { flex: 0 0 50%; max-width: 50%; }
.col-lg-4 { flex: 0 0 33.333333%; max-width: 33.333333%; }
.col-lg-8 { flex: 0 0 66.666667%; max-width: 66.666667%; }
.col-md-6 { flex: 0 0 50%; max-width: 50%; }
.col-12 { flex: 0 0 100%; max-width: 100%; }

@media (max-width: 991px) {
    .col-lg-6, .col-lg-4, .col-lg-8 {
        flex: 0 0 100%;
        max-width: 100%;
    }
}

@media (max-width: 767px) {
    .col-md-6 {
        flex: 0 0 100%;
        max-width: 100%;
    }
}

.g-4 > * {
    margin-bottom: 1.5rem;
}

/* ===== PRELOADER ===== */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-white);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.preloader {
    display: flex;
    gap: 8px;
}

.preloader span {
    width: 20px;
    height: 20px;
    background: var(--primary-gradient);
    border-radius: 50%;
    animation: preloader 1.4s ease-in-out infinite both;
}

.preloader span:nth-child(1) { animation-delay: -0.32s; }
.preloader span:nth-child(2) { animation-delay: -0.16s; }

@keyframes preloader {
    0%, 80%, 100% {
        transform: scale(0);
    }
    40% {
        transform: scale(1);
    }
}

/* ===== BACK TO TOP ===== */
.progress-wrap {
    position: fixed;
    right: 30px;
    bottom: 30px;
    height: 46px;
    width: 46px;
    cursor: pointer;
    display: block;
    border-radius: 50px;
    z-index: 99;
    opacity: 0;
    visibility: hidden;
    transform: translateY(15px);
    transition: all 200ms linear;
    background: var(--primary-gradient);
}

.progress-wrap.active-progress {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.progress-wrap::after {
    position: absolute;
    content: "↑";
    text-align: center;
    line-height: 46px;
    font-size: 20px;
    color: var(--text-white);
    left: 0;
    top: 0;
    height: 46px;
    width: 46px;
    cursor: pointer;
    display: block;
    z-index: 1;
    transition: all 200ms linear;
}

.progress-wrap svg.progress-circle svg {
    fill: none;
    stroke: var(--text-white);
    stroke-width: 4;
    stroke-linecap: round;
    transform: rotate(-90deg);
}

/* ===== FOOTER STYLES ===== */
.footer-section {
    background: var(--dark-gradient) !important;
    color: var(--text-white);
    position: relative;
    padding: 4rem 0 2rem 0 !important;
}

.footer-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000"><defs><radialGradient id="a" cx="50%" cy="50%"><stop offset="0%" stop-color="%23ffffff" stop-opacity="0.05"/><stop offset="100%" stop-color="%23ffffff" stop-opacity="0"/></radialGradient></defs><circle cx="200" cy="200" r="100" fill="url(%23a)"/><circle cx="800" cy="300" r="150" fill="url(%23a)"/><circle cx="400" cy="700" r="120" fill="url(%23a)"/></svg>');
    opacity: 0.3;
}

.footer-widget-wrap {
    position: relative;
    z-index: 2;
}

.footer-widget-title {
    color: var(--text-white) !important;
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    position: relative;
}

.footer-widget-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 40px;
    height: 3px;
    background: var(--primary-gradient);
    border-radius: 2px;
}

.footer-widget-about .footer-logo img {
    transition: var(--transition);
}

.footer-widget-about .footer-logo:hover img {
    transform: scale(1.05);
}

.widget-info ul li {
    transition: var(--transition);
}

.widget-info ul li:hover {
    transform: translateX(5px);
}

.widget-info ul li a:hover {
    color: var(--text-white) !important;
    text-decoration: none;
}

.widget-link ul li a {
    transition: var(--transition);
    position: relative;
}

.widget-link ul li a:hover {
    color: var(--text-white) !important;
    text-decoration: none;
    transform: translateX(5px);
}

.widget-link ul li a::before {
    content: '→';
    position: absolute;
    left: -20px;
    opacity: 0;
    transition: var(--transition);
}

.widget-link ul li a:hover::before {
    opacity: 1;
    left: -15px;
}

.copyright-social ul li a {
    transition: var(--transition);
}

.copyright-social ul li a:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
}

/* Footer responsive */
@media (max-width: 768px) {
    .footer-widget-wrap .row > div {
        margin-bottom: 2rem;
    }
    
    .copyright-social {
        text-align: center !important;
        margin-top: 1rem;
    }
    
    .copyright-social ul {
        justify-content: center !important;
    }
}

/* ===== PRINT STYLES ===== */
@media print {
    .custom-header,
    .hero-buttons,
    .btn,
    .progress-wrap {
        display: none !important;
    }
    
    .hero-section {
        min-height: auto;
        padding: 2rem 0;
    }
    
    .section {
        padding: 2rem 0;
    }
}
