/* CSS Variables for seamless Dark/Light Mode transitions */
:root {
    --bg-main: #ffffff;
    --text-main: #1a1a1a;
    --text-muted: #666666;
    --section-bg: #fafafa;
    --section-dark: #ffffff;
    --header-base: #ffefe0;
    --header-glass: rgba(255, 239, 224, 0.4);
    --border-light: rgba(255, 255, 255, 0.5);
    --card-bg: #ffffff;
    --card-shadow: 0 10px 30px rgba(0,0,0,0.05);
    --cursor-hover: #1a1a1a;
}

body.dark-mode {
    --bg-main: #121212;
    --text-main: #ffffff;
    --text-muted: #bbbbbb;
    --section-bg: #1e1e1e;
    --section-dark: #0a0a0a;
    --header-base: #2a2421;
    --header-glass: rgba(42, 36, 33, 0.4);
    --border-light: rgba(255, 255, 255, 0.15);
    --card-bg: #2a2a2a;
    --card-shadow: 0 10px 30px rgba(0,0,0,0.4);
    --cursor-hover: #ffffff;
}

/* Base Reset & Smooth Scrolling */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    cursor: none;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: var(--bg-main);
    color: var(--text-main);
    overflow-x: hidden;
    transition: background-color 0.5s ease, color 0.5s ease;
}

/* Custom Cursor */
.cursor-dot,
.cursor-outline {
    position: fixed;
    top: 0;
    left: 0;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    z-index: 9999;
    pointer-events: none;
}

.cursor-dot {
    width: 8px;
    height: 8px;
    background-color: #f07b50;
    transition: transform 0.2s ease, background-color 0.2s ease;
}

.cursor-outline {
    width: 40px;
    height: 40px;
    border: 2px solid rgba(240, 123, 80, 0.5);
    transition: width 0.2s, height 0.2s, background-color 0.2s;
}

/* Main Header Styles */
header {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 95%;
    max-width: 1000px;
    height: 80px;
    background-color: var(--header-base);
    border-radius: 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 40px;
    z-index: 1000;
    transition: background 0.4s ease, backdrop-filter 0.4s ease, box-shadow 0.4s ease, border 0.4s ease;
}

/* Separated Theme Toggle Strip */
.theme-strip {
    position: fixed;
    top: 20px;
    right: 2.5%;
    height: 80px;
    width: 80px;
    background-color: var(--header-base);
    border-radius: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    transition: background 0.4s ease, backdrop-filter 0.4s ease, box-shadow 0.4s ease, border 0.4s ease;
}

/* Liquid Glass Effect (Dynamic Map) */
.glass-effect {
    background: var(--header-glass) !important;
    backdrop-filter: url(#liquid-glass-dynamic);
    -webkit-backdrop-filter: url(#liquid-glass-dynamic);
    border: 1px solid var(--border-light);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.08);
}

/* Simple Glass Effect for small elements like the Theme Strip */
.glass-effect-simple {
    background: var(--header-glass) !important;
    backdrop-filter: blur(15px) saturate(150%);
    -webkit-backdrop-filter: blur(15px) saturate(150%);
    border: 1px solid var(--border-light);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.08);
}

/* Liquid Interactive Toggle Button */
.theme-toggle {
    width: 50px;
    height: 30px;
    border-radius: 30px;
    background: rgba(240, 123, 80, 0.2);
    position: relative;
    border: none;
    outline: none;
    overflow: hidden;
}

.toggle-thumb {
    position: absolute;
    top: 3px;
    left: 3px;
    width: 24px;
    height: 24px;
    background-color: #f07b50;
    border-radius: 50%;
    transition: transform 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55), background-color 0.4s ease;
    display: flex;
    justify-content: center;
    align-items: center;
}

.toggle-thumb::before {
    content: '';
    width: 12px;
    height: 12px;
    background-color: var(--header-base);
    border-radius: 50%;
    transition: transform 0.4s ease, background-color 0.4s ease;
}

body.dark-mode .toggle-thumb {
    transform: translateX(20px);
    background-color: #ffffff;
}

body.dark-mode .toggle-thumb::before {
    transform: translate(-3px, -3px);
    background-color: #121212;
    box-shadow: 3px 3px 0 0 #ffffff;
}

/* Logo styling */
.logo {
    height: 40px;
    width: auto;
}

nav a {
    text-decoration: none;
    color: #f07b50;
    font-weight: 500;
    margin-left: 30px;
    font-size: 1.1rem;
    position: relative;
    transition: opacity 0.3s ease;
}


/* Page Sections */
section {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 100px 20px;
}

/* Hero Section & Spotlight Bold Effect */
.hero {
    position: relative;
}

.hero-text-wrapper {
    position: relative;
    display: inline-block;
}

.hero-text {
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 300;
    letter-spacing: -2px;
    color: var(--text-main);
    margin: 0;
    text-align: center;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeUp 1s ease 0.5s forwards;
    transition: color 0.5s ease;
}


.hero-text-wrapper p {
    color: #666666;
    font-size: 0.822rem;
	margin: -10px 7px;
    text-align: left;
}

/* The hidden bold layer that gets revealed by the cursor */
.hero-bold {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
	/* 1. ADD THIS LINE to change the color inside the circle */
    color: #f05a28; 
   
    -webkit-text-stroke: 5px currentColor;
    text-shadow: 0 0 2px currentColor;
    pointer-events: none;
    --clip-x: 50%;
    --clip-y: 50%;
    --clip-r: 0px;
    clip-path: circle(var(--clip-r) at var(--clip-x) var(--clip-y));
    transition: clip-path 0.055s linear;
}

/* Agency Sections */
.agency-section {
    background-color: var(--section-bg);
    width: 100%;
    transition: background-color 0.5s ease;
}

.agency-section.dark {
    background-color: var(--section-dark);
    color: var(--text-main);
}

.container {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
}

.section-title {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 300;
	margin-top: -15px;
    margin-bottom: 70px;
    text-align: center;
}

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

.service-card {
    background: var(--card-bg);
    padding: 40px;
    border-radius: 20px;
    box-shadow: var(--card-shadow);
    transition: transform 0.3s ease, background-color 0.5s ease, box-shadow 0.5s ease;
}

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

.service-card h3 {
    color: #f07b50;
    font-size: 1.5rem;
    margin-bottom: 20px;
}

.service-card p {
    line-height: 1.6;
    color: var(--text-muted);
    transition: color 0.5s ease;
}

/* Email Link */
.contact-link {
    /* Color */
    color: #f07b50;
    
    /* Remove underline */
    text-decoration: none;
    
    /* Responsive Font Size with Fallback */
    font-size: clamp(0.9rem, 1.58vw, 3rem);
    
    /* Ensure it behaves like a block if you need padding/margins later */
    display: inline-block; 
    
    /* Optional: Add a smooth transition for hover effects */
    transition: color 0.3s ease;
}


/* Scroll Reveal Animation */
.reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

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

/* MOBILE RESPONSIVE ADJUSTMENTS */
@media (max-width: 768px) {
    header {
        top: 15px;
        left: 15px;
        transform: none;
        width: calc(100% - 90px);
        padding: 0 20px;
        height: 60px;
    }
    .theme-strip {
        top: 15px;
        right: 15px;
        width: 60px;
        height: 60px;
    }
    .logo {
        height: 28px;
    }
    nav a {
        margin-left: 15px;
        font-size: 0.95rem;
    }
    .theme-toggle {
        width: 40px;
        height: 24px;
    }
    .toggle-thumb {
        width: 18px;
        height: 18px;
    }
    body.dark-mode .toggle-thumb {
        transform: translateX(16px);
    }
    .services-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .service-card {
        padding: 30px 20px;
    }
    .cursor-dot, .cursor-outline {
        display: none;
    }
    * {
        cursor: auto;
    }
}

@media (max-width: 380px) {
    nav a {
        margin-left: 10px;
        font-size: 0.85rem;
    }
    header {
        padding: 0 15px;
    }
}

/* Overlay background with blur */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(5px); 
    -webkit-backdrop-filter: blur(5px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999; 
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    cursor: default !important; /* Forces normal pointer outside card */
}

/* White popup card */
.popup-box {
    background-color: #ffffff;
    padding: 55px 40px 45px 40px;
    border-radius: 48px; /* FIX: Increased corner rounding for a smoother appearance */
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.06);
    width: 90%;
    max-width: 445px;
    text-align: center;
    position: relative;
    box-sizing: border-box;
    cursor: default !important; /* FIX: Guarantees cursor stays visible inside the card body */
}

/* Width restriction to match exact image layout line-breaks */
.popup-content {
    max-width: 260px;
    margin: 0 auto;
}

/* Close (X) button styled exactly like image */
.close-x {
    position: absolute;
    top: 25px;
    right: 32px;
    background: none;
    border: none;
    font-size: 28px;
    line-height: 1;
    color: #e64a19; 
    cursor: pointer !important; /* FIX: Guarantees clickable cursor visibility */
    font-weight: 300;
    padding: 5px;
    transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.2s ease;
}

/* Interactive Close Button Animation */
.close-x:hover {
    transform: scale(1.25) rotate(90deg); /* Subtle spring rotation on hover */
    opacity: 0.7;
}
.close-x:active {
    transform: scale(0.9) rotate(90deg);
}

/* Main Heading */
.popup-title {
    color: #e64a19; 
    font-size: 22px;
    font-weight: 500;
    line-height: 1.25;
    margin: 0 0 18px 0;
}

/* Paragraph text */
.popup-text {
    color: #666666;
    font-size: 13px;
    line-height: 1.45;
    margin: 0 0 28px 0;
}

/* Orange action button */
.ack-button {
    background-color: #e64a19; 
    color: #ffffff;
    border: none;
    padding: 12px 36px;
    font-size: 13px;
    font-weight: 500;
    border-radius: 24px; 
    cursor: pointer !important; /* FIX: Guarantees clickable cursor visibility */
    transition: all 0.25s cubic-bezier(0.25, 0.8, 0.25, 1); /* Smooth transitional physics */
}

/* High-fidelity interactive button animation states */
.ack-button:hover {
    transform: scale(0.95) /*slight pop-up */
}


/* Hidden state class */
.popup-hidden {
    display: none !important;
}
/* =========================================
   SOCIAL MEDIA ICONS (Contact Section)
   ========================================= */

#contact {
    position: relative; /* This makes sure the icons stay inside the contact section */
}

.social-integration-wrapper {
    position: absolute;
    bottom: -160px; /* <-- ADJUST THIS: Larger number pushes it UP, smaller number pushes it DOWN */
    left: 0;
    width: 100%;
    display: flex;
    justify-content: center;
}

.social-container {
    display: flex;
    gap: 5px;
}

.social-link {
    position: relative;
    width: 50px;
    height: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    border-radius: 15px;
    background-color: rgba(255, 102, 0, 0); 
    transition: background-color 0.4s ease;
}

.social-link svg {
    position: absolute;
    width: 100%;
    height: 100%;
    transition: transform 0.4s ease, opacity 0.4s ease;
}

/* Force inner paths to be Orange and Hide Black Backgrounds */
.social-link svg .cls-1 {
    display: none; 
}

/* Note: Change #ff6600 to #f07b50 if you want it to match your agency logo exactly */
.social-link svg .cls-2 {
    fill: #f07b50 !important; 
}

.social-link:hover {
    background-color: rgba(255, 102, 0, 0.2);
}

/* X & Twitter Morph Rules */
.social-link .logo-x {
    opacity: 1;
    transform: scale(1);
}
.social-link .logo-twitter {
    opacity: 0;
    transform: scale(0.6); 
}

.social-link:hover .logo-x {
    opacity: 0;
    transform: scale(0.8);
}
.social-link:hover .logo-twitter {
    opacity: 1;
    transform: scale(1);
}

/* Instagram Specific Hover Rules */
.social-link .logo-insta {
    transform: scale(1);
}
.social-link:hover .logo-insta {
    transform: scale(1.05); 
}

/* =========================================
   POPUP DARK MODE ADAPTATION
   ========================================= */
body.dark-mode .popup-box {
    background-color: var(--card-bg); /* Inherits your deep gray */
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.5); /* Darkens the drop shadow */
}

body.dark-mode .popup-text {
    color: var(--text-muted); /* Inherits your light gray text */
}

/* The orange title and button stay the same, as they already contrast well against dark backgrounds */

/* =========================================
   UNIFIED HOVER SCALING (Matches Social Icons)
   ========================================= */

/* 1. Base state matching the 0.4s ease of the social SVGs */
nav a, 
.contact-link {
    display: inline-block;
    transition: transform 0.4s ease, color 0.4s ease !important;
    transform-origin: center center;
    
    /* Keeps the text from blurring while it matches the SVG scale */
    backface-visibility: hidden;
    -webkit-font-smoothing: antialiased;
}

/* 2. The exact 5% scale your Instagram icon uses */
nav a:hover, 
.contact-link:hover {
    transform: scale(1.05); 
}

.custom-footer {
  width: 100%;
  height: 0px; /* Adjust this value for desired height */
  font-size: 10px;
  background-color: #333; /* Change color as needed */
  margin: 0 5px;
  padding: 0;
  display: block;
}

