/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Color Palette - Matching Logo */
    --dark-blue: #0a3d5c;
    --medium-blue: #1e6fa3;
    --light-blue: #4a9fd8;
    --lighter-blue: #7bb8e5;
    --lightest-blue: #a8d4f0;
    --white: #ffffff;
    --light-gray: #f5f7fa;
    --dark-gray: #2c3e50;
    --text-gray: #555;
}

html {
    scroll-behavior: smooth;
}

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

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

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    box-shadow: none;
    z-index: 1000;
    padding: 0;
    /* Add safe area insets for mobile browsers (iOS notch, Android status bar) */
    padding-top: max(0.5rem, env(safe-area-inset-top));
    padding-bottom: max(0.5rem, env(safe-area-inset-bottom));
    overflow: visible !important;
    min-height: auto;
    transition: background 0.3s ease, backdrop-filter 0.3s ease, box-shadow 0.3s ease;
}

/* Add subtle background on scroll for better readability */
.navbar.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* Force navbar to show logo on mobile - override any conflicting styles */
@media (max-width: 768px) {
    .navbar {
        padding: 0 !important;
        padding-top: max(0.5rem, env(safe-area-inset-top)) !important;
        padding-bottom: max(0.5rem, env(safe-area-inset-bottom)) !important;
        min-height: auto !important;
        height: auto !important;
    }
    
    .navbar .container {
        padding: 2rem 20px !important;
        min-height: 95px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
    }
    
    .nav-brand {
        display: flex !important;
        align-items: center !important;
        height: auto !important;
        flex: 1 !important;
        z-index: 1001 !important;
        position: relative !important;
    }
    
    .logo-link {
        display: flex !important;
        align-items: center !important;
        height: auto !important;
        z-index: 1002 !important;
        position: relative !important;
    }
    
    .logo-img {
        max-height: 65px !important;
        height: 65px !important;
        width: auto !important;
        max-width: 220px !important;
        object-fit: contain !important;
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        z-index: 1003 !important;
        position: relative !important;
    }
}

@media (max-width: 480px) {
    .navbar {
        padding: 0 !important;
        padding-top: max(0.5rem, env(safe-area-inset-top)) !important;
        padding-bottom: max(0.5rem, env(safe-area-inset-bottom)) !important;
        min-height: auto !important;
        height: auto !important;
    }
    
    .navbar .container {
        padding: 2rem 15px !important;
        min-height: 95px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
    }
    
    .nav-brand {
        display: flex !important;
        align-items: center !important;
        height: auto !important;
        flex: 1 !important;
        z-index: 1001 !important;
        position: relative !important;
    }
    
    .logo-link {
        display: flex !important;
        align-items: center !important;
        height: auto !important;
        z-index: 1002 !important;
        position: relative !important;
    }
    
    .logo-img {
        max-height: 60px !important;
        height: 60px !important;
        width: auto !important;
        max-width: 200px !important;
        object-fit: contain !important;
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        z-index: 1003 !important;
        position: relative !important;
    }
}


.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    min-height: 70px;
    padding: 1.5rem 20px;
    overflow: visible;
    position: relative;
    width: 100%;
}

.nav-brand {
    flex: 0 0 auto;
    min-width: 0;
    overflow: visible;
    position: relative;
    z-index: 1001;
    display: flex;
    align-items: center;
    height: 100%;
    margin: 0;
    padding: 0;
}

.logo-link {
    display: flex;
    align-items: center;
    gap: 15px;
    text-decoration: none;
    position: relative;
    max-width: 100%;
    height: 100%;
    padding: 0;
    margin: 0;
    z-index: 1002;
}

.logo-img {
    height: 75px;
    width: auto;
    max-width: 280px;
    object-fit: contain;
    display: block !important;
    background: transparent;
    mix-blend-mode: normal;
    filter: drop-shadow(0 2px 10px rgba(0, 0, 0, 0.12)) 
            drop-shadow(0 1px 3px rgba(30, 111, 163, 0.15))
            brightness(1.06) 
            contrast(1.12)
            saturate(1.08);
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    transform: translateZ(0);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform, filter;
    flex-shrink: 0;
    margin: 0 !important;
    padding: 0 !important;
    vertical-align: middle;
    position: relative;
    z-index: 1003;
    visibility: visible !important;
    opacity: 1 !important;
}

.logo-img:hover {
    filter: drop-shadow(0 4px 16px rgba(30, 111, 163, 0.25)) 
            drop-shadow(0 2px 6px rgba(0, 0, 0, 0.15))
            brightness(1.1) 
            contrast(1.15)
            saturate(1.12);
    transform: translateZ(0) scale(1.06);
}

.logo-text {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--medium-blue), var(--light-blue));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    white-space: nowrap;
    display: inline-block;
}

/* Hide text when logo is loaded (handled by JS) */
.logo-link.has-logo .logo-text {
    display: none;
}

/* On mobile, always show logo text as fallback if image fails */
@media (max-width: 768px) {
    .logo-text {
        display: inline-block !important;
    }
    
    .logo-link.has-logo .logo-text {
        display: none !important;
    }
    
    .logo-img[style*="display: none"] + .logo-text {
        display: inline-block !important;
    }
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    text-decoration: none;
    color: var(--dark-gray);
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--medium-blue), var(--light-blue));
    transition: width 0.3s ease;
}

.nav-link:hover {
    color: var(--medium-blue);
}

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

.nav-link.active {
    color: var(--medium-blue);
}

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

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
    flex-shrink: 0;
    margin-left: auto;
    z-index: 10;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--dark-blue);
    transition: all 0.3s ease;
}

/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    background: linear-gradient(135deg, var(--dark-blue) 0%, var(--medium-blue) 50%, var(--light-blue) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    overflow: hidden;
    padding-bottom: 120px;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grid" width="100" height="100" patternUnits="userSpaceOnUse"><path d="M 100 0 L 0 0 0 100" fill="none" stroke="rgba(255,255,255,0.05)" stroke-width="1"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
}

.hero-content {
    position: relative;
    z-index: 3;
    max-width: 800px;
    padding: 0 20px 100px;
    animation: fadeInUp 1s ease;
}

.hero-logo {
    max-height: 320px;
    height: auto;
    width: auto;
    max-width: 650px;
    margin: 60px auto 40px;
    object-fit: contain;
    background: transparent;
    mix-blend-mode: normal;
    filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.2)) 
            drop-shadow(0 4px 12px rgba(30, 111, 163, 0.25))
            drop-shadow(0 2px 6px rgba(74, 159, 216, 0.2))
            brightness(1.1) 
            contrast(1.15)
            saturate(1.12);
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    transform: translateZ(0);
    animation: fadeInUp 1.2s ease, logoFloat 4s ease-in-out infinite;
    display: block;
    will-change: transform, filter;
    position: relative;
    z-index: 3;
}

.hero-logo::before {
    content: '';
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    background: radial-gradient(circle, rgba(74, 159, 216, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    z-index: -1;
    animation: logoGlow 3s ease-in-out infinite;
}

@keyframes logoFloat {
    0%, 100% {
        transform: translateZ(0) translateY(0) scale(1);
    }
    50% {
        transform: translateZ(0) translateY(-10px) scale(1.02);
    }
}

@keyframes logoGlow {
    0%, 100% {
        opacity: 0.3;
        transform: scale(0.95);
    }
    50% {
        opacity: 0.5;
        transform: scale(1.05);
    }
}

.hero-content.has-hero-logo .hero-title {
    margin-top: 0;
}

.hero-title {
    font-family: 'Playfair Display', serif;
    font-size: 5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
    background: linear-gradient(135deg, var(--white), var(--lightest-blue));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--lightest-blue);
}

.hero-description {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    position: relative;
    z-index: 4;
    margin-top: 2rem;
}

.btn {
    padding: 12px 30px;
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-block;
}

.btn-primary {
    background: var(--white);
    color: var(--dark-blue);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.btn-secondary {
    background: transparent;
    color: var(--white);
    border: 2px solid var(--white);
}

.btn-secondary:hover {
    background: var(--white);
    color: var(--dark-blue);
    transform: translateY(-2px);
}

.btn-block {
    width: 100%;
    text-align: center;
}

.wave-divider {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 120px;
    overflow: hidden;
    z-index: 1;
}

.wave-divider svg {
    width: 100%;
    height: 100%;
}

/* Services Section */
.services {
    padding: 100px 0;
    background: var(--white);
}

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

.section-title {
    font-family: 'Playfair Display', serif;
    font-size: 3rem;
    font-weight: 700;
    color: var(--dark-blue);
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.2rem;
    color: var(--text-gray);
}

/* Main Service Rectangle - Time Charter Services */
.main-service-rectangle {
    margin-bottom: 40px;
    animation: fadeInUp 1s ease;
}

.main-service-content {
    background: var(--light-gray);
    padding: 40px;
    border-radius: 20px;
    border: 2px solid var(--light-blue);
    display: flex;
    gap: 30px;
    align-items: center;
    transition: all 0.3s ease;
    box-shadow: 0 8px 32px rgba(30, 111, 163, 0.15);
}

.main-service-content:hover {
    transform: translateY(-5px);
    background: var(--white);
    box-shadow: 0 12px 40px rgba(30, 111, 163, 0.25);
}

.main-service-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--medium-blue), var(--light-blue));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    flex-shrink: 0;
}

.main-service-icon svg {
    width: 40px;
    height: 40px;
}

.main-service-text {
    flex: 1;
}

.main-service-text h3 {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    font-weight: 700;
    color: var(--dark-blue);
    margin-bottom: 15px;
}

.main-service-description {
    font-size: 1.1rem;
    color: var(--text-gray);
    line-height: 1.8;
    margin-bottom: 20px;
}

.main-service-features {
    display: flex;
    flex-direction: row;
    gap: 30px;
    flex-wrap: wrap;
}

.main-feature-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--dark-gray);
    font-size: 1rem;
}

.main-feature-item svg {
    width: 20px;
    height: 20px;
    color: var(--medium-blue);
    flex-shrink: 0;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 0;
}

.service-card {
    background: var(--light-gray);
    padding: 40px 30px;
    border-radius: 15px;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(30, 111, 163, 0.2);
    border-color: var(--light-blue);
    background: var(--white);
}

.service-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--medium-blue), var(--light-blue));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    color: var(--white);
}

.service-icon svg {
    width: 35px;
    height: 35px;
}

.service-card h3 {
    font-size: 1.5rem;
    color: var(--dark-blue);
    margin-bottom: 15px;
    font-weight: 600;
}

.service-card p {
    color: var(--text-gray);
    margin-bottom: 20px;
    line-height: 1.8;
}

.service-card ul {
    list-style: none;
    padding: 0;
}

.service-card ul li {
    padding: 8px 0;
    color: var(--text-gray);
    position: relative;
    padding-left: 25px;
}

.service-card ul li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--medium-blue);
    font-weight: bold;
}

/* Projects Section */
.projects {
    padding: 100px 0;
    background: var(--white);
}

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

.project-card {
    background: var(--white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 2px solid transparent;
    -webkit-tap-highlight-color: transparent;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(30, 111, 163, 0.15);
    border-color: var(--light-blue);
}

.project-image {
    width: 100%;
    height: 300px;
    overflow: hidden;
    background: linear-gradient(135deg, var(--light-blue), var(--lighter-blue));
    position: relative;
}

.view-details-btn {
    width: 100%;
    margin-top: 25px;
    padding: 14px 30px;
    background: linear-gradient(135deg, var(--medium-blue), var(--light-blue));
    color: var(--white);
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(30, 111, 163, 0.3);
    pointer-events: auto;
    position: relative;
    z-index: 10;
}

.view-details-btn:hover {
    background: linear-gradient(135deg, var(--dark-blue), var(--medium-blue));
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(30, 111, 163, 0.4);
}

.view-details-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 10px rgba(30, 111, 163, 0.3);
}

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

.project-card:hover .project-image img {
    transform: scale(1.1);
}

.project-image .image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    opacity: 0.5;
}

.project-image .image-placeholder svg {
    width: 100px;
    height: 100px;
}

.project-content {
    padding: 30px;
}

.project-content::-webkit-scrollbar {
    width: 6px;
}

.project-content::-webkit-scrollbar-track {
    background: var(--light-gray);
    border-radius: 10px;
}

.project-content::-webkit-scrollbar-thumb {
    background: var(--light-blue);
    border-radius: 10px;
}

.project-content::-webkit-scrollbar-thumb:hover {
    background: var(--medium-blue);
}

.project-name {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--dark-blue);
    margin-bottom: 8px;
    font-family: 'Playfair Display', serif;
}

.project-type {
    font-size: 1rem;
    color: var(--medium-blue);
    font-weight: 600;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.project-details {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 10px 0;
    border-bottom: 1px solid var(--light-gray);
}

.detail-row:last-child {
    border-bottom: none;
}

.detail-label {
    font-weight: 600;
    color: var(--dark-gray);
    flex: 1;
}

.detail-value {
    color: var(--text-gray);
    text-align: right;
    flex: 1;
}

/* About Section */
.about {
    padding: 100px 0;
    background: linear-gradient(135deg, var(--light-gray) 0%, var(--white) 100%);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: stretch;
}

.about-text h2 {
    font-family: 'Playfair Display', serif;
    font-size: 3rem;
    color: var(--dark-blue);
    margin-bottom: 30px;
}

.about-description {
    font-size: 1.1rem;
    color: var(--text-gray);
    margin-bottom: 20px;
    line-height: 1.8;
}

.about-features {
    display: flex;
    gap: 40px;
    margin-top: 40px;
    justify-content: center;
}

.feature {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.feature-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--medium-blue);
    display: block;
}

.feature-label {
    font-size: 0.9rem;
    color: var(--text-gray);
    margin-top: 5px;
}

.about-image {
    position: relative;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.about-photo {
    width: 100%;
    height: auto;
    min-height: 500px;
    max-height: 700px;
    object-fit: contain;
    object-position: center;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    display: block;
    background: var(--light-gray);
}

.image-placeholder {
    width: 100%;
    height: 400px;
    background: linear-gradient(135deg, var(--light-blue), var(--lighter-blue));
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    opacity: 0.8;
}

.about-image .image-placeholder {
    min-height: 500px;
    max-height: 700px;
    height: auto;
}

.image-placeholder svg {
    width: 200px;
    height: 200px;
}

/* Contact Section */
.contact {
    padding: 100px 0;
    background: var(--white);
}

.contact-content {
    display: flex;
    justify-content: center;
    margin-top: 50px;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.info-item {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.info-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--medium-blue), var(--light-blue));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    flex-shrink: 0;
}

.info-icon svg {
    width: 24px;
    height: 24px;
}

.info-item h4 {
    color: var(--dark-blue);
    margin-bottom: 5px;
    font-weight: 600;
}

.info-item p {
    color: var(--text-gray);
    line-height: 1.8;
}


/* Footer */
.footer {
    background: var(--dark-blue);
    color: var(--white);
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-brand h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    margin-bottom: 15px;
    background: linear-gradient(135deg, var(--light-blue), var(--lightest-blue));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.footer-brand p {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.8;
}

.footer-links h4,
.footer-services h4,
.footer-contact h4 {
    margin-bottom: 20px;
    color: var(--light-blue);
    font-weight: 600;
}

.footer-links ul,
.footer-services ul {
    list-style: none;
}

.footer-links ul li,
.footer-services ul li {
    margin-bottom: 10px;
}

.footer-links a,
.footer-services a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover,
.footer-services a:hover {
    color: var(--light-blue);
}

.footer-contact p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 10px;
    line-height: 1.8;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.6);
}

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

/* Responsive Design */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background: var(--white);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        padding: 2rem 0;
    }

    .nav-menu.active {
        left: 0;
    }

    .hero-title {
        font-size: 3rem;
    }

    .hero-subtitle {
        font-size: 1.2rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .about-content {
        grid-template-columns: 1fr;
    }

    .contact-content {
        flex-direction: column;
        align-items: center;
    }
    
    .contact-info {
        width: 100%;
        max-width: 500px;
    }

    .about-features {
        justify-content: space-around;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .main-service-content {
        flex-direction: column;
        padding: 30px 20px;
        text-align: center;
    }

    .main-service-icon {
        margin: 0 auto;
    }

    .main-service-text h3 {
        font-size: 1.6rem;
    }

    .main-service-description {
        font-size: 1rem;
    }

    .main-service-features {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }

    .projects-grid {
        grid-template-columns: 1fr;
    }

    .logo-img {
        height: 55px;
        max-width: 200px;
    }

    .logo-text {
        font-size: 1.5rem;
    }

    .hero-logo {
        max-height: 220px;
        max-width: 450px;
    }
    
    .hero-logo::before {
        display: none;
    }
}

@media (max-width: 480px) {
    .navbar {
        padding-top: max(0.5rem, env(safe-area-inset-top)) !important;
        padding-bottom: max(0.5rem, env(safe-area-inset-bottom)) !important;
        min-height: auto !important;
        overflow: visible !important;
    }
    
    .navbar .container {
        padding: 1.5rem 15px !important;
        gap: 1rem !important;
        min-height: 80px !important;
        align-items: center !important;
        overflow: visible !important;
        display: flex !important;
    }
    
    .nav-brand {
        flex: 1 !important;
        min-width: 0 !important;
        max-width: calc(100% - 50px) !important;
        overflow: visible !important;
        position: relative !important;
        z-index: 1 !important;
        display: flex !important;
        align-items: center !important;
        height: 100% !important;
    }
    
    .logo-link {
        display: flex !important;
        align-items: center !important;
        overflow: visible !important;
        width: 100% !important;
        height: 100% !important;
        padding: 0 !important;
        margin: 0 !important;
    }
    
    .logo-img {
        height: 55px !important;
        max-width: 200px !important;
        width: auto !important;
        display: block !important;
        object-fit: contain !important;
        margin: 0 !important;
        padding: 0 !important;
        vertical-align: middle !important;
    }
    
    .logo-text {
        font-size: 1.3rem !important;
    }
    
    .hamburger {
        margin-left: 0.5rem !important;
        position: relative !important;
        z-index: 2 !important;
        flex-shrink: 0 !important;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }

    .hero-logo {
        max-height: 180px;
        max-width: 380px;
    }

    .logo-img {
        height: 45px;
        max-width: 170px;
    }

    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }

    .btn {
        width: 100%;
    }

    .project-card {
        margin: 0 10px;
    }

    .project-image {
        height: 250px;
    }

    .project-content {
        padding: 20px;
    }

    .detail-row {
        flex-direction: column;
        gap: 5px;
    }

    .detail-value {
        text-align: left;
    }
}

/* Project Modal */
.project-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    overflow-y: auto;
}

.project-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(5px);
    z-index: 10001;
}

.modal-content {
    position: relative;
    z-index: 10002;
    background: var(--white);
    border-radius: 20px;
    max-width: 1400px;
    width: 95%;
    max-height: 90vh;
    margin: 40px auto;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: modalSlideIn 0.3s ease;
    display: flex;
    flex-direction: column;
}

/* Ensure desktop version keeps original styling */
@media (min-width: 1024px) {
    .modal-content {
        width: 95% !important;
        max-width: 1400px !important;
        height: auto !important;
        max-height: 90vh !important;
        margin: 40px auto !important;
        border-radius: 20px !important;
    }
}

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

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10003;
    transition: all 0.3s ease;
    color: var(--dark-blue);
}

.modal-close:hover {
    background: var(--white);
    transform: rotate(90deg);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.modal-close svg {
    width: 20px;
    height: 20px;
}

.modal-body {
    display: flex;
    flex-direction: row;
    max-height: 90vh;
    overflow: hidden;
    width: 100%;
    min-height: 500px;
}

/* Desktop: Side-by-side layout */
@media (min-width: 1024px) {
    .modal-body {
        flex-direction: row !important;
        display: flex !important;
    }
    
    .modal-media-container {
        width: 50% !important;
        flex: 0 0 50% !important;
        flex-shrink: 0 !important;
        display: flex !important;
        flex-direction: column !important;
        border-right: 2px solid var(--light-gray) !important;
        min-width: 0 !important;
        max-width: 50% !important;
    }
    
    .modal-main-media {
        width: 100% !important;
        height: 60vh !important;
        flex: 1 !important;
        min-height: 400px !important;
        max-height: 60vh !important;
    }
    
    .modal-media-gallery {
        flex-shrink: 0 !important;
        border-top: 2px solid var(--light-gray) !important;
        border-right: none !important;
    }
    
    .modal-details {
        width: 50% !important;
        flex: 0 0 50% !important;
        flex-shrink: 0 !important;
        padding: 40px !important;
        overflow-y: auto !important;
        overflow-x: hidden !important;
        max-height: 90vh !important;
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        background: var(--white) !important;
        position: relative !important;
        min-width: 0 !important;
        max-width: 50% !important;
    }
}

/* Tablet and below: Stacked layout - Full screen on mobile */
@media (max-width: 1023px) {
    .modal-content {
        width: 100% !important;
        max-width: 100% !important;
        height: 100vh !important;
        max-height: 100vh !important;
        margin: 0 !important;
        border-radius: 0 !important;
        display: flex !important;
        flex-direction: column !important;
    }
    
    .modal-body {
        flex-direction: column !important;
        height: 100% !important;
        max-height: 100% !important;
        overflow: hidden !important;
        display: flex !important;
        flex: 1 1 auto !important;
    }
    
    .modal-media-container {
        width: 100% !important;
        flex-shrink: 0 !important;
        flex: 0 0 auto !important;
    }
    
    .modal-details {
        width: 100% !important;
        max-width: 100% !important;
        flex: 1 1 0 !important;
        min-height: 0 !important;
        overflow-y: auto !important;
        overflow-x: hidden !important;
        -webkit-overflow-scrolling: touch !important;
        position: relative !important;
        z-index: 1 !important;
        touch-action: pan-y !important;
    }
    
    .modal-details .project-details {
        width: 100% !important;
        max-width: 100% !important;
    }
    
    .modal-details .detail-row {
        width: 100% !important;
        max-width: 100% !important;
    }
    
    .modal-details .detail-label {
        min-width: auto !important;
        width: 100% !important;
    }
    
    .modal-details .detail-value {
        width: 100% !important;
    }
    
    .modal-main-media {
        height: 40vh !important;
        min-height: 250px !important;
        max-height: 400px !important;
        flex-shrink: 0 !important;
        flex: 0 0 auto !important;
    }
    
    .modal-media-container {
        flex: 0 0 auto !important;
    }
}

.modal-media-container {
    width: 100%;
    position: relative;
    display: flex;
    flex-direction: column;
}

.modal-main-media {
    width: 100%;
    height: 400px;
    overflow: hidden;
    background: linear-gradient(135deg, var(--light-blue), var(--lighter-blue));
    position: relative;
    flex-shrink: 0;
}

.modal-main-image,
.modal-main-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.modal-main-video {
    background: #000;
}

/* Hide volume controls in video */
.modal-main-video::-webkit-media-controls-volume-slider {
    display: none !important;
}

.modal-main-video::-webkit-media-controls-mute-button {
    display: none !important;
}

.modal-main-video::-webkit-media-controls-volume-control-container {
    display: none !important;
}

/* Hide 10-second skip forward/backward buttons that create shadows */
.modal-main-video::-webkit-media-controls-timeline {
    display: none !important;
}

/* Hide the center overlay play button that creates shadow on autoplay */
.modal-main-video::-webkit-media-controls-overlay-play-button {
    display: none !important;
}

/* Hide play/pause button in the center overlay */
.modal-main-video::-webkit-media-controls-play-button {
    display: none !important;
}

/* Make controls less intrusive - hide by default, show on interaction */
.modal-main-video {
    -moz-appearance: none;
    -webkit-appearance: none;
}

/* Hide controls initially to prevent shadow on autoplay */
.modal-main-video::-webkit-media-controls-panel {
    opacity: 0 !important;
    transition: opacity 0.5s ease !important;
}

/* Show controls on hover or when video is paused */
.modal-main-video:hover::-webkit-media-controls-panel,
.modal-main-video:focus::-webkit-media-controls-panel,
.modal-main-video[data-show-controls]::-webkit-media-controls-panel {
    opacity: 1 !important;
}

.modal-media-gallery {
    padding: 15px 20px;
    background: var(--light-gray);
    border-top: 2px solid var(--light-blue);
}

.media-thumbnails {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding: 5px 0;
    scrollbar-width: thin;
    scrollbar-color: var(--light-blue) var(--light-gray);
}

.media-thumbnails::-webkit-scrollbar {
    height: 6px;
}

.media-thumbnails::-webkit-scrollbar-track {
    background: var(--light-gray);
    border-radius: 10px;
}

.media-thumbnails::-webkit-scrollbar-thumb {
    background: var(--light-blue);
    border-radius: 10px;
}

.media-thumbnail {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    position: relative;
}

.media-thumbnail:hover {
    border-color: var(--medium-blue);
    transform: scale(1.05);
}

.media-thumbnail.active {
    border-color: var(--dark-blue);
    box-shadow: 0 0 0 2px var(--white), 0 0 0 4px var(--dark-blue);
}

.media-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.media-thumbnail.video-thumbnail::after {
    content: '▶';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: var(--white);
    font-size: 20px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    pointer-events: none;
}

.modal-details {
    padding: 40px !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    width: 50% !important;
    flex: 0 0 50% !important;
    background: var(--white) !important;
    position: relative !important;
    z-index: 1 !important;
    min-width: 0 !important;
}

/* Custom scrollbar for modal details */
.modal-details::-webkit-scrollbar {
    width: 8px;
}

.modal-details::-webkit-scrollbar-track {
    background: var(--light-gray);
    border-radius: 10px;
}

.modal-details::-webkit-scrollbar-thumb {
    background: var(--light-blue);
    border-radius: 10px;
}

.modal-details::-webkit-scrollbar-thumb:hover {
    background: var(--medium-blue);
}

.modal-details .project-name {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.modal-details .project-type {
    font-size: 1.2rem;
    margin-bottom: 30px;
}

.modal-details .project-details {
    gap: 15px;
}

.modal-details .detail-row {
    padding: 12px 0;
    border-bottom: 1px solid var(--light-gray);
}

.modal-details .detail-row:last-child {
    border-bottom: none;
}

.modal-details .detail-label {
    font-weight: 600;
    color: var(--dark-blue);
    min-width: 200px;
    flex: 0 0 auto;
}

.modal-details .detail-value {
    color: var(--text-gray);
    text-align: right;
    flex: 1;
    min-width: 0;
}

/* Mobile responsive for View Details button */
@media (max-width: 768px) {
    .view-details-btn {
        padding: 12px 25px;
        font-size: 0.9rem;
        letter-spacing: 1px;
    }
}

/* Mobile Responsive for Modal */
@media (max-width: 768px) {
    .modal-content {
        width: 100% !important;
        max-width: 100% !important;
        height: 100vh !important;
        max-height: 100vh !important;
        margin: 0 !important;
        border-radius: 0 !important;
        overflow: hidden;
        display: flex !important;
        flex-direction: column !important;
    }
    
    .modal-body {
        height: 100% !important;
        max-height: 100% !important;
        overflow: hidden !important;
        display: flex !important;
        flex-direction: column !important;
        flex: 1 1 auto !important;
    }

    .modal-close {
        top: 15px;
        right: 15px;
        width: 40px;
        height: 40px;
        z-index: 10003;
    }

    .modal-close svg {
        width: 20px;
        height: 20px;
    }

    .modal-main-media {
        height: 35vh !important;
        min-height: 200px !important;
        max-height: 350px !important;
        flex: 0 0 auto !important;
        flex-shrink: 0 !important;
    }
    
    .media-thumbnail {
        width: 60px;
        height: 60px;
    }

    .modal-details {
        padding: 20px 15px;
        flex: 1 1 0 !important;
        min-height: 0 !important;
        overflow-y: auto !important;
        -webkit-overflow-scrolling: touch !important;
        touch-action: pan-y !important;
        width: 100% !important;
        max-width: 100% !important;
    }
    
    .modal-details .project-details {
        width: 100% !important;
        max-width: 100% !important;
    }
    
    .modal-details .detail-row {
        width: 100% !important;
        max-width: 100% !important;
    }
    
    .modal-details .detail-label {
        min-width: auto !important;
        width: 100% !important;
    }
    
    .modal-details .detail-value {
        width: 100% !important;
    }
    
    .modal-media-container {
        flex: 0 0 auto !important;
        flex-shrink: 0 !important;
    }

    .modal-details .project-name {
        font-size: 1.8rem;
    }

    .modal-details .project-type {
        font-size: 1rem;
    }

    .modal-details {
        width: 100% !important;
        max-width: 100% !important;
    }
    
    .modal-details .project-details {
        width: 100% !important;
        max-width: 100% !important;
    }
    
    .modal-details .detail-row {
        flex-direction: column;
        gap: 5px;
        padding: 10px 0;
        width: 100% !important;
        max-width: 100% !important;
    }

    .modal-details .detail-label {
        min-width: auto !important;
        width: 100% !important;
        font-size: 0.9rem;
        flex: 0 0 auto !important;
    }

    .modal-details .detail-value {
        text-align: left;
        font-size: 0.95rem;
        width: 100% !important;
        flex: 0 0 auto !important;
    }

    .view-details {
        font-size: 1rem;
        padding: 12px 20px;
        letter-spacing: 1px;
    }
}

@media (max-width: 480px) {
    .modal-content {
        width: 100% !important;
        max-width: 100% !important;
        height: 100vh !important;
        max-height: 100vh !important;
        margin: 0 !important;
        border-radius: 0 !important;
        overflow: hidden;
        display: flex !important;
        flex-direction: column !important;
    }
    
    .modal-body {
        height: 100% !important;
        max-height: 100% !important;
        overflow: hidden !important;
        display: flex !important;
        flex-direction: column !important;
        flex: 1 1 auto !important;
    }
    
    .modal-main-media {
        height: 30vh !important;
        min-height: 180px !important;
        max-height: 300px !important;
        flex: 0 0 auto !important;
        flex-shrink: 0 !important;
    }
    
    .modal-details {
        padding: 15px 12px;
        flex: 1 1 0 !important;
        min-height: 0 !important;
        overflow-y: auto !important;
        -webkit-overflow-scrolling: touch !important;
        touch-action: pan-y !important;
        width: 100% !important;
        max-width: 100% !important;
    }
    
    .modal-details .project-details {
        width: 100% !important;
        max-width: 100% !important;
    }
    
    .modal-details .detail-row {
        width: 100% !important;
        max-width: 100% !important;
    }
    
    .modal-details .detail-label {
        min-width: auto !important;
        width: 100% !important;
    }
    
    .modal-details .detail-value {
        width: 100% !important;
    }
    
    .modal-media-container {
        flex: 0 0 auto !important;
        flex-shrink: 0 !important;
    }

    .modal-image-container {
        height: 200px;
    }

    .modal-details {
        padding: 20px 15px;
    }

    .modal-details .project-name {
        font-size: 1.5rem;
    }
}

