:root {
    /* Color Palette */
    --bg-dark: #0A0A0A;
    --bg-darker: #000000;
    --bg-card: #141414;
    --gold-primary: #D4AF37;
    --gold-hover: #F2CA47;
    --text-main: #E2E8F0;
    --text-muted: #94A3B8;
    --border-color: rgba(212, 175, 55, 0.2);

    /* Typography */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;

    /* Effects */
    --transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    --glass-shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.7);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
    overflow-x: hidden;
    width: 100%;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    width: 100%;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 600;
    line-height: 1.2;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.text-gold {
    color: var(--gold-primary);
}

.text-white {
    color: #fff !important;
}

.section-padding {
    padding: 100px 0;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.bg-darker {
    background-color: var(--bg-darker);
}

.text-center {
    text-align: center;
}

.mb-4 {
    margin-bottom: 1.5rem;
}

.mt-4 {
    margin-top: 1.5rem;
}

.mt-5 {
    margin-top: 3rem;
}

.relative {
    position: relative;
}

.z-10 {
    z-index: 10;
}

/* Section Background Images */
.bg-image-section {
    position: relative;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.bg-image-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    z-index: 1;
}

.bg-image-section>.container {
    position: relative;
    z-index: 2;
}

/* Buttons */
.btn-primary,
.btn-secondary {
    display: inline-block;
    padding: 16px 36px;
    border-radius: 4px;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
    border: none;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: linear-gradient(135deg, var(--gold-primary), #B38F1F);
    color: #000;
    box-shadow: 0 4px 20px rgba(212, 175, 55, 0.3);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--gold-hover), var(--gold-primary));
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 25px rgba(212, 175, 55, 0.5);
}

.btn-secondary {
    background: transparent;
    color: var(--gold-primary);
    border: 2px solid var(--gold-primary);
}

.btn-secondary:hover {
    background: rgba(212, 175, 55, 0.1);
    transform: translateY(-3px);
}

.w-100 {
    width: 100%;
}

/* Splash Screen */
.splash-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: var(--bg-dark);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.8s ease-out, visibility 0.8s ease-out;
}

.splash-screen.hidden {
    opacity: 0;
    visibility: hidden;
}

.splash-content {
    display: flex;
    align-items: center;
    justify-content: center;
    animation: splashZoomIn 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.splash-logo {
    height: 400px;
    /* Increased size to make the logo larger and more prominent */
    width: auto;
}

@keyframes splashZoomIn {
    0% {
        opacity: 0;
        transform: scale(0.9);
        filter: blur(4px);
    }

    100% {
        opacity: 1;
        transform: scale(1);
        filter: blur(0);
    }
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 20px 0;
    transition: var(--transition);
    border-bottom: 1px solid transparent;
}

.header.scrolled {
    background: rgba(5, 8, 12, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    margin-left: -20px;
}

.logo img {
    height: 80px;
    width: auto;
    max-width: none;
    transform: scale(2.0);
    transform-origin: left center;
    transition: var(--transition);
}

.header.scrolled .logo img {
    transform: scale(1.1);
}

.nav-menu {
    margin-left: auto;
}

.nav-menu ul {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-menu ul li {
    display: flex;
    align-items: center;
}

.nav-menu a {
    font-family: var(--font-heading);
    font-weight: 500;
    font-size: 1rem;
    color: var(--text-main);
}

.nav-menu a:not(.btn-primary):hover,
.nav-menu a.active:not(.btn-primary) {
    color: var(--gold-primary);
}

.mobile-menu-btn {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 6px;
    z-index: 1001;
}

.mobile-menu-btn span {
    display: block;
    width: 28px;
    height: 2px;
    background-color: var(--text-main);
    transition: var(--transition);
}

/* Hero & Parallax */
.parallax-hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.page-header {
    height: 60vh;
    min-height: 400px;
}

.parallax-bg {
    position: absolute;
    top: -20%;
    left: 0;
    width: 100%;
    height: 140%;
    z-index: -1;
}

.parallax-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(5, 8, 12, 0.7) 0%, rgba(5, 8, 12, 0.9) 100%);
}

.hero-content {
    max-width: 1200px;
    width: 100%;
    padding: 0 24px;
    z-index: 10;
}

.hero-content h1,
.page-header h1 {
    font-size: 5rem;
    font-weight: 800;
    margin-bottom: 24px;
    letter-spacing: -1px;
    line-height: 1.1;
}

.hero-content p,
.page-header p {
    font-size: 1.25rem;
    max-width: 600px;
    margin-bottom: 40px;
    color: var(--text-muted);
}

.hero-buttons {
    display: flex;
    gap: 20px;
}

/* Typing Text */
.typing-cursor {
    display: inline-block;
    color: var(--gold-primary);
    animation: blink 1s step-start infinite;
}

@keyframes blink {
    50% {
        opacity: 0;
    }
}

/* Shared Section Styles */
.section-subtitle {
    color: var(--gold-primary);
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 8px;
}

.section-title {
    font-size: 3.5rem;
    margin-bottom: 24px;
}

.section-desc {
    color: var(--text-muted);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto 48px;
}

/* About Detailed */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.company-info {
    display: flex;
    gap: 32px;
    border-top: 1px solid var(--border-color);
    padding-top: 24px;
}

.info-label {
    font-size: 0.875rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.info-value {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--gold-primary);
}

.glow-border {
    border-radius: 8px;
    border: 1px solid var(--border-color);
    box-shadow: 0 0 30px rgba(212, 175, 55, 0.1);
}

/* Stats Counters */
.stats-grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    text-align: center;
}

.stat-card {
    background: var(--bg-card);
    padding: 40px 20px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.stat-number {
    display: inline-block;
    font-family: var(--font-heading);
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--gold-primary);
}

.stat-label {
    color: var(--text-main);
    font-weight: 500;
    font-size: 1.1rem;
    margin-top: 10px;
}

/* Core Values */
.values-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    margin-top: 40px;
}

.value-box {
    background: var(--bg-card);
    padding: 40px;
    border-radius: 8px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: var(--transition);
}

.value-box:hover {
    transform: translateY(-10px);
    border-color: var(--gold-primary);
    box-shadow: var(--glass-shadow);
}

.value-box .icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

.value-box h3 {
    color: var(--gold-primary);
    font-size: 1.5rem;
    margin-bottom: 16px;
}

/* Services Detailed */
.service-row {
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.row-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.row-grid.reverse {
    grid-template-columns: 1fr 1fr;
}

.row-grid.reverse .row-img {
    order: 2;
}

.row-grid.reverse .row-text {
    order: 1;
}

.service-list {
    list-style: none;
    margin-top: 24px;
}

.service-list li {
    margin-bottom: 12px;
    font-weight: 500;
    color: var(--text-main);
}

.text-link {
    color: var(--gold-primary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 16px;
    display: inline-block;
}

.text-link:hover {
    color: #fff;
    transform: translateX(5px);
}

/* Hover Zoom Image */
.hover-zoom {
    overflow: hidden;
    border-radius: 8px;
}

.hover-zoom img {
    transition: transform 0.6s ease;
}

.hover-zoom:hover img {
    transform: scale(1.05);
}

/* Home Services Grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
}

.service-card {
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    overflow: hidden;
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-10px);
    border-color: var(--border-color);
    box-shadow: var(--glass-shadow);
}

.service-img {
    height: 260px;
    position: relative;
    overflow: hidden;
}

.service-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.service-card:hover .service-img img {
    transform: scale(1.05);
}

.service-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, var(--bg-card) 0%, transparent 100%);
}

.service-content {
    padding: 32px;
}

.service-content h3 {
    font-size: 1.5rem;
    margin-bottom: 16px;
    color: var(--gold-primary);
}

/* Contact Page */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 60px;
}

.contact-card {
    background: var(--bg-card);
    padding: 40px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 30px;
}

.contact-item h5 {
    color: var(--gold-primary);
    margin-bottom: 4px;
    font-size: 1.1rem;
}

.glow-icon {
    font-size: 1.5rem;
    background: rgba(212, 175, 55, 0.1);
    padding: 15px;
    border-radius: 50%;
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.2);
}

.contact-form {
    background: var(--bg-card);
    padding: 50px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text-muted);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 16px;
    border-radius: 4px;
    color: var(--text-main);
    font-family: var(--font-body);
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--gold-primary);
    background: rgba(0, 0, 0, 0.6);
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.2);
}

.form-message {
    margin-top: 16px;
    text-align: center;
    font-weight: 500;
}

/* Complex Application Form */
.application-form {
    max-width: 900px;
    margin: 0 auto;
    font-family: 'Open Sans', var(--font-body);
}

.form-panel {
    background: #ffffff;
    border-radius: 2px;
    border: 1px solid #dcdcdc;
    margin-bottom: 24px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.panel-header {
    background: #2f365f;
    color: #ffffff;
    padding: 12px 20px;
    text-align: center;
    font-size: 1.1rem;
    font-weight: 500;
    border-bottom: 1px solid #2f365f;
}

.panel-subheader {
    background: #d7465f;
    color: #ffffff;
    padding: 8px 20px;
    text-align: center;
    font-size: 0.9rem;
    font-weight: 500;
}

.panel-body {
    padding: 30px;
    color: #333333;
}

.form-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.form-grid-3 {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 20px;
}

.form-group {
    margin-bottom: 15px;
}

.form-group.flex-row {
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.form-group.flex-row label {
    width: 35%;
    margin-bottom: 0;
    text-align: right;
    padding-right: 15px;
    color: #333333;
    font-size: 0.9rem;
    font-weight: 500;
}

.form-group.flex-row input,
.form-group.flex-row select,
.form-group.flex-row textarea {
    width: 65%;
    max-width: 350px;
}

.required-star {
    color: #d7465f;
    margin-right: 4px;
    font-weight: bold;
}

.form-group input,
.form-group select,
.form-group textarea {
    background: #ffffff;
    border: 1px solid #cccccc;
    padding: 8px 12px;
    border-radius: 2px;
    color: #333333;
    font-size: 0.95rem;
    transition: all 0.2s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #2f365f;
    box-shadow: 0 0 5px rgba(47, 54, 95, 0.3);
}

/* Tables for History/References */
.history-table-container {
    border: 1px solid #dcdcdc;
    margin-bottom: 15px;
    overflow: hidden;
}

.history-table {
    width: 100%;
    border-collapse: collapse;
}

.history-table th {
    background: #2f365f;
    color: #ffffff;
    padding: 10px;
    font-weight: 500;
    font-size: 0.9rem;
    text-align: center;
}

.history-table td {
    background: #ffffff;
    color: #666666;
    padding: 12px 10px;
    text-align: center;
    font-style: italic;
    font-size: 0.9rem;
    border-top: 1px solid #dcdcdc;
}

.add-btn-container {
    text-align: center;
    margin-top: 15px;
}

.btn-dark {
    background: #2f365f;
    color: #ffffff;
    border: none;
    padding: 10px 24px;
    border-radius: 2px;
    cursor: pointer;
    transition: 0.3s;
    font-size: 0.95rem;
}

.btn-dark:hover {
    background: #1e2445;
}

.declaration-group {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 20px;
}

.declaration-group .required-star {
    margin-top: 2px;
    font-size: 1.2rem;
}

.declaration-text {
    font-size: 0.85rem;
    color: #333333;
    line-height: 1.5;
    flex: 1;
}

.declaration-group select {
    width: 150px;
}

.photo-upload-area {
    border: 1px solid #cccccc;
    background: #ffffff;
    border-radius: 2px;
    height: 180px;
    width: 160px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    margin: 0 auto 15px;
    overflow: hidden;
}

.photo-icon {
    font-size: 6rem;
    color: #aaaaaa;
}

.map-placeholder {
    width: 100%;
    height: 400px;
    background: #05080c;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.map-placeholder .icon {
    font-size: 3rem;
    opacity: 0.5;
    margin-bottom: 10px;
}

.map-placeholder h3 {
    color: var(--text-muted);
}

/* Footer */
.footer {
    background: #000;
    padding: 60px 0 24px;
    border-top: 1px solid rgba(212, 175, 55, 0.2);
}

.footer-top {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 60px;
    margin-bottom: 60px;
}

.footer-logo {
    height: 160px;
    margin-bottom: 24px;
    margin-left: -35px;
}

.footer-links h4,
.footer-services h4,
.footer-contact h4 {
    font-size: 1.25rem;
    margin-bottom: 24px;
    color: var(--gold-primary);
}

.footer-links ul,
.footer-services ul,
.footer-contact ul {
    list-style: none;
    padding: 0;
}

.footer-links li,
.footer-services li,
.footer-contact li {
    margin-bottom: 12px;
    color: var(--text-muted);
}

.footer-links a,
.footer-services a {
    color: var(--text-muted);
}

.footer-links a:hover,
.footer-services a:hover {
    color: var(--gold-primary);
}

.social-links {
    display: flex;
    gap: 12px;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(212, 175, 55, 0.1);
    color: var(--gold-primary);
    font-weight: 600;
    border: 1px solid var(--border-color);
}

.social-icon:hover {
    background: var(--gold-primary);
    color: #000;
    transform: translateY(-3px);
}

.footer-bottom {
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Animations */
.scroll-reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.scroll-reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.fade-up {
    animation: fadeUp 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    opacity: 0;
    transform: translateY(40px);
}

.delay-1 {
    animation-delay: 0.2s;
    transition-delay: 0.2s;
}

.delay-2 {
    animation-delay: 0.4s;
    transition-delay: 0.4s;
}

.delay-3 {
    animation-delay: 0.6s;
    transition-delay: 0.6s;
}

@keyframes fadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Desktop Menu Button */
.desktop-menu-btn {
    background: transparent;
    border: none;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-left: 20px;
    padding: 10px;
}
.desktop-menu-btn span {
    display: block;
    width: 30px;
    height: 2px;
    background-color: var(--text-main);
    transition: var(--transition);
}
.desktop-menu-btn:hover span {
    background-color: var(--gold-primary);
}

/* Side Drawer */
.side-drawer {
    position: fixed;
    top: 0;
    right: -400px;
    width: 350px;
    max-width: 100%;
    height: 100vh;
    background: #05080c; /* Black theme matching header */
    z-index: 10001;
    padding: 40px;
    transition: right 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.8);
    border-left: 1px solid var(--border-color);
}
.side-drawer.active {
    right: 0;
}
.close-drawer-btn {
    background: transparent;
    border: none;
    font-size: 2.5rem;
    line-height: 1;
    color: #ffffff; /* White text */
    cursor: pointer;
    align-self: flex-end;
    margin-bottom: 20px;
    transition: color 0.3s;
}
.close-drawer-btn:hover {
    color: var(--gold-primary);
}
.side-drawer-content .logo {
    margin-left: -30px !important;
    display: inline-block;
}
.side-drawer-content ul {
    list-style: none;
    margin-top: 20px;
    padding: 0;
}
.side-drawer-content ul li {
    margin-bottom: 24px;
}
.side-drawer-content ul li a {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 600;
    color: #ffffff; /* White text */
    transition: color 0.3s;
}
.side-drawer-content ul li a:hover {
    color: var(--gold-primary);
}


/* Drawer Overlay */
.drawer-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.7);
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s, visibility 0.4s;
}
.drawer-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Responsive */
@media (max-width: 992px) {

    .hero-content h1,
    .page-header h1 {
        font-size: 3.5rem;
    }

    .about-grid,
    .row-grid,
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .row-grid.reverse .row-img {
        order: 1;
    }

    .row-grid.reverse .row-text {
        order: 2;
    }

    .stats-grid-4 {
        grid-template-columns: 1fr 1fr;
    }

    .values-grid {
        grid-template-columns: 1fr;
    }

    .footer-top {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    /* 1. Navigation & Drawer Unity */
    .nav-menu {
        display: none !important;
    }
    
    .desktop-menu-btn {
        display: flex !important;
    }
    
    .mobile-menu-btn {
        display: none !important;
    }
    
    .nav-container {
        padding: 0 16px;
    }

    .logo img {
        height: 60px;
        transform: scale(1.0);
        margin-left: 0;
    }
    
    .header.scrolled .logo img {
        transform: scale(1.0);
    }

    /* 2. Typography & Spacing */
    .hero-content h1, 
    .page-header h1 {
        font-size: 2.5rem;
        margin-bottom: 16px;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    
    .hero-content p, 
    .page-header p {
        font-size: 1rem;
        margin-bottom: 24px;
    }

    .section-title {
        font-size: 2.5rem;
    }

    .section-padding {
        padding: 60px 0;
    }

    .container {
        padding: 0 16px;
    }

    /* 3. Grid Stacking */
    .about-grid,
    .row-grid,
    .contact-grid,
    .form-grid-2,
    .form-grid-3,
    .form-row,
    .footer-top {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    /* Fix image order in reverse row grid */
    .row-grid.reverse .row-img {
        order: 1;
    }
    .row-grid.reverse .row-text {
        order: 2;
    }
    
    /* Stats Grid */
    .stats-grid-4 {
        grid-template-columns: 1fr 1fr;
        gap: 16px;
    }
    
    /* Values Grid */
    .values-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    /* Service Cards Grid */
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    /* History table responsiveness */
    .history-table-container {
        overflow-x: auto;
    }
    
    /* Application Form Flex Row */
    .form-group.flex-row {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .form-group.flex-row label {
        width: 100%;
        text-align: left;
        padding-right: 0;
        margin-bottom: 8px;
    }
    
    .form-group.flex-row input,
    .form-group.flex-row select,
    .form-group.flex-row textarea {
        width: 100%;
        max-width: 100%;
    }
    
    /* Hero Buttons */
    .hero-buttons {
        flex-direction: column;
        gap: 12px;
        width: 100%;
    }
    
    .hero-buttons a {
        width: 100%;
    }
    
    /* Footer Logo adjustments */
    .footer-logo {
        height: 100px;
        margin-left: 0;
    }
    
    .footer-top {
        margin-bottom: 30px;
    }
    
    .footer {
        padding: 40px 0 20px;
    }
    
    /* Side Drawer Width */
    .side-drawer {
        width: 100%;
        max-width: 320px;
    }
}

/* Extra small devices */
@media (max-width: 480px) {
    .hero-content h1, 
    .page-header h1 {
        font-size: 2.2rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .stats-grid-4 {
        grid-template-columns: 1fr;
    }
}