/* --- 1. FONTS & RESET --- */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;700&family=Syncopate:wght@400;700&display=swap');

:root {
    --brand-blue: #728E8E; /* Your Logo Blue */
    --brand-white: #FFFFFF;
    --transition-slow: all 0.8s cubic-bezier(0.19, 1, 0.22, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    background-color: var(--brand-blue);
    color: var(--brand-white);
    overflow-x: hidden;
}
/* --- ANNOUNCEMENT BAR --- */
.announcement-wrap {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 35px; /* Thin and professional */
    background-color: var(--brand-white);
    z-index: 3000; /* Higher than nav */
    display: flex;
    justify-content: center;
    align-items: center;
}

.announcement-bar {
    width: 100%;
    max-width: 1200px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 5%;
}

.announcement-item {
    display: none; /* Hidden by default */
    font-family: 'Syncopate', sans-serif;
    font-size: 10px;
    font-weight: 700;
    color: var(--brand-blue);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.announcement-item.active {
    display: block;
}

.announce-btn {
    background: none;
    border: none;
    font-family: 'Syncopate', sans-serif;
    font-size: 8px;
    font-weight: 700;
    color: var(--brand-blue);
    cursor: pointer;
    opacity: 0.5;
    transition: opacity 0.3s;
}

.announce-btn:hover { opacity: 1; }

/* --- NAVBAR ADJUSTMENT --- */
/* Push the navbar down by 35px so it sits under the announcement bar */
nav {
    top: 35px !important; 
}

/* Adjust section padding so titles aren't hidden */
section {
    padding-top: 180px !important;
}
/* --- 2. PROFESSIONAL TYPOGRAPHY --- */
h1 {
    font-family: 'Syncopate', sans-serif;
    font-size: clamp(3.5rem, 12vw, 8.5rem);
    line-height: 0.9;
    letter-spacing: -4px;
    text-transform: uppercase;
    margin-bottom: 40px;
}

h1 span { color: rgba(255, 255, 255, 0.3); }

h2 {
    font-family: 'Syncopate', sans-serif;
    font-size: clamp(2rem, 5vw, 4rem);
    letter-spacing: -2px;
    margin-bottom: 30px;
    text-transform: uppercase;
}

p {
    font-size: clamp(1.1rem, 2vw, 1.5rem);
    line-height: 1.5;
    max-width: 800px;
    opacity: 0.9;
}

/* --- 3. NAVBAR (PC & MOBILE) --- */
nav {
    position: fixed;
    top: 0; left: 0;
    width: 100%;
    height: 100px;
    background-color: var(--brand-blue);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 5%;
    z-index: 2000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    transition: var(--transition-slow);
}

/* When Menu Opens: Navbar turns white */
nav.menu-active {
    background-color: var(--brand-white) !important;
    border-bottom: 1px solid rgba(114, 142, 142, 0.1);
}

/* --- 4. LOGO (LEFT ON PC) --- */
.logo-container {
    z-index: 2005;
}

.main-logo {
    height: 90px;
    width: auto;
}
.logo-menu {
    height: 23px !important; /* This specifically targets the menu version */
    width: auto;
    padding-left: 14px; /* Adds space between logo and hamburger */
}
.logo-menu { display: none; }
.menu-active .logo-default { display: none; }
.menu-active .logo-menu { display: block !important; }

/* --- 5. DESKTOP LINKS (RIGHT ON PC) --- */
.desktop-nav {
    display: none; /* Hidden on Mobile */
    align-items: center;
    gap: 45px;
}

.pc-links {
    display: flex;
    list-style: none;
    gap: 35px;
}

.pc-links a {
    text-decoration: none;
    color: var(--brand-white);
    font-family: 'Syncopate', sans-serif;
    font-size: 11px;
    font-weight: 700;
    transition: opacity 0.3s;
}

.pc-links a:hover { opacity: 0.6; }

/* RNO1 Style Connect Button */
.connect-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.4);
    color: var(--brand-white);
    padding: 14px 30px;
    border-radius: 14px;
    text-decoration: none;
    font-family: 'Syncopate', sans-serif;
    font-size: 11px;
    font-weight: 700;
    transition: var(--transition-slow);
}

.connect-btn:hover {
    background: var(--brand-white);
    color: var(--brand-blue);
}

/* --- 6. MOBILE MENU TOGGLE --- */
.menu-toggle {
    display: flex;
    align-items: center;
    gap: 15px;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--brand-white);
    z-index: 2005;
}

.hamburger {
    width: 30px;
    height: 10px;
    position: relative;
}

.bar {
    position: absolute;
    width: 100%;
    height: 2px;
    background-color: var(--brand-white);
    transition: var(--transition-slow);
}

.bar-top { top: 0; }
.bar-bottom { bottom: 0; }

.toggle-text {
    font-family: 'Syncopate', sans-serif;
    font-size: 11px;
    font-weight: 700;
}

/* Colors when menu is open on white background */
.menu-active .bar { background-color: var(--brand-blue) !important; }
.menu-active .toggle-text { color: var(--brand-blue) !important; }
.menu-active .bar-top { transform: translateY(4px) rotate(45deg); }
.menu-active .bar-bottom { transform: translateY(-4px) rotate(-45deg); }

/* --- 7. FULL SCREEN MENU OVERLAY --- */
.nav-overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100vh;
    background-color: var(--brand-white);
    display: flex;
    align-items: center;
    padding: 0 10%;
    transform: translateY(-100%);
    transition: transform 0.8s cubic-bezier(0.19, 1, 0.22, 1);
    z-index: 1000;
}

.nav-overlay.open { transform: translateY(0); }

.nav-item { list-style: none; overflow: hidden; margin-bottom: 20px; }

.nav-item a {
    font-family: 'Syncopate', sans-serif;
    font-size: clamp(3rem, 10vw, 7rem);
    text-decoration: none;
    color: var(--brand-blue);
    display: block;
    transform: translateY(100%);
}

/* --- 8. PAGE CONTENT & FORM --- */
section {
    min-height: 100vh;
    padding: 160px 8% 100px 8%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.contact-form { max-width: 600px; width: 100%; }

input, textarea {
    width: 100%;
    background: transparent;
    border: none;
    border-bottom: 2px solid white;
    padding: 20px 0;
    color: white;
    font-size: 1.5rem;
    margin-bottom: 40px;
    outline: none;
}

input::placeholder, textarea::placeholder { color: white; opacity: 1; }

.submit-btn {
    background: white;
    color: var(--brand-blue);
    padding: 20px 50px;
    border: none;
    font-family: 'Syncopate';
    font-weight: 700;
    cursor: pointer;
    transition: 0.3s;
}

.submit-btn:hover { letter-spacing: 5px; }

/* Responsive Switch */
@media (min-width: 1024px) {
    .desktop-nav { display: flex; }
    .menu-toggle { display: none; }
}
/* 2. Styles the email at the bottom of the menu */
.overlay-footer {
    position: absolute;
    bottom: 60px; /* Distance from bottom */
    left: 10%;    /* Matches menu padding */
}

.overlay-footer p {
    font-family: 'Syncopate', sans-serif;
    color: var(--brand-blue);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
}
/* This creates the "invisible window" for the text to slide through */
.line-mask {
    overflow: hidden;
    display: block;
}

.reveal div {
    display: block;
    transform: translateY(110%); /* Start hidden below the line */
    opacity: 0;
}
/* --- THE ULTIMATE SERVICES GRID FIX --- */

/* --- THE ULTIMATE SERVICES GRID FIX --- */

.services-grid {
    display: grid;
    /* minmax(300px) ensures they don't get too thin and overlap */
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); 
    gap: 20px;
    margin-top: 60px;
    width: 100%;
    position: relative;
}

.service-card {
    position: relative; /* REQUIRED: Keeps the image inside the box */
    height: 450px;
    width: 100%;
    background-color: #000;
    overflow: hidden;   /* REQUIRED: Stops images from sticking out */
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 30px;
    cursor: pointer;
    border: 1px solid rgba(255,255,255,0.1); /* Adds professional border */
}

/* The Background Image Layer */
.card-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover; /* REQUIRED: Fits image to box */
    background-position: center;
    z-index: 1;
    transition: transform 1.2s ease, filter 0.8s ease;
}

/* Fix if you used <img> tags inside instead of background-images */
.card-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    /* Gradient makes text readable on any image */
    background: linear-gradient(to bottom, transparent 40%, rgba(0,0,0,0.9) 100%);
    z-index: 2;
}

.card-content {
    position: relative;
    z-index: 3;
    width: 100%;
}

.service-card h3 {
    font-family: 'Syncopate', sans-serif;
    font-size: 16px !important; /* Forces title to be a professional size */
    color: #fff;
    margin: 0;
    text-transform: uppercase;
}

.service-card p {
    font-size: 14px !important;
    color: #fff;
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    transition: all 0.5s ease;
}

/* HOVER ACTIONS */
.service-card:hover .card-bg {
    filter: blur(8px);
    transform: scale(1.1);
}

.service-card:hover p {
    opacity: 1;
    max-height: 200px;
    margin-top: 15px;
}
/* Responsive tweak for 7 items */
@media (min-width: 1200px) {
    .service-card:last-child {
        grid-column: span 1; /* Keeps the last one neat */
    }
}
/* --- ADVANCED CONTACT FORM --- */
.chat-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 30px;
    border-radius: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 60px;
}

.profile-info { display: flex; align-items: center; gap: 20px; }
.avatar { 
    width: 60px; height: 60px; background: var(--brand-white); 
    border-radius: 50%; color: var(--brand-blue); 
    display: flex; align-items: center; justify-content: center; font-weight: bold;
}

.book-btn {
    background: var(--brand-white); color: var(--brand-blue);
    padding: 12px 25px; border-radius: 50px; text-decoration: none;
    font-family: 'Syncopate'; font-size: 10px; font-weight: 700;
}

/* Pills Selection */
.pills-container { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 15px; }
.pill {
    padding: 12px 20px; border: 1.5px solid rgba(255,255,255,0.3);
    border-radius: 50px; font-size: 13px; cursor: pointer;
    transition: all 0.3s ease;
}
.pill.active { background: var(--brand-white); color: var(--brand-blue); border-color: var(--brand-white); }

/* Input Grid */
.input-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; margin: 40px 0; }
.field label { font-family: 'Syncopate'; font-size: 10px; letter-spacing: 1px; margin-bottom: 10px; display: block; opacity: 0.8; }

/* Custom Slider */
.slider-box { margin-bottom: 40px; }
input[type=range] {
    width: 100%; appearance: none; background: rgba(255,255,255,0.2);
    height: 4px; border-radius: 5px; margin: 20px 0;
}
input[type=range]::-webkit-slider-thumb {
    appearance: none; width: 20px; height: 20px; 
    background: var(--brand-white); border-radius: 50%; cursor: pointer;
}
.slider-labels { display: flex; justify-content: space-between; font-size: 12px; opacity: 0.6; }
/* --- ABOUT PAGE KNOWLEDGE GRID --- */
.about-education-section {
    margin-top: 100px;
}

.about-education-section h3 {
    margin-bottom: 50px;
}

.knowledge-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 60px 40px; /* More vertical space between items */
}

.knowledge-item {
    border-left: 2px solid rgba(255, 255, 255, 0.2);
    padding-left: 25px;
    transition: var(--transition-slow);
}

.knowledge-item:hover {
    border-left-color: var(--brand-white);
}

.knowledge-item h4 {
    font-family: 'Syncopate', sans-serif;
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.knowledge-item p {
    font-size: 14px;
    line-height: 1.6;
    opacity: 0.7;
}

/* Matching the blue color for the 'plus' or 'dot' accents if used */
.about-education-section h3 span {
    color: var(--brand-white);
}
.section-label{
    padding-left: 30px;
}
/* --- MENU CONNECT BUTTON STYLE --- */
.nav-item .menu-cta-btn {
    display: inline-block;
    border: 2px solid var(--brand-blue);
    padding: 15px 50px;
    border-radius: 100px; /* Creates the pill shape */
    font-size: clamp(1.5rem, 5vw, 3.5rem) !important; /* Slightly smaller than main links to fit button */
    margin-top: 20px;
    transition: all 0.4s cubic-bezier(0.19, 1, 0.22, 1);
}

.nav-item .menu-cta-btn:hover {
    background-color: var(--brand-blue);
    color: var(--brand-white) !important; /* Text turns white on hover */
    transform: translateY(-5px) scale(1.02); /* Subtle lift effect */
}

/* Adjust the footer email to stay below the button */
.overlay-footer {
    margin-top: 40px;
}
/* --- PROFESSIONAL FOOTER --- */
.main-footer {
    background-color: var(--brand-blue);
    padding: 100px 8% 50px 8%;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    margin-top: 100px;
}

.footer-top {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 60px;
    margin-bottom: 80px;
}

.footer-brand {
    max-width: 350px;
}

.footer-brand p {
    font-size: 14px;
    margin-top: 25px;
    opacity: 0.7;
}

.footer-links {
    display: flex;
    gap: 100px;
}

.footer-col h4 {
    font-family: 'Syncopate', sans-serif;
    font-size: 10px;
    margin-bottom: 25px;
    letter-spacing: 2px;
    opacity: 0.5;
}

.footer-col a {
    display: block;
    color: white;
    text-decoration: none;
    font-size: 14px;
    margin-bottom: 12px;
    transition: 0.3s;
}

.footer-col a:hover {
    color: var(--brand-white);
    padding-left: 5px;
}

/* Social Icons Styling */
.social-icons {
    display: flex;
    gap: 20px;
}

.social-icons a {
    font-size: 18px;
    color: white;
    opacity: 0.7;
    transition: 0.3s;
}

.social-icons a:hover {
    opacity: 1;
    transform: translateY(-5px);
    padding-left: 0; /* Prevents text hover shift */
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 11px;
    opacity: 0.4;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Mobile Fix */
@media (max-width: 768px) {
    .footer-links { gap: 40px; flex-direction: column; }
    .footer-bottom { flex-direction: column; gap: 15px; text-align: center; }
}
/* --- VALUE PROPOSITION STYLING (Stacked with Lines) --- */
#value-proposition {
    padding: 100px 8%;
    background-color: var(--brand-blue);
}

#value-proposition .section-label {
    margin-bottom: 50px;
}

.proposition-list {
    display: flex;
    flex-direction: column; /* Stacks items vertically */
    gap: 40px; /* Space between the items */
}

.proposition-item {
    border-left: 2px solid rgba(255, 255, 255, 0.2); /* The line on the left */
    padding-left: 30px; /* Space between line and text */
    transition: var(--transition-slow);
}

.proposition-item:hover {
    border-left-color: var(--brand-white); /* Line turns solid white on hover */
    transform: translateX(10px); /* Subtle shift right on hover */
}

.proposition-item p {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: clamp(1.2rem, 3vw, 2rem); /* Large, professional font */
    line-height: 1.2;
    font-weight: 400;
    color: var(--brand-white);
    max-width: 900px;
    margin-bottom: 0; /* Override default p margin */
}
/* --- MOBILE LAYOUT REFINEMENT --- */
@media (max-width: 768px) {
    /* 1. Ensure all sections have a consistent 6% gap on the left and right */
     .line-mask.hero-content .reveal{
        width: 100%;
        font-size: 40px !important; /* Forces the mask to be a small size so it doesn't cut off letters */
        display: block;
        overflow: visible; /* Prevents vertical cutting of letters */
    }
    section {
        padding-left: 6% !important;
        padding-right: 6% !important;
    }

    /* 2. Shrink the main title so it fits without cutting off */
    h1 {
        font-size: clamp(1.5rem, 10vw, 2.5rem) !important;
        width: 100%;
        word-wrap: break-word; /* Prevents long words from breaking the screen */
        line-height: 1.2;
        letter-spacing: -1px; /* Less tight than desktop for clarity */
    }

    /* 3. Fix the "Invisible Window" width */
    .line-mask {
        width: 100%;
        display: block;
        overflow: visible; /* Prevents vertical cutting of letters */
    }

    /* 4. Adjust the button size for mobile thumbs */
    .submit-btn, .menu-cta-btn {
        width: 100%; /* Makes button full width on small screens for better UX */
        text-align: center;
        padding: 18px 20px !important;
        font-size: 12px !important;
    }

    /* 5. Adjust the Hero Paragraph */
    p {
        font-size: 2rem !important;
        width: 100%;
        opacity: 0.8;
    }
}

/* Specific fix for very narrow phones (iPhone SE / Fold) */
@media (max-width: 360px) {
    h1 {
        font-size: 2rem !important;
    }
}
/* --- DECREASE SECTION SPACING --- */

/* 1. Global adjustment for all sections */
section {
    min-height: auto !important; /* Prevents sections from forcing a full screen height */
    padding-top: 80px !important;  /* Reduced from 160px */
    padding-bottom: 60px !important; /* Reduced from 100px */
}

/* 2. Specific fix for the Home/Hero section to keep it tight */
#home {
    min-height: 80vh !important; /* Keeps the hero large but not excessively gapped */
    padding-bottom: 40px !important;
}

/* 3. Mobile specific spacing (to fix the exact look in your screenshot) */
@media (max-width: 768px) {
    section {
        padding-top: 60px !important; 
        padding-bottom: 40px !important;
    }

    #value-proposition, #who-we-are, #services-page {
        padding-top: 40px !important;
    }

    /* Reduce margin on the titles themselves */
    h1, h2 {
        margin-bottom: 20px !important;
    }
}
/* --- FIX TITLE UNDER NAVBAR --- */

/* Pushes the very first section down so the title is visible */
#home {
    padding-top: 160px !important; 
}

/* On Mobile, the navbar might be slightly shorter, so we adjust */
@media (max-width: 768px) {
    #home {
        padding-top: 140px !important;
    }
}

/* Ensure the announcement bar and nav don't overlap if they aren't already fixed */
.announcement-wrap {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 3000;
}

nav {
    position: fixed;
    top: 35px; /* Height of the announcement bar */
    width: 100%;
    z-index: 2000;
}
/* --- DECREASE SPACE ABOVE FOOTER --- */

.main-footer {
    margin-top: 40px !important; /* Reduced from 100px to tighten the gap */
}

/* Reduces the padding of the very last section before the footer */
section:last-of-type {
    padding-bottom: 20px !important; 
}
/* --- FIX TITLES FOR ALL PAGES --- */

/* This targets the very first section on ANY page (Services, About, Contact) */
section:first-of-type {
    padding-top: 160px !important; 
}

/* --- FIX TITLE UNDER NAVBAR --- */

/* Pushes the very first section down so the title is visible */
#home {
    padding-top: 160px !important; 
}

/* On Mobile, the navbar might be slightly shorter, so we adjust */
@media (max-width: 768px) {
    #home {
        padding-top: 140px !important;
    }
}

/* Ensure the announcement bar and nav don't overlap if they aren't already fixed */
.announcement-wrap {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 3000;
}

nav {
    position: fixed;
    top: 35px; /* Height of the announcement bar */
    width: 100%;
    z-index: 2000;
}
/* --- MOBILE EXPERTISE TITLE FIX --- */
@media (max-width: 768px) {
    /* 1. Force the services section to start much lower to clear the navbar */
    #services-page, 
    section:first-of-type {
        padding-top: 180px !important; 
    }

    /* 2. Fix the "Expertise" title specifically */
    #services-page h1 {
        font-size: clamp(2.2rem, 15vw, 4rem) !important; /* Ensure it's not too wide */
        line-height: 1.2 !important; /* Give it vertical room */
        display: block !important;
        visibility: visible !important;
    }

    /* 3. Disable the "Mask" on mobile to prevent clipping letters */
    #services-page .line-mask {
        overflow: visible !important; /* This stops the 'guillotine' effect */
        height: auto !important;
    }

    /* 4. Ensure the text inside the mask is actually shown */
    #services-page .reveal div {
        transform: none !important; /* Resets any failed animation */
        opacity: 1 !important;
        display: block !important;
    }
}
/* --- MOBILE BODY TEXT REFINEMENT --- */
@media (max-width: 768px) {
    /* Targets the paragraph text specifically */
    section p, 
    .about-brief p, 
    #about p {
        font-size: 0.9rem !important; /* Reduces the size from 1rem/1.1rem */
        line-height: 1.5; /* Good spacing for readability */
        opacity: 0.85; /* Makes the white slightly softer/more professional */
        margin-bottom: 20px;
    }

    /* Ensures the "Who We Are" and "Approach" text is also consistent */
    .knowledge-item p {
        font-size: 0.85rem !important;
    }
}
/* --- ABOUT PAGE: SPACE & LINE ABOVE APPROACH --- */

.about-offering-section {
    margin-top: 120px !important; /* Space above the line */
    padding-top: 80px !important;  /* Space between the line and the title */
    border-top: 1px solid rgba(255, 255, 255, 0.15); /* Thin professional line */
}

/* Mobile Adjustment to keep it clean on phones */
@media (max-width: 768px) {
    .about-offering-section {
        margin-top: 60px !important;
        padding-top: 40px !important;
    }
}
/* --- MOBILE FOOTER TEXT REFINEMENT --- */
@media (max-width: 768px) {
    /* 1. Makes the brand description (Architects of digital...) smaller */
    .footer-brand p {
        font-size: 12px !important;
        line-height: 1.4;
        opacity: 0.7;
        margin-top: 15px !important;
    }

    /* 2. Makes the copyright and bottom text very small and elegant */
    .footer-bottom p {
        font-size: 9px !important;
        letter-spacing: 0.5px;
        opacity: 0.5;
    }

    /* Reducer padding for a tighter mobile look */
    .main-footer {
        padding: 60px 6% 30px 6% !important;
    }
}
/* --- FINAL MOBILE REFINEMENT --- */
@media (max-width: 768px) {
    /* 1. Shrink Page Titles (H1) to fit without cutting off */
    h1 {
        font-size: clamp(1.5rem, 10vw, 2.5rem) !important;
        line-height: 1.2 !important;
        letter-spacing: -1px !important;
        width: 100%;
        display: block;
    }

    /* 2. Shrink 'Book a Call' / 'Connect' Button text inside the menu */
    .nav-item .menu-cta-btn {
        padding: 12px 30px !important;
        font-size: clamp(1.2rem, 4vw, 1.8rem) !important; /* Forces text to fit inside the pill */
        margin-top: 15px;
    }

    /* 3. Shrink the Email text at the bottom of the hamburger menu */
    .overlay-footer p {
        font-size: 10px !important; /* Smaller, elegant fine print */
        letter-spacing: 1px;
        bottom: 40px !important; /* Brings it up slightly from the edge */
    }

    /* 4. Fix for Section Titles (Expertise, About Us, etc.) */
    section h1 div.line-mask, 
    section h2 div.line-mask {
        width: 100%;
        overflow: visible !important; /* Ensures letters aren't clipped */
    }

    /* 5. Adjust the Hero Paragraph text width */
    .hero-content p {
        font-size: 0.95rem !important;
        width: 100%;
        line-height: 1.4;
    }
}

/* Extra fix for extremely narrow phones (iPhone SE / 12 Mini) */
@media (max-width: 360px) {
    h1 {
        font-size: 1.8rem !important;
    }
    .nav-item .menu-cta-btn {
        font-size: 1.1rem !important;
    }
}
/* --- HAMBURGER MENU EMAIL REFINEMENT --- */
.overlay-footer p {
    font-family: 'Syncopate', sans-serif;
    color: var(--brand-blue);
    font-size: 9px !important;    /* Very small and elegant */
    letter-spacing: 2.5px;        /* Wide spacing for a high-end look */
    text-transform: uppercase;
    opacity: 0.6;                 /* Slightly dimmed so it doesn't distract */
    position: absolute;
    bottom: 40px;                 /* Distance from the very bottom of the screen */
    left: 10%;                    /* Aligns with your menu text */
}

/* On very small phones, move it up a little bit more */
@media (max-width: 480px) {
    .overlay-footer p {
        bottom: 30px;
        font-size: 8px !important;
    }
}
/* --- MOBILE SERVICES TITLE FIX --- */
@media (max-width: 768px) {
    /* Targets the Services page title specifically */
    #services-page h1, 
    #services-page .reveal .line-mask {
        /* Shrinks the font specifically for the long word 'Expertise' */
        font-size: clamp(1.8rem, 13vw, 2.8rem) !important; 
        
        line-height: 1.2 !important;
        letter-spacing: -1px !important;
        width: 100% !important;
        overflow: visible !important; /* Prevents vertical clipping */
    }

    /* Adds a bit more space above the title to clear the navbar */
    #services-page {
        padding-top: 180px !important;
    }
}

/* Extra fix for very narrow phones (iPhone SE) */
@media (max-width: 360px) {
    #services-page h1 {
        font-size: 1.8rem !important;
    }
}
/* --- CONTACT CARD IMAGE STYLING --- */
.avatar {
    width: 70px; /* Slightly larger for better visibility */
    height: 70px;
    border-radius: 50%;
    overflow: hidden; /* Clips the image into a circle */
    background: var(--brand-white);
    display: flex;
    align-items: center;
    justify-content: center;
}

.profile-img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ensures the face stays centered and fills the circle */
    display: block;
}

/* --- REDUCE BODY TEXT SIZE --- */
section p, #home p, .hero-content p {
    font-size: 1.1rem; /* Standard desktop size */
}

@media (max-width: 768px) {
    /* Mobile specific adjustment */
    section p, #home p, .hero-content p {
        font-size: 0.85rem !important; /* Makes the text smaller on phones */
        line-height: 1.5 !important;   /* Balanced spacing */
        max-width: 100% !important;    /* Ensures it doesn't push the screen wide */
        opacity: 0.85;                 /* Softer white for premium look */
    }
}