/* --- Modern 3D / Neumorphism Design Variables --- */
:root {
    --primary-color: #003366;
    /* Deep Blue - Trust & Professionalism */
    --primary-dark: #002244;
    --accent-color: #007bff;
    /* Bright Blue - Call to Actions */
    --accent-hover: #0056b3;

    --bg-body: #f4f7f6;
    /* Very light grey/blue tint */
    --bg-white: #ffffff;
    --bg-section-alt: #eef2f5;

    --text-main: #2c3e50;
    --text-light: #6c757d;
    --text-white: #ffffff;

    /* 3D Shadows */
    --shadow-sm: 5px 5px 10px #d1d9e6, -5px -5px 10px #ffffff;
    --shadow-md: 8px 8px 16px #d1d9e6, -8px -8px 16px #ffffff;
    --shadow-lg: 15px 15px 30px #d1d9e6, -15px -15px 30px #ffffff;
    --shadow-hover: 20px 20px 40px #d1d9e6, -20px -20px 40px #ffffff;
    --shadow-inset: inset 5px 5px 10px #d1d9e6, inset -5px -5px 10px #ffffff;

    --border-radius: 16px;
    --transition: all 0.3s ease;
}

/* Dark Mode Variables */
html.dark {
    --primary-color: #4a90e2;
    /* Lighter blue for dark mode contrast */
    --primary-dark: #357abd;
    --accent-color: #007bff;
    --accent-hover: #0056b3;

    --bg-body: #121212;
    --bg-white: #1e1e1e;
    --bg-section-alt: #181818;

    --text-main: #e0e0e0;
    --text-light: #a0a0a0;
    --text-white: #ffffff;

    /* Dark Mode Shadows (Inverted/Subtler) */
    --shadow-sm: 5px 5px 10px #0a0a0a, -5px -5px 10px #2a2a2a;
    --shadow-md: 8px 8px 16px #0a0a0a, -8px -8px 16px #2a2a2a;
    --shadow-lg: 15px 15px 30px #0a0a0a, -15px -15px 30px #2a2a2a;
    --shadow-hover: 20px 20px 40px #0a0a0a, -20px -20px 40px #2a2a2a;
    --shadow-inset: inset 5px 5px 10px #0a0a0a, inset -5px -5px 10px #2a2a2a;

    --image-opacity: 0.85;
}

/* Dark Mode Specific Adjustments */
html.dark .logo {
    color: #ffffff;
}

html.dark .service-card,
html.dark .news-card,
html.dark .team-placeholder-card,
html.dark .contact-card {
    border: 1px solid rgba(255, 255, 255, 0.05);
}

html.dark header {
    background-color: rgba(30, 30, 30, 0.95);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

html.dark .image-card-3d {
    border-color: var(--bg-white);
    opacity: var(--image-opacity);
}

html.dark .hero-overlay {
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.9), rgba(0, 30, 60, 0.7));
}

html.dark .footer-top {
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

html.dark .opening-hours li {
    border-bottom: 1px dashed rgba(255, 255, 255, 0.05);
}

/* --- Global Reset & Typography --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Montserrat', sans-serif;
    background-color: var(--bg-body);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    font-size: 16px;
}

h1,
h2,
h3,
h4 {
    color: var(--primary-color);
    font-weight: 700;
    line-height: 1.2;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* --- Buttons --- */
.btn {
    display: inline-block;
    padding: 14px 35px;
    border-radius: 50px;
    /* Pill shape */
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--accent-color);
    color: white;
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.4);
}

.btn-primary:hover {
    background: var(--accent-hover);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 123, 255, 0.5);
}

.btn-secondary {
    background: var(--primary-color);
    color: white;
    box-shadow: 0 4px 15px rgba(0, 51, 102, 0.4);
}

.btn-secondary:hover {
    background: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 51, 102, 0.5);
}

.btn-outline {
    background: transparent;
    border: 2px solid white;
    color: white;
    margin-left: 15px;
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-3px);
}

/* --- Header & Nav --- */
header {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 15px 0;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.05);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.logo span {
    color: var(--accent-color);
}

.header-right {
    display: flex;
    align-items: center;
}

.phone-contact {
    margin-right: 35px;
    font-weight: 600;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    font-size: 0.95rem;
}

.phone-contact i {
    margin-right: 8px;
    color: var(--accent-color);
}

nav ul {
    display: flex;
    list-style: none;
    align-items: center;
}

nav ul li {
    margin-left: 25px;
}

nav ul li a {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-main);
    position: relative;
    padding: 5px 0;
}

nav ul li a:not(.nav-btn-login)::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0%;
    height: 2px;
    background: var(--accent-color);
    transition: 0.3s;
}

nav ul li a:not(.nav-btn-login):hover::after {
    width: 100%;
}

nav ul li a:not(.nav-btn-login):hover {
    color: var(--accent-color);
}

.desktop-only {
    display: inline-block;
}

.separator {
    color: #ddd;
    margin: 0 5px;
}

.nav-btn-login {
    color: var(--accent-color) !important;
    border: 2px solid var(--accent-color);
    padding: 8px 20px !important;
    border-radius: 30px;
    transition: all 0.3s;
}

.nav-btn-login:hover {
    background: var(--accent-color);
    color: white !important;
    box-shadow: 0 4px 10px rgba(0, 123, 255, 0.3);
}

.theme-toggle-btn {
    background: transparent;
    border: none;
    color: var(--text-main);
    font-size: 1.2rem;
    cursor: pointer;
    padding: 5px;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
}

.theme-toggle-btn:hover {
    background-color: var(--bg-section-alt);
    color: var(--accent-color);
    transform: rotate(15deg);
}

html.dark .theme-toggle-btn {
    color: #fbbf24;
    /* Amber/Yellow for Sun icon */
}

html.dark .theme-toggle-btn:hover {
    background-color: rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 15px rgba(251, 191, 36, 0.3);
}

.menu-toggle {
    display: none;
    font-size: 1.8rem;
    color: var(--primary-color);
    cursor: pointer;
}

/* --- Hero Section --- */
#hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    background: url('../landing/images/hero_bg.png') no-repeat center center/cover;
    margin-top: 0;
    /* Cover entire screen including under header */
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 51, 102, 0.9), rgba(0, 51, 102, 0.6));
}

.hero-content {
    position: relative;
    z-index: 10;
    color: white;
    max-width: 800px;
    padding-top: 60px;
}

#hero h1 {
    color: white;
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 25px;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.3);
}

#hero p {
    font-size: 1.4rem;
    margin-bottom: 40px;
    opacity: 0.95;
    font-weight: 300;
}

/* Animations */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s forwards;
}

.delay-1 {
    animation-delay: 0.2s;
}

.delay-2 {
    animation-delay: 0.4s;
}

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

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

.section-alt {
    background-color: var(--bg-section-alt);
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.section-header h2::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: var(--accent-color);
    margin: 15px auto 0;
    border-radius: 2px;
}

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

.section-header-left {
    margin-bottom: 30px;
}

.section-header-left h2 {
    font-size: 2.2rem;
    margin-bottom: 15px;
}

.divider {
    width: 60px;
    height: 4px;
    background: var(--accent-color);
    border-radius: 2px;
}

/* --- Services Grid (3D Cards) --- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
}

.service-card {
    background: var(--bg-white);
    padding: 40px 30px;
    border-radius: var(--border-radius);
    text-align: center;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.7);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 6px;
    height: 100%;
    background: var(--accent-color);
    opacity: 0;
    transition: var(--transition);
}

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

.service-card:hover::before {
    opacity: 1;
}

.icon-wrapper {
    width: 80px;
    height: 80px;
    background: var(--bg-section-alt);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    font-size: 2rem;
    color: var(--accent-color);
    box-shadow: var(--shadow-inset);
}

.service-card h3 {
    margin-bottom: 15px;
    font-size: 1.4rem;
}

.service-card p {
    color: var(--text-light);
    font-size: 0.95rem;
}

/* --- Split Layouts --- */
.split-layout {
    display: flex;
    align-items: center;
    gap: 60px;
}

.split-layout.reverse {
    flex-direction: row-reverse;
}

.split-text {
    flex: 1;
}

.split-text h3 {
    color: var(--text-main);
    font-size: 1.8rem;
    margin-bottom: 20px;
}

.split-text p {
    margin-bottom: 20px;
    color: var(--text-light);
}

.split-image {
    flex: 1;
}

.image-card-3d {
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    border: 8px solid var(--bg-white);
    transform: perspective(1000px) rotateY(-5deg);
    transition: var(--transition);
}

.reverse .image-card-3d {
    transform: perspective(1000px) rotateY(5deg);
}

.split-layout:hover .image-card-3d {
    transform: perspective(1000px) rotateY(0deg);
}

.image-card-3d img {
    width: 100%;
    height: auto;
    display: block;
}

/* Stats */
.stats-row {
    display: flex;
    gap: 40px;
    margin: 30px 0;
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--accent-color);
    line-height: 1;
}

.stat-label {
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--primary-color);
}

/* Checklist */
.check-list {
    list-style: none;
    margin: 25px 0;
}

.check-list li {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    font-weight: 500;
    color: var(--text-main);
}

.check-list li i {
    color: #28a745;
    /* Success Green */
    margin-right: 15px;
    font-size: 1.2rem;
}

/* --- Team Section --- */
.team-placeholder-card {
    background: var(--bg-white);
    padding: 60px;
    border-radius: var(--border-radius);
    text-align: center;
    box-shadow: var(--shadow-lg);
    max-width: 800px;
    margin: 0 auto;
}

.placeholder-icon {
    font-size: 4rem;
    color: var(--bg-section-alt);
    margin-bottom: 20px;
}

.coming-soon {
    margin-top: 15px;
    font-family: inherit;
    font-style: italic;
    color: var(--accent-color);
    font-weight: 600;
}

/* --- News Section --- */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 35px;
}

.news-card {
    background: var(--bg-white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

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

.news-image-wrapper {
    position: relative;
    height: 220px;
    overflow: hidden;
}

.news-image {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: transform 0.5s ease;
}

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

.news-date {
    position: absolute;
    bottom: 0;
    left: 20px;
    background: var(--accent-color);
    color: white;
    padding: 10px 15px;
    text-align: center;
    border-radius: 10px 10px 0 0;
    box-shadow: 0 -5px 15px rgba(0, 0, 0, 0.1);
}

.news-date .day {
    display: block;
    font-size: 1.2rem;
    font-weight: 700;
    line-height: 1;
}

.news-date .month {
    display: block;
    font-size: 0.8rem;
    text-transform: uppercase;
}

.news-content {
    padding: 30px 25px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.news-content h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: var(--text-main);
}

.news-content p {
    color: var(--text-light);
    font-size: 0.95rem;
    margin-bottom: 20px;
    flex: 1;
}

.read-more {
    color: var(--accent-color);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
}

.read-more i {
    margin-left: 8px;
    transition: transform 0.2s;
}

.read-more:hover i {
    transform: translateX(5px);
}

/* --- Footer --- */
footer {
    background-color: var(--primary-color);
    color: white;
    padding-top: 80px;
}

.footer-top {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 50px;
    padding-bottom: 50px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-col h3 {
    color: white;
    margin-bottom: 25px;
    font-size: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.contact-card {
    background: rgba(255, 255, 255, 0.05);
    padding: 25px;
    border-radius: 15px;
    backdrop-filter: blur(5px);
}

.contact-row {
    display: flex;
    align-items: flex-start;
    margin-bottom: 15px;
}

.contact-row:last-child {
    margin-bottom: 0;
}

.contact-row i {
    color: var(--accent-color);
    margin-top: 5px;
    margin-right: 15px;
    font-size: 1.1rem;
}

.opening-hours,
.footer-nav {
    list-style: none;
}

.opening-hours li {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
    color: rgba(255, 255, 255, 0.8);
    border-bottom: 1px dashed rgba(255, 255, 255, 0.1);
    padding-bottom: 5px;
}

.opening-hours li.note {
    border: none;
    font-size: 0.9rem;
    margin-top: 15px;
    font-style: italic;
    color: rgba(255, 255, 255, 0.6);
}

.footer-nav li {
    margin-bottom: 12px;
}

.footer-nav a {
    color: rgba(255, 255, 255, 0.8);
    transition: var(--transition);
}

.footer-nav a:hover {
    color: white;
    padding-left: 5px;
}

.footer-bottom {
    padding: 30px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
}

.footer-legal a {
    color: rgba(255, 255, 255, 0.6);
}

.footer-legal a:hover {
    color: white;
}

.footer-legal .sep {
    margin: 0 10px;
}

/* --- Responsive Media Queries --- */

/* Tablet & Smaller Laptops */
@media (max-width: 1024px) {
    .container {
        width: 95%;
    }

    #hero h1 {
        font-size: 3rem;
    }

    .split-layout {
        flex-direction: column !important;
        gap: 40px;
        text-align: center;
    }

    .section-header-left {
        text-align: center;
    }

    .section-header-left .divider {
        margin: 15px auto 0;
    }

    .stats-row {
        justify-content: center;
    }

    .check-list li {
        justify-content: center;
    }

    .image-card-3d,
    .reverse .image-card-3d {
        transform: none !important;
        max-width: 600px;
        margin: 0 auto;
    }

    .footer-top {
        grid-template-columns: 1fr 1fr;
    }

    .links-col {
        grid-column: span 2;
        text-align: center;
    }
}

/* Mobile Devices */
@media (max-width: 768px) {
    .header-content {
        padding: 0 10px;
    }

    .phone-contact,
    .desktop-only {
        display: none;
    }

    .menu-toggle {
        display: block;
    }

    .header-right {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background-color: var(--bg-white);
        flex-direction: column;
        justify-content: center;
        transition: 0.3s;
        box-shadow: none;
        padding: 20px;
    }

    .header-right.active {
        left: 0;
    }

    nav ul {
        flex-direction: column;
        gap: 20px;
    }

    nav ul li {
        margin: 0;
    }

    nav ul li a {
        font-size: 1.2rem;
    }

    #hero h1 {
        font-size: 2.2rem;
    }

    #hero p {
        font-size: 1.1rem;
    }

    .hero-buttons {
        display: flex;
        flex-direction: column;
        gap: 15px;
    }

    .btn-outline {
        margin-left: 0;
    }

    .landing-logo img {
        height: 40px;
    }

    .footer-top {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .links-col {
        grid-column: auto;
    }

    .footer-bottom {
        flex-direction: column-reverse;
        gap: 20px;
    }

    .contact-row {
        justify-content: center;
    }
}
/* --- Advertisement Modal --- */
.welcome-modal {
    display: none; /* Hidden by default */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    z-index: 2000;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.5s ease;
    backdrop-filter: blur(5px);
}

.welcome-modal.active {
    opacity: 1;
}

.welcome-modal-content {
    width: 90%;
    max-width: 1000px;
    height: auto;
    aspect-ratio: 16/9;
    background: #000;
    position: relative;
    border-radius: 20px;
    box-shadow: 0 0 50px rgba(0,0,0,0.5);
    overflow: hidden;
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.welcome-modal.active .welcome-modal-content {
    transform: scale(1);
}

.welcome-close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 1px solid rgba(255,255,255,0.4);
    border-radius: 30px;
    padding: 8px 20px;
    cursor: pointer;
    z-index: 10;
    font-weight: 600;
    backdrop-filter: blur(5px);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
}

.welcome-close-btn:hover {
    background: rgba(239, 68, 68, 0.8); /* Red hover */
    border-color: transparent;
    transform: scale(1.05);
}

.welcome-iframe-container {
    width: 100%;
    height: 100%;
}

.welcome-iframe-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* Mobile Responsive Ad */
@media (max-width: 768px) {
    .welcome-modal-content {
        width: 95%;
        aspect-ratio: auto;
        height: 60vh; /* Taller on mobile if needed, or stick to ratio */
    }
    
    .welcome-close-btn {
        top: 15px;
        right: 15px;
        padding: 6px 15px;
        font-size: 0.8rem;
    }
}
