.hero-section {
    height: 100vh;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    background-attachment: fixed;
    background-size: cover;
    background-position: center;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
}

/* SMARTPHONE-OPTIMIZED Video Background */
.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100vw;
    height: auto;
    min-height: 100vh;
    transform: translate(-50%, -50%);
    object-fit: cover;
    object-position: center center;
    z-index: 1;
    
    /* Performance optimizations */
    will-change: transform;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.60);
    z-index: 2;
}

.hero-section .container {
    position: relative;
    z-index: 3;
    width: 100%;
}

/* Responsive Text Scaling */
.hero-title {
    font-size: clamp(2rem, 5vw, 4rem);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
    color: white !important;
    line-height: 1.2;
    margin-bottom: clamp(1rem, 3vw, 2rem);
}

.hero-subtitle {
    font-size: clamp(1rem, 2.5vw, 1.25rem);
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
    color: white !important;
    line-height: 1.5;
    margin-bottom: clamp(2rem, 5vw, 3rem);
}

:root {
    --primary-color: #2563eb;
    --secondary-color: #1e40af;
    --accent-color: #f59e0b;
    --dark-color: #1f2937;
    --light-color: #f8fafc;
    --text-dark: #374151;
    --text-muted: #6b7280;
}

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

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
}

/* Navigation Styles */
.navbar {
    background: rgba(31, 41, 55, 0.95) !important;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    padding: 1rem 0;
}

.navbar.scrolled {
    background: rgba(31, 41, 55, 0.98) !important;
    padding: 0.5rem 0;
}

.navbar-brand {
    font-size: 1.5rem;
    color: white !important;
}

.nav-link {
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: var(--accent-color) !important;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--accent-color);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-link:hover::after {
    width: 100%;
}

/* Hero Buttons with Better Mobile Scaling */
.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
}

.hero-buttons .btn {
    padding: clamp(0.75rem, 2vw, 1rem) clamp(1.5rem, 4vw, 2rem);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    font-size: clamp(0.875rem, 1.5vw, 1rem);
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    position: relative;
    z-index: 4;
    border-radius: 50px;
    min-width: 200px;
}

.hero-buttons .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
}

.scroll-arrow {
    width: 30px;
    height: 30px;
    border: 2px solid white;
    border-top: none;
    border-right: none;
    transform: rotate(-45deg);
    animation: scroll-bounce 2s infinite;
}

@keyframes scroll-bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0) rotate(-45deg);
    }
    40% {
        transform: translateY(-10px) rotate(-45deg);
    }
    60% {
        transform: translateY(-5px) rotate(-45deg);
    }
}

/* Animation Classes */
.fade-up {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s ease;
}

.fade-up.animate {
    opacity: 1;
    transform: translateY(0);
}

/* Service Cards */
.service-card {
    background: white;
    padding: 3rem 2rem;
    border-radius: 15px;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    border: 1px solid #e5e7eb;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.service-icon {
    width: 80px;
    height: 80px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 2rem;
    transition: all 0.3s ease;
}

.service-icon i {
    font-size: 2rem;
    color: white;
}

.service-card:hover .service-icon {
    background: var(--accent-color);
    transform: scale(1.1);
}

.service-card h4 {
    color: var(--dark-color);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.service-card p {
    color: var(--text-muted);
    line-height: 1.7;
}

/* Portfolio Section */
.portfolio-item {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.portfolio-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.portfolio-image {
    position: relative;
    overflow: hidden;
}

.portfolio-image img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.portfolio-item:hover .portfolio-image img {
    transform: scale(1.1);
}

.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.9), rgba(245, 158, 11, 0.9));
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.3s ease;
    color: white;
    text-align: center;
}

.portfolio-item:hover .portfolio-overlay {
    opacity: 1;
}

.portfolio-overlay h5 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.portfolio-overlay p {
    font-size: 1rem;
    opacity: 0.9;
}

/* Contact Form */
.form-control, .form-select {
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    padding: 1rem;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-control:focus, .form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.form-label {
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 0.5rem;
}

/* Buttons */
.btn-primary {
    background: var(--primary-color);
    border: 2px solid var(--primary-color);
    border-radius: 50px;
    padding: 0.8rem 2rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background: var(--secondary-color);
    border-color: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(37, 99, 235, 0.3);
}

.btn-outline-light {
    border: 2px solid white;
    border-radius: 50px;
    padding: 0.8rem 2rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-outline-light:hover {
    background: white;
    color: var(--dark-color);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(255, 255, 255, 0.3);
}

/* Sections */
section {
    padding: 100px 0;
}

.bg-light {
    background-color: #f8f9fa !important;
}

.bg-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color)) !important;
}

/* Footer */
footer {
    padding: 3rem 0 2rem;
}

.social-links a {
    display: inline-block;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    text-align: center;
    line-height: 40px;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: var(--accent-color);
    transform: translateY(-3px);
}

/* Parallax Effect */
.parallax {
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

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

/* Loading animation */
.loading {
    opacity: 0;
    transform: translateY(30px);
}

.loaded {
    opacity: 1;
    transform: translateY(0);
    transition: all 0.8s ease;
}

/* ============================================================================
   SMARTPHONE-OPTIMIZED RESPONSIVE DESIGN
   Using Standard CSS Breakpoints and Optimal Scaling Factors
   ============================================================================ */

/* Extra Large Devices (Desktop/Large Tablets) */
@media (min-width: 1200px) {
    .hero-video {
        /* Full video width on large screens */
        width: 100vw;
        height: calc(100vw / 3.33);
        min-height: 100vh;
        transform: translate(-50%, -50%);
    }
}

/* Large Devices (Tablets, Desktop) */
@media (max-width: 1199.98px) and (min-width: 992px) {
    .hero-video {
        /* Minimal scaling for tablets */
        width: max(100vw, calc(100vh * 3.33));
        height: max(100vh, calc(100vw / 3.33));
        transform: translate(-50%, -50%) scale(0.95);
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .hero-buttons .btn {
        min-width: 280px;
    }
}

/* Medium Devices (Large Phones, Small Tablets) */
@media (max-width: 991.98px) and (min-width: 768px) {
    .hero-section {
        height: 100vh;
        min-height: 700px;
    }
    
    .hero-video {
        /* Moderate scaling for large phones/small tablets */
        width: max(100vw, calc(100vh * 3.33 * 0.8));
        height: max(100vh, calc(100vw / 3.33 * 1.1));
        object-position: center 45%;
        transform: translate(-50%, -50%) scale(0.85);
    }
    
    .hero-overlay {
        background: rgba(0, 0, 0, 0.65);
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
    
    .hero-buttons .btn {
        width: 100%;
        max-width: 320px;
        min-width: unset;
    }
    
    section {
        padding: 80px 0;
    }
}

/* Small Devices - STANDARD SMARTPHONES (iPhone 12-15, Galaxy S21-S24, Pixel 6-8) */
@media (max-width: 767.98px) and (min-width: 415px) {
    .hero-section {
        height: 100vh;
        min-height: 600px;
    }
    
    .hero-video {
        /* Optimized for modern smartphones (390px-430px wide) */
        width: max(100vw, calc(100vh * 3.33 * 0.75));
        height: max(100vh, calc(100vw / 3.33 * 1.15));
        object-position: center 42%;
        transform: translate(-50%, -50%) scale(0.78);
    }
    
    .hero-overlay {
        background: rgba(0, 0, 0, 0.68);
    }
    
    .hero-title {
        font-size: clamp(1.6rem, 6vw, 2.2rem);
        margin-bottom: 1rem;
    }
    
    .hero-subtitle {
        font-size: clamp(0.95rem, 3.2vw, 1.1rem);
        margin-bottom: 1.8rem;
        padding: 0 1rem;
    }
    
    .hero-buttons {
        padding: 0 1.5rem;
        gap: 1rem;
    }
    
    .hero-buttons .btn {
        width: 100%;
        max-width: 300px;
        padding: 1rem 1.5rem;
        font-size: 0.9rem;
    }
    
    .scroll-indicator {
        bottom: 25px;
    }
    
    section {
        padding: 70px 0;
    }
}

/* Extra Small Devices - COMPACT SMARTPHONES (iPhone SE, older Android) */
@media (max-width: 414.98px) and (min-width: 360px) {
    .hero-section {
        height: 100vh;
        min-height: 550px;
    }
    
    .hero-video {
        /* Optimized for smaller phones (360px-414px wide) */
        width: max(100vw, calc(100vh * 3.33 * 0.70));
        height: max(100vh, calc(100vw / 3.33 * 1.20));
        object-position: center 40%;
        transform: translate(-50%, -50%) scale(0.72);
    }
    
    .hero-overlay {
        background: rgba(0, 0, 0, 0.72);
    }
    
    .hero-title {
        font-size: clamp(1.4rem, 7vw, 1.9rem);
        line-height: 1.15;
        margin-bottom: 0.8rem;
    }
    
    .hero-subtitle {
        font-size: clamp(0.88rem, 3.5vw, 1rem);
        margin-bottom: 1.5rem;
        padding: 0 0.8rem;
        line-height: 1.4;
    }
    
    .hero-buttons .btn {
        padding: 0.9rem 1.2rem;
        font-size: 0.85rem;
        max-width: 280px;
    }
    
    .scroll-indicator {
        bottom: 20px;
    }
    
    .scroll-arrow {
        width: 26px;
        height: 26px;
    }
    
    section {
        padding: 60px 0;
    }
}

/* Very Small Devices - OLDER/BUDGET SMARTPHONES */
@media (max-width: 359.98px) {
    .hero-section {
        height: 100vh;
        min-height: 500px;
    }
    
    .hero-video {
        /* Maximum content preservation for very small screens */
        width: max(100vw, calc(100vh * 3.33 * 0.65));
        height: max(100vh, calc(100vw / 3.33 * 1.25));
        object-position: center 38%;
        transform: translate(-50%, -50%) scale(0.68);
    }
    
    .hero-overlay {
        background: rgba(0, 0, 0, 0.75);
    }
    
    .hero-title {
        font-size: 1.35rem;
        line-height: 1.1;
        margin-bottom: 0.6rem;
    }
    
    .hero-subtitle {
        font-size: 0.82rem;
        margin-bottom: 1.3rem;
        padding: 0 0.5rem;
    }
    
    .hero-buttons .btn {
        padding: 0.8rem 1rem;
        font-size: 0.8rem;
        max-width: 260px;
    }
    
    .scroll-indicator {
        bottom: 15px;
    }
    
    .scroll-arrow {
        width: 24px;
        height: 24px;
    }
    
    .container {
        padding: 0 12px;
    }
    
    section {
        padding: 50px 0;
    }
}

/* Landscape Orientation Optimizations */
@media (max-width: 896px) and (orientation: landscape) and (max-height: 500px) {
    .hero-section {
        height: 100vh;
        min-height: 400px;
    }
    
    .hero-video {
        /* Take advantage of landscape width */
        width: max(100vw, calc(100vh * 3.33 * 1.1));
        height: max(100vh, calc(100vw / 3.33 * 0.85));
        object-position: center center;
        transform: translate(-50%, -50%) scale(1);
    }
    
    .hero-title {
        font-size: clamp(1.2rem, 4vw, 1.6rem);
        margin-bottom: 0.4rem;
    }
    
    .hero-subtitle {
        font-size: clamp(0.8rem, 2.2vw, 0.95rem);
        margin-bottom: 1rem;
    }
    
    .hero-buttons {
        flex-direction: row;
        gap: 1rem;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .hero-buttons .btn {
        flex: 0 1 auto;
        min-width: 140px;
        max-width: 180px;
        padding: 0.6rem 1rem;
        font-size: 0.8rem;
    }
    
    .scroll-indicator {
        bottom: 10px;
    }
}

/* High-Resolution/Retina Display Optimizations */
@media (-webkit-min-device-pixel-ratio: 2) and (max-width: 767px) {
    .hero-video {
        /* Enhanced rendering for high-DPI displays */
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
    
    .hero-title, .hero-subtitle {
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
    }
}

/* Performance & Accessibility */
.hero-video {
    /* Hardware acceleration for smooth performance */
    -webkit-transform: translate3d(-50%, -50%, 0);
    transform: translate3d(-50%, -50%, 0);
    will-change: transform;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    .hero-video {
        transform: translate(-50%, -50%) scale(0.8) !important;
        object-position: center center !important;
    }
    
    .scroll-arrow {
        animation: none;
    }
    
    .hero-buttons .btn:hover {
        transform: none;
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    .hero-overlay {
        background: rgba(0, 0, 0, 0.75);
    }
}

/* ============================================================================
   COMPANY LOGO STYLES
   ============================================================================ */

/* Main navbar logo styling */
.navbar-logo {
    height: 32px;
    width: auto;
    max-width: 120px;
    object-fit: contain;
    filter: brightness(1.1);
    transition: all 0.3s ease;
}

.navbar-logo:hover {
    transform: scale(1.05);
    filter: brightness(1.2);
}

/* Admin panel logo styling */
.admin-logo {
    height: 28px;
    width: auto;
    max-width: 100px;
    object-fit: contain;
    filter: brightness(1.1);
    transition: all 0.3s ease;
}

/* Responsive logo adjustments */
@media (max-width: 767.98px) {
    .navbar-logo {
        height: 28px;
        max-width: 100px;
    }
    
    .admin-logo {
        height: 24px;
        max-width: 80px;
    }
}

@media (max-width: 414.98px) {
    .navbar-logo {
        height: 24px;
        max-width: 80px;
    }
    
    .admin-logo {
        height: 20px;
        max-width: 70px;
    }
}

/* Ensure logo maintains aspect ratio and looks crisp */
.navbar-logo, .admin-logo {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}


/* Admin login logo styling */
.admin-login-logo {
    height: 60px;
    width: auto;
    max-width: 200px;
    object-fit: contain;
}

@media (max-width: 414.98px) {
    .admin-login-logo {
        height: 50px;
        max-width: 160px;
    }
}

