/* IMPORT STUNNING TYPOGRAPHY */
@import url('https://fonts.googleapis.com/css2?family=Cardo:ital,wght@0,400;0,700;1,400&family=Inter:wght@300;400;500;600;700&display=swap');

/* MODERN DESIGN SYSTEM VARIABLES */
:root {
    --primary-color: #0d1e3d;       /* Deep Prestigious Navy */
    --primary-light: #162a4e;       /* Indigo Navy Accent */
    --accent-color: #d4af37;        /* Luxe Champagne Gold */
    --accent-hover: #c59f2c;
    --danger-color: #e04f5f;        /* Elegant Soft Red */
    --text-color: #334155;          /* Crisp Slate Text */
    --text-muted: #64748b;          /* Muted Slate Text */
    --bg-light: #f8fafc;            /* Clean light grey-blue */
    --bg-card: #ffffff;
    --bg-dark: #070e1b;             /* Pure Dark for Let's Work & Footer */
    --bg-dark-accent: #0b1528;      /* Footer Copyright & Bottom-nav */
    --border-color: #e2e8f0;        /* Subtle Border color */
    
    /* Typography Font stacks */
    --font-heading: 'Cardo', serif;
    --font-body: 'Inter', sans-serif;
    
    /* Shadow & Transition Tokens */
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.1);
    --shadow-md: 0 4px 20px -2px rgba(13, 30, 61, 0.08);
    --shadow-lg: 0 10px 30px -5px rgba(13, 30, 61, 0.12);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 16px;
}

/* RESET & BASE STYLES */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    font-weight: 400;
    line-height: 1.65;
    color: var(--text-color);
    background-color: var(--bg-light);
    overflow-x: hidden;
}

/* TYPOGRAPHY UTILITIES */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1.25;
}

h1 { font-size: 2.75rem; }
h2 { font-size: 2.25rem; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.35rem; }
h5 { font-size: 1.15rem; }

p {
    margin-bottom: 1.25rem;
}

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

a:hover {
    color: var(--accent-color);
}

ul {
    list-style: none;
}

/* BUTTONS */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 2rem;
    font-family: var(--font-body);
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    border-radius: var(--radius-sm);
    transition: var(--transition);
    cursor: pointer;
    border: 2px solid transparent;
}

.btn-primary {
    background-color: var(--accent-color);
    color: var(--primary-color);
}

.btn-primary:hover {
    background-color: var(--accent-hover);
    color: var(--primary-color);
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.4);
}

.btn-outline {
    background-color: transparent;
    color: #ffffff;
    border-color: #ffffff;
}

.btn-outline:hover {
    background-color: #ffffff;
    color: var(--primary-color);
    box-shadow: 0 4px 15px rgba(255,255,255,0.2);
}

.btn-secondary-outline {
    background-color: transparent;
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-secondary-outline:hover {
    background-color: var(--primary-color);
    color: #ffffff;
}

.btn-small {
    padding: 0.5rem 1.25rem;
    font-size: 0.75rem;
}

/* LAYOUT CONTAINER */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* TOP HEADER INFO BAR */
.top-header {
    background-color: var(--primary-color);
    color: #ffffff;
    padding: 0.5rem 0;
    font-size: 0.8rem;
    font-weight: 500;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.top-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    max-width: 1320px;
}

.top-header .info-list {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.top-header .info-list li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.top-header .info-list li i {
    color: var(--accent-color);
}

.top-header .info-list li a {
    color: #ffffff;
}

.top-header .info-list li a:hover {
    color: var(--accent-color);
}

.top-header .social-list {
    display: flex;
    gap: 1rem;
}

.top-header .social-list a {
    color: #ffffff;
    font-size: 0.9rem;
    transition: var(--transition);
}

.top-header .social-list a:hover {
    color: var(--accent-color);
    transform: translateY(-2px);
}

/* MAIN NAVIGATION HEADER */
.main-header {
    background-color: #ffffff;
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 100;
    transition: var(--transition);
}

.main-header.scrolled {
    padding: 0.25rem 0;
    box-shadow: var(--shadow-md);
}

.main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
    transition: var(--transition);
    max-width: 1320px;
}

.main-header.scrolled .container {
    height: 65px;
}

.logo-area {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    margin-right: auto; /* Ensures logo stays strictly on the left and other elements pushed to the right */
}

.header-nav {
    margin-left: 2rem; /* Guarantees gap between logo and navbar */
}

.logo-area img {
    height: 48px;
    width: auto;
    max-width: 100%;
    object-fit: contain;
    transition: var(--transition);
}

.main-header.scrolled .logo-area img {
    height: 40px; /* Premium shrink effect on scroll */
}

/* NAVIGATION MENU */
.nav-menu {
    display: flex;
    align-items: center;
    gap: 0.8rem; /* Balanced gap to provide spaciousness for the logo */
}

.nav-item {
    position: relative;
}

.nav-link {
    white-space: nowrap;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.76rem; /* Refined font size for a clean, spacious aesthetic */
    text-transform: uppercase;
    color: var(--primary-color);
    padding: 0.5rem 0;
    letter-spacing: 0.3px;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent-color);
    transition: var(--transition);
}

.nav-link:hover::after,
.nav-item.active > .nav-link::after {
    width: 100%;
}

.nav-link:hover,
.nav-item.active > .nav-link {
    color: var(--accent-color);
}

/* DROPDOWN MENU */
.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #ffffff;
    min-width: 250px;
    box-shadow: var(--shadow-lg);
    border-radius: var(--radius-sm);
    padding: 0.75rem 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: var(--transition);
    z-index: 200;
    border-top: 3px solid var(--accent-color);
}

.nav-item:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-link {
    display: block;
    padding: 0.6rem 1.5rem;
    font-family: var(--font-body);
    font-weight: 500;
    font-size: 0.85rem;
    color: var(--primary-color);
    transition: var(--transition);
}

.dropdown-link:hover {
    background-color: var(--bg-light);
    color: var(--accent-color);
    padding-left: 1.75rem;
}

/* MOBILE TOGGLE */
.mobile-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 26px;
    height: 18px;
    cursor: pointer;
}

.mobile-toggle span {
    width: 100%;
    height: 2px;
    background-color: var(--primary-color);
    transition: var(--transition);
}

/* HERO SLIDER SECTION */
.hero-slider {
    position: relative;
    height: 520px;
    background-color: var(--primary-color);
    overflow: hidden;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 1s ease-in-out, visibility 1s ease-in-out;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
}

.slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(7, 14, 27, 0.85) 0%, rgba(7, 14, 27, 0.4) 100%);
}

.slide.active {
    opacity: 1;
    visibility: visible;
    z-index: 10;
}

.slide-content {
    position: relative;
    z-index: 20;
    color: #ffffff;
    max-width: 650px;
}

.slide-subtitle {
    font-family: var(--font-heading);
    font-style: italic;
    font-size: 1.35rem;
    color: var(--accent-color);
    margin-bottom: 0.75rem;
    letter-spacing: 0.5px;
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.6s ease 0.2s;
}

.slide.active .slide-subtitle {
    transform: translateY(0);
    opacity: 1;
}

.slide-title {
    font-family: var(--font-body);
    font-size: 3.5rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 1.5rem;
    line-height: 1.1;
    letter-spacing: -0.5px;
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.6s ease 0.4s;
}

.slide.active .slide-title {
    transform: translateY(0);
    opacity: 1;
}

.slide-desc {
    font-size: 1.1rem;
    color: rgba(255,255,255,0.85);
    margin-bottom: 2rem;
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.6s ease 0.6s;
}

.slide.active .slide-desc {
    transform: translateY(0);
    opacity: 1;
}

.slide-btns {
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.6s ease 0.8s;
}

.slide.active .slide-btns {
    transform: translateY(0);
    opacity: 1;
}

.slider-controls {
    position: absolute;
    bottom: 20px;
    right: 5%;
    z-index: 30;
    display: flex;
    gap: 0.5rem;
}

.slider-btn {
    width: 45px;
    height: 45px;
    border-radius: var(--radius-sm);
    background-color: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.slider-btn:hover {
    background-color: var(--accent-color);
    color: var(--primary-color);
}

/* SECTION PADDINGS & DECORATIONS */
.section {
    padding: 5rem 0;
}

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

.section-white {
    background-color: #ffffff;
}

.title-area {
    text-align: center;
    margin-bottom: 3.5rem;
}

.title-area h2 {
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

.title-area h2 span {
    color: var(--accent-color);
}

.title-area .separator {
    width: 70px;
    height: 2px;
    background-color: var(--accent-color);
    margin: 0.5rem auto 1.5rem;
}

.title-area p {
    color: var(--text-muted);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

/* SERVICE CARD GRID */
.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem;
}

.service-card {
    background-color: var(--bg-card);
    border-radius: var(--radius-md);
    padding: 2.5rem 2rem;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--accent-color);
}

.service-icon {
    font-size: 2.5rem;
    color: var(--accent-color);
    margin-bottom: 1.5rem;
    display: inline-block;
}

.service-title {
    margin-bottom: 1rem;
    font-size: 1.25rem;
    font-family: var(--font-body);
    font-weight: 700;
}

.service-desc {
    color: var(--text-muted);
    font-size: 0.95rem;
    flex-grow: 1;
    margin-bottom: 1.5rem;
}

.service-link {
    font-weight: 600;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

/* HOME ABOUT HIGHLIGHT SECTION */
.about-summary {
    display: flex;
    gap: 3rem;
    align-items: center;
}

.about-summary .text-side {
    flex: 1.3;
}

.about-summary .highlight-box {
    flex: 1;
    background-color: var(--primary-color);
    color: #ffffff;
    padding: 3rem;
    border-radius: var(--radius-md);
    position: relative;
    overflow: hidden;
    border-left: 5px solid var(--accent-color);
}

.highlight-box h5 {
    color: var(--accent-color);
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-size: 0.9rem;
    font-family: var(--font-body);
}

.highlight-box .big-title {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1rem;
    font-family: var(--font-body);
}

.highlight-box p {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 1.5rem;
}

/* CORE VALUES */
.value-card {
    text-align: center;
    padding: 2rem;
    background-color: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: var(--radius-md);
    transition: var(--transition);
}

.value-card:hover {
    background-color: rgba(255,255,255,0.1);
    transform: scale(1.03);
}

.value-icon {
    font-size: 2rem;
    color: var(--accent-color);
    margin-bottom: 1rem;
}

.value-title {
    color: #ffffff;
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* LETS WORK CTA STRIP */
.lets-work {
    background-color: var(--primary-color);
    color: #ffffff;
    padding: 4rem 0;
    border-top: 3px solid var(--accent-color);
}

.lets-work .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
}

.lets-work h2 {
    color: #ffffff;
    font-size: 2.25rem;
}

.lets-work h2 span {
    color: var(--accent-color);
}

/* UPDATES SCROLLER & RECENT POSTS */
.recent-updates-container {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
}

.news-box {
    background: #ffffff;
    padding: 2.5rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
}

.news-list {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.news-item {
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 1.25rem;
}

.news-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.news-item a {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--primary-color);
}

.news-item a:hover {
    color: var(--accent-color);
}

.marquee-container {
    background-color: var(--bg-light);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 2rem;
    height: 480px;
    overflow: hidden;
    position: relative;
}

.marquee-title {
    margin-bottom: 1.5rem;
    font-family: var(--font-body);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
}

.marquee-content {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    animation: scrollVertical 25s linear infinite;
}

.marquee-content:hover {
    animation-play-state: paused;
}

.marquee-card {
    background-color: #ffffff;
    padding: 1.25rem;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-sm);
    border-left: 3px solid var(--primary-light);
}

.marquee-card h6 {
    font-family: var(--font-body);
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.marquee-card p {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin: 0;
}

@keyframes scrollVertical {
    0% { transform: translateY(0); }
    100% { transform: translateY(-50%); }
}

/* FOOTER STYLING */
.footer {
    background-color: var(--bg-dark);
    color: rgba(255, 255, 255, 0.7);
    padding: 5rem 0 0;
    font-size: 0.9rem;
    line-height: 1.7;
    border-top: 1px solid rgba(255,255,255,0.05);
}

.footer h5 {
    color: #ffffff;
    font-family: var(--font-body);
    font-size: 1.1rem;
    margin-bottom: 1.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    padding-bottom: 0.5rem;
}

.footer h5::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background-color: var(--accent-color);
}

.footer p {
    margin-bottom: 1rem;
}

.footer-col {
    display: flex;
    flex-direction: column;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

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

.footer-links a:hover {
    color: var(--accent-color);
    padding-left: 5px;
}

.footer-contact-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-contact-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.footer-contact-list li i {
    color: var(--accent-color);
    font-size: 1.1rem;
    margin-top: 3px;
}

.footer-contact-list li a {
    color: rgba(255, 255, 255, 0.7);
}

.footer-contact-list li a:hover {
    color: var(--accent-color);
}

.copyright {
    background-color: var(--bg-dark-accent);
    padding: 1.5rem 0;
    text-align: center;
    margin-top: 4rem;
    border-top: 1px solid rgba(255,255,255,0.05);
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.5);
}

/* PAGE HEADER MODULE */
.page-title-section {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    padding: 5rem 0;
    color: #ffffff;
    text-align: center;
}

.page-title-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(13, 30, 61, 0.85);
}

.page-title-section .container {
    position: relative;
    z-index: 10;
}

.page-title-section h1 {
    color: #ffffff;
    font-size: 3rem;
    margin-bottom: 0.5rem;
}

.breadcrumbs {
    font-family: var(--font-body);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.breadcrumbs a {
    color: var(--accent-color);
}

.breadcrumbs span {
    color: rgba(255,255,255,0.6);
}

/* TWO COLUMNS CONTENT (FOR SERVICES) */
.page-content-wrapper {
    background-color: #ffffff;
    padding: 5rem 0;
}

.two-col-layout {
    display: grid;
    grid-template-columns: 2.2fr 1.1fr;
    gap: 3rem;
}

.main-article {
    color: var(--text-color);
}

.main-article h3, .main-article h4 {
    margin: 2rem 0 1rem;
}

.main-article h3:first-child {
    margin-top: 0;
}

.main-article ul {
    margin-left: 1.5rem;
    margin-bottom: 1.5rem;
    list-style-type: square;
}

.main-article ul li {
    margin-bottom: 0.5rem;
}

/* SIDEBAR / SIDE CARDS */
.sidebar-card {
    background-color: var(--bg-light);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 2rem;
    margin-bottom: 2rem;
}

.sidebar-card h4 {
    margin-bottom: 1.25rem;
    font-family: var(--font-body);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.95rem;
    letter-spacing: 1px;
    border-left: 3px solid var(--accent-color);
    padding-left: 0.75rem;
}

/* FORMS */
.form-group {
    margin-bottom: 1.25rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--primary-color);
}

.form-control {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-size: 0.9rem;
    transition: var(--transition);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-light);
    box-shadow: 0 0 0 3px rgba(19, 67, 130, 0.1);
}

textarea.form-control {
    resize: vertical;
    min-height: 120px;
}

/* CAREER SPECIFICS */
.job-listing {
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 2rem;
    margin-bottom: 2rem;
    background-color: #ffffff;
    transition: var(--transition);
}

.job-listing:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--primary-light);
}

.job-meta {
    display: flex;
    gap: 1.5rem;
    margin: 0.5rem 0 1.25rem;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.job-meta span {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

/* MAP WRAPPER */
.map-container {
    width: 100%;
    height: 400px;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
    margin-bottom: 2.5rem;
}

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

/* RESPONSIVE BREAKPOINTS */
@media (max-width: 1024px) {
    .grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }
    .grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }
    .recent-updates-container {
        grid-template-columns: 1fr;
    }
    .two-col-layout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 1150px) {
    .mobile-toggle {
        display: flex;
    }
    .nav-menu {
        position: absolute;
        top: 100%; /* Dynamic position matching the header height on scroll */
        left: 0;
        width: 100%;
        background-color: #ffffff;
        flex-direction: column;
        gap: 0;
        box-shadow: var(--shadow-lg);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.4s ease-in-out;
    }
    .nav-menu.open {
        max-height: 500px;
        overflow-y: auto;
    }
    .nav-item {
        width: 100%;
        border-bottom: 1px solid var(--border-color);
    }
    .nav-link {
        padding: 1rem 1.5rem;
    }
    .nav-link::after {
        display: none;
    }
    .dropdown-menu {
        position: static;
        box-shadow: none;
        border-top: none;
        background-color: var(--bg-light);
        opacity: 1;
        visibility: visible;
        display: none;
        transform: none;
        padding: 0;
    }
    /* Mobile-specific dropdown trigger */
    .dropdown-menu.open {
        display: block !important;
    }
    /* Disable hover display on mobile */
    .nav-item:hover .dropdown-menu {
        display: none;
    }
    .nav-item:hover .dropdown-menu.open {
        display: block !important;
    }
    /* Logo scaling on tablet viewports */
    .logo-area img {
        max-width: 280px;
        height: auto;
    }
    .main-header.scrolled .logo-area img {
        max-width: 220px;
        height: auto;
    }
}

@media (min-width: 1151px) and (max-width: 1300px) {
    .logo-area {
        margin-right: auto;
    }
    .nav-menu {
        gap: 0.6rem;
    }
    .nav-link {
        font-size: 0.72rem;
    }
}

@media (max-width: 768px) {
    h1 { font-size: 2.25rem; }
    h2 { font-size: 1.85rem; }
    .hero-slider {
        height: 420px;
    }
    .slide-title {
        font-size: 2.25rem;
    }
    .top-header {
        display: none; /* Hide top bar on mobile */
    }
    .grid-2 {
        grid-template-columns: 1fr;
    }
    .grid-3 {
        grid-template-columns: 1fr; /* Stack columns on tablets/mobile */
    }
    .about-summary {
        flex-direction: column;
    }
    .lets-work {
        text-align: center;
    }
    .lets-work .container {
        justify-content: center;
    }
    /* Logo scaling on smaller viewports */
    .logo-area img {
        max-width: 220px;
        height: auto;
    }
    .main-header.scrolled .logo-area img {
        max-width: 180px;
        height: auto;
    }
}

@media (max-width: 576px) {
    .grid-3, .grid-4 {
        grid-template-columns: 1fr; /* Stack grids on modern screens */
    }
    .slide-title {
        font-size: 1.85rem;
    }
    .slide-subtitle {
        font-size: 1.1rem;
    }
    .slide-desc {
        font-size: 0.95rem;
        margin-bottom: 1.5rem;
    }
    .hero-slider {
        height: 380px;
    }
}

@media (max-width: 480px) {
    /* Logo scaling on compact mobile screens */
    .logo-area img {
        max-width: 180px;
        height: auto;
    }
    .main-header.scrolled .logo-area img {
        max-width: 150px;
        height: auto;
    }
}
