@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@700&family=Raleway:wght@400;600&display=swap');

:root {
    --primary-red: #B00020; /* Deep Red */
    --primary-red-rgb: 176, 0, 32; /* RGB values for --primary-red */
    --secondary-blue: #002060; /* More vibrant Royal Blue */
    --secondary-blue-rgb: 0, 32, 96; /* RGB values for --secondary-blue */
    --accent-gold: #C2A530; /* A less intense, more subtle golden hue */
    --accent-gold-rgb: 194, 165, 48; /* RGB values for --accent-gold */
    --text-dark: #04080c;
    --text-light: #ecf0f1;
    --bg-light: #fdfdfd;
    --bg-dark: #000000;
    --text-dark-rgb: 4, 8, 12; /* RGB values for --text-dark, matching #04080c */
}

/* General styles */
body {
    font-family: 'Raleway', sans-serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    background-color: var(--bg-light);
    color: var(--text-dark);
    line-height: 1.6;
}

/* Ensure entire site does not horizontally scroll */
html, body { overflow-x: hidden; }
/* Ensure in-page anchors account for fixed header */
html { scroll-padding-top: calc(var(--header-space, 140px) + 8px); }
*, *::before, *::after { box-sizing: border-box; }
img, video { max-width: 100%; height: auto; }

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 0; /* Increased padding for more breathing room */
}

.img-fluid {
    max-width: 100%;
    height: auto;
}

/* Headings */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', serif;
    color: var(--secondary-blue);
    margin-bottom: 20px;
    transition: color 0.3s ease;
}

h1 {
    font-size: 4.8em; /* Significantly larger for impact */
    letter-spacing: 2px; /* Subtle letter spacing for elegance */
}

h2 {
    font-size: 3em; /* Increased size for prominence */
    text-align: center;
    position: relative;
    padding-bottom: 20px; /* Increased padding */
    margin-bottom: 40px; /* Increased margin */
    color: var(--primary-red); /* Main headings use primary red */
}

h2::after {
    content: '';
    width: 100px; /* Wider underline */
    height: 4px; /* Thicker underline */
    background-color: var(--accent-gold); /* Gold underline for emphasis */
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: 0;
    transition: background-color 0.3s ease, width 0.3s ease;
}

h2:hover::after {
    width: 120px; /* Expand underline on hover */
    background-color: var(--secondary-blue); /* Change to royal blue on hover */
}

h3 {
    font-size: 2.2em; /* Increased size for sub-headings */
    color: var(--secondary-blue); /* Sub-headings use secondary blue */
    margin-bottom: 25px; /* Increased margin */
}

/* Header and Navigation */
header {
    background-color: var(--bg-light);
    padding: 10px 0; /* Allow room for larger logo */
    border-bottom: 1px solid #e0e0e0;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1); /* More prominent shadow */
    border-bottom-left-radius: 15px; /* Softer bottom-left corner */
    border-bottom-right-radius: 15px; /* Softer bottom-right corner */
    position: fixed; 
    top: 0;
    left: 0;
    right: 0;
    z-index: 1200; /* Keep header above all content */
    transition: padding 0.3s ease, background-color 0.3s ease, box-shadow 0.3s ease, border-radius 0.3s ease;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

.logo {
    font-size: 3.5em; /* Larger initial logo text */
    font-weight: bold;
    color: var(--secondary-blue);
    text-decoration: none;
    display: flex;
    flex-direction: column; /* Stack logo image and motto vertically */
    align-items: center; /* Center items horizontally */
    gap: 0px; /* Remove gap from parent, control spacing with margins */
    margin-right: auto; /* Push logo and motto to the far left */
    transition: color 0.3s ease;
}

.logo-img {
    height: 300px; /* Increased header logo size */
    width: auto; /* Keep aspect ratio */
    margin-bottom: 5px; /* Space between logo and motto */
    transition: height 0.3s ease, transform 0.3s ease; /* Add transform for hover */
    background: transparent; /* Ensure no background behind the logo */
    object-fit: contain; /* Ensure full logo is visible */
    image-rendering: -webkit-optimize-contrast;
    filter: drop-shadow(0 1px 0 rgba(0,0,0,0.03)); /* Subtle crispness */
}

.logo-img:hover {
    transform: scale(1.05); /* Subtle zoom on hover */
}

.logo-text {
    transition: font-size 0.3s ease, color 0.3s ease;
}

.logo-motto {
    font-size: 0.35em; /* Further reduced font size for motto */
    background: linear-gradient(to right, var(--secondary-blue), var(--accent-gold)); /* Royal blue and golden gradient */
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-top: -5px; /* Adjusted spacing to reduce header size */
    text-align: center;
    font-weight: 700; /* Bolder for impact */
    letter-spacing: 1.5px; /* Subtle letter spacing for elegance */
    text-shadow: 1px 1px 2px rgba(0,0,0,0.2); /* Subtle shadow for depth */
}

.logo:hover {
    color: var(--accent-gold); /* Change to gold on hover */
}

header.scrolled {
    padding: 15px 0; /* Slightly more compact on scroll */
    box-shadow: 0 8px 20px rgba(0,0,0,0.15); /* Even more pronounced shadow on scroll */
    background-color: rgba(255, 255, 255, 0.98); /* Slightly less transparent when scrolled */
}

header.scrolled .logo-img {
    height: 220px; /* Increased scrolled logo size */
}

header.scrolled .logo-text {
    font-size: 1.5em; /* Slightly smaller font size on scroll */
    color: var(--secondary-blue); /* Royal blue when scrolled */
}

header.scrolled .nav-links li a {
    color: var(--secondary-blue); /* Ensure nav links are royal blue when header is scrolled */
}
.nav-links {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    gap: 40px; /* Adjust spacing as needed */
    /* Remove justify-content: space-evenly; */
    flex-grow: 1; /* Allow nav links to take up available space */
    justify-content: flex-end; /* Push nav links to the right */
    white-space: nowrap; /* Prevent text from wrapping */
}

.nav-links li {
    margin-left: 0; /* Remove individual margin-left, use gap on parent */
}

.nav-links li a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 600;
    white-space: nowrap; /* Prevent text from wrapping */
    transition: color 0.3s ease, transform 0.3s ease;
    position: relative;
}

/* Navigation icons - desktop default */
.nav-links li a .nav-icon {
    color: var(--accent-gold);
    margin-right: 6px;
    transition: color 0.25s ease, transform 0.25s ease;
}
.nav-links li a:hover .nav-icon { color: var(--primary-red); transform: translateY(-1px); }

.nav-links li a::after {
    content: '';
    position: absolute;
    width: 0%;
    height: 4px; /* Slightly thicker underline */
    background-color: var(--accent-gold);
    box-shadow: 0 4px 10px rgba(var(--accent-gold-rgb), 0.45);
    left: 0;
    bottom: -8px; /* Lowered underline */
    transition: width 0.3s ease, background-color 0.3s ease;
}

.nav-links li a:hover::after { width: 100%; }

.nav-links li a:hover {
    color: var(--primary-red);
    transform: translateY(-3px); /* Slightly more pronounced lift on hover */
}


.nav-links li a.active { color: var(--secondary-blue); font-weight: 700; }

.nav-links li a.active::after { width: 100%; }

/* Hamburger menu styles - hidden by default on desktop */
.hamburger-menu {
    display: none; /* Hidden on desktop */
    position: relative;
    background: linear-gradient(135deg, rgba(255,255,255,0.1), rgba(255,255,255,0.05));
    border: 2px solid rgba(255,255,255,0.2);
    border-radius: 12px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px rgba(0,0,0,0.1), inset 0 1px 0 rgba(255,255,255,0.2);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Base visual for bars when visible (used in mobile queries as well) */
.hamburger-menu .bar {
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--secondary-blue), var(--accent-gold));
    border-radius: 2px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    position: relative;
}

.hamburger-menu .bar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, var(--accent-gold), var(--secondary-blue));
    border-radius: 2px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

/* Focus-visible ring for accessibility */
.hamburger-menu:focus-visible {
    outline: 3px solid rgba(var(--accent-gold-rgb), 0.9);
    outline-offset: 3px;
    border-radius: 12px;
    box-shadow: 0 0 0 3px rgba(var(--accent-gold-rgb), 0.3), 0 8px 32px rgba(0,0,0,0.15);
}

/* Active (X) animation defaults - distance tuned with button height in media query */
.hamburger-menu.active .bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
    background: linear-gradient(45deg, var(--accent-gold), #ffd700);
    box-shadow: 0 2px 8px rgba(255,215,0,0.3);
}
.hamburger-menu.active .bar:nth-child(1)::before {
    opacity: 1;
    background: linear-gradient(45deg, #ffd700, var(--accent-gold));
}

.hamburger-menu.active .bar:nth-child(2) { 
    opacity: 0; 
    transform: scaleX(0);
}

.hamburger-menu.active .bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
    background: linear-gradient(-45deg, var(--accent-gold), #ffd700);
    box-shadow: 0 2px 8px rgba(255,215,0,0.3);
}
.hamburger-menu.active .bar:nth-child(3)::before {
    opacity: 1;
    background: linear-gradient(-45deg, #ffd700, var(--accent-gold));
}

/* Progress Bar */
.progress-bar-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px; /* Height of the progress bar */
    background-color: rgba(224, 210, 210, 0.1); /* Light background for the bar track */
    z-index: 1000; /* Ensure it's above other content but below header */
}

.progress-bar {
    height: 100%;
    width: 0%;
    background-color: var(--accent-gold); /* Gold color for the progress */
    transition: width 0.1s linear; /* Smooth animation for progress */
}

/* Hero Section (only for index.html) */
.hero {
    /* Removed background image as video will take its place */
    color: var(--text-light);
    text-align: center;
    padding: 0; /* Remove padding here as hero-overlay will handle it */
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 90vh; /* Larger hero section */
    overflow: hidden; /* Ensure video doesn't overflow */
}

#hero-image-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover; /* Cover the entire container */
    background-position: center;
    background-repeat: no-repeat;
    z-index: -1; /* Place behind content */
}

.hero-video-background {
    display: none; /* Hide video background when using image */
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.6); /* Slightly increased overlay for better text contrast with r7.jpg */
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 0; /* Above video, below content */
    padding: 150px 0; /* Adjusted padding for content */
}

.hero-content {
    position: relative;
    z-index: 1; /* Ensure content is above the overlay */
    max-width: 900px;
}

.hero-content h1 {
    font-size: 5.8em; /* Even larger for dramatic effect */
    margin-bottom: 30px;
    color: var(--accent-gold); /* Golden color for a luxurious feel */
    text-shadow: 6px 6px 15px rgba(0,0,0,1); /* Even stronger shadow for depth and visibility */
    opacity: 0;
    transform: translateY(30px);
    animation: textFadeInUp 1.8s ease-out forwards 0.3s; /* Adjusted delay and duration */
}

.hero-content p {
    font-size: 2.4em; /* Larger for better readability and impact */
    margin-bottom: 60px;
    color: var(--text-light); /* Ensure light text for contrast */
    font-weight: 400;
    text-shadow: 3px 3px 8px rgba(0,0,0,0.8); /* Stronger shadow for readability */
    opacity: 0;
    transform: translateY(30px);
    animation: textFadeInUp 1.8s ease-out forwards 0.7s; /* Adjusted delay and duration */
}

.hero-content .btn {
    /* opacity: 0; Removed to ensure button is visible by default */
    transform: translateY(30px);
    animation: textFadeInUp 1.8s ease-out forwards 1.1s; /* Adjusted delay and duration */
}

.btn {
    background-color: var(--primary-red);
    color: var(--text-light);
    padding: 18px 45px; /* Larger button padding */
    text-decoration: none;
    border-radius: 50px;
    font-weight: 700; /* Bolder text */
    letter-spacing: 1.5px; /* Slightly more letter spacing */
    transition: background-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    display: inline-block;
    border: 3px solid var(--primary-red); /* Thicker border */
}

.btn:hover {
    background-color: var(--accent-gold); /* Change to gold on hover */
    border-color: var(--accent-gold); /* Change to gold on hover */
    color: var(--secondary-blue); /* Text color changes to royal blue on hover */
    transform: translateY(-7px) scale(1.03); /* More pronounced hover effect */
    box-shadow: 0 15px 35px rgba(0,0,0,0.6); /* Even stronger shadow */
}

/* Sections */
section {
    padding: 100px 0; /* Increased vertical padding for sections */
    text-align: center;
    opacity: 0;
    transform: translateY(40px); /* More pronounced initial translateY */
    transition: opacity 1s ease-out, transform 1s ease-out; /* Slower and smoother transition */
}

section.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.section-subtitle {
    font-size: 1.3em; /* Slightly larger subtitle */
    color: #555; /* Slightly darker grey for better contrast */
    margin-top: -10px; /* Adjusted margin */
    margin-bottom: 60px; /* Increased bottom margin */
    font-weight: 500; /* Slightly bolder */
}

.intro-content {
    max-width: 950px; /* Slightly wider intro content */
    margin: 0 auto;
    text-align: center;
    padding: 30px 0; /* Increased padding */
}

.intro-content p {
    margin-bottom: 1.8em; /* Increased line spacing */
    font-size: 1.15em; /* Slightly larger text */
    color: var(--text-dark);
}

/* About Us Section */
#about ul {
    list-style: none;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    margin-top: 40px;
}

#about ul li {
    background-color: var(--bg-light);
    padding: 35px; /* Increased padding */
    border-radius: 12px; /* Slightly more rounded corners */
    box-shadow: 0 8px 20px rgba(0,0,0,0.08); /* Softer initial shadow */
    transition: transform 0.4s ease, box-shadow 0.4s ease, border-left-color 0.4s ease;
    flex: 1 1 calc(33% - 60px);
    min-width: 300px; /* Slightly wider minimum width */
    text-align: left;
    position: relative;
    padding-left: 70px; /* More space for icon */
    border-left: 6px solid var(--primary-red); /* Thicker border */
    transform-style: preserve-3d; /* Enable 3D transformations */
}

#about ul li:hover {
    transform: translateY(-12px); /* More pronounced lift */
    box-shadow: 0 15px 30px rgba(0,0,0,0.2); /* Stronger shadow on hover */
    border-left-color: var(--accent-gold); /* Gold border on hover */
}

#about ul li strong {
    color: var(--secondary-blue); /* Royal blue for emphasis */
    font-size: 1.3em; /* Slightly larger strong text */
    display: block;
    margin-bottom: 12px;
    transition: color 0.3s ease;
}

#about ul li:hover strong {
    color: var(--primary-red); /* Red on hover */
}

#about ul li::before {
    content: '\f00c'; /* Checkmark icon */
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    color: var(--accent-gold); /* Gold checkmark */
    position: absolute;
    left: 25px; /* Adjusted position */
    top: 35px; /* Adjusted position */
    font-size: 1.8em; /* Larger icon */
}

/* Services Grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 50px; /* Increased gap */
    margin-top: 60px; /* Increased margin */
}

.service-item {
    background-color: rgba(255, 255, 255, 0.1); /* Slightly transparent white background */
    padding: 50px; /* Increased padding */
    border-radius: 15px; /* More rounded corners */
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
    transition: transform 0.4s ease, box-shadow 0.4s ease, border-top-color 0.4s ease;
    text-align: center;
    border-top: 8px solid var(--accent-gold); /* Thicker gold border */
    transform-style: preserve-3d; /* Enable 3D transformations */
}

.service-item:hover {
    transform: translateY(-15px) scale(1.03) rotateX(2deg) rotateY(2deg); /* Add 3D tilt effect */
    box-shadow: 0 20px 40px rgba(0,0,0,0.4); /* Stronger shadow on hover */
    border-top-color: var(--primary-red); /* Red border on hover */
}

.service-item h3 {
    color: var(--accent-gold);
    margin-bottom: 18px;
    font-size: 1.8em;
    transition: color 0.3s ease;
}

.service-item:hover h3 {
    color: var(--primary-red);
}

.service-icon {
    font-size: 4.5em; /* Larger icon */
    color: var(--primary-red);
    margin-bottom: 25px;
    display: block;
    transition: color 0.3s ease, transform 0.3s ease;
}

.service-item:hover .service-icon {
    color: var(--accent-gold);
    transform: translateY(-10px) scale(1.2); /* More pronounced lift and scale */
}

.service-benefits {
    list-style: none;
    padding: 0;
    margin-top: 25px; /* Increased margin */
    text-align: left;
}

.service-benefits li {
    font-size: 1em; /* Slightly larger text */
    color: #444;
    margin-bottom: 10px;
    position: relative;
    padding-left: 25px; /* More space for checkmark */
}

.service-benefits li::before {
    content: '\f00c';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    color: var(--accent-gold);
    position: absolute;
    left: 0;
    top: 4px;
    font-size: 0.9em;
}

.call-to-action {
    background-color: var(--secondary-blue);
    color: var(--text-light);
    padding: 80px 60px; /* Increased padding */
    border-radius: 15px; /* More rounded corners */
    margin-top: 80px; /* Increased margin */
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15); /* Stronger shadow */
}

.call-to-action p {
    font-size: 2.2em; /* Larger text */
    margin-bottom: 40px;
    font-family: 'Playfair Display', serif;
    font-weight: 700;
}

.call-to-action .btn {
    background-color: var(--primary-red);
    border-color: var(--primary-red);
}

.call-to-action .btn:hover {
    background-color: var(--accent-gold);
    border-color: var(--accent-gold);
    color: var(--secondary-blue);
}

/* Portfolio Categories */
.portfolio-categories {
    margin-bottom: 50px; /* Increased margin */
}

.category-btn {
    background-color: var(--secondary-blue); /* Royal blue background */
    border: 2px solid var(--secondary-blue); /* Matching border */
    padding: 14px 30px; /* Larger padding */
    margin: 0 12px; /* Increased margin */
    cursor: pointer;
    border-radius: 50px;
    font-weight: 600;
    color: var(--text-light); /* Light text for contrast */
    transition: background-color 0.3s ease, color 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2); /* More prominent shadow */
}

.category-btn.active,
.category-btn:hover {
    background-color: var(--accent-gold); /* Gold on active/hover */
    color: var(--secondary-blue); /* Text to royal blue */
    transform: translateY(-5px); /* More pronounced lift */
    box-shadow: 0 8px 20px rgba(0,0,0,0.3); /* Stronger shadow on hover */
    border-color: var(--accent-gold); /* Gold border on hover */
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); /* Slightly larger min-width */
    gap: 40px; /* Increased gap */
    margin-top: 60px; /* Increased margin */
}

.portfolio-item {
    background-color: transparent; /* Light background */
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 14px rgba(0,0,0,0.06);
    transition: transform 0.4s ease, box-shadow 0.4s ease, border-color 0.3s ease;
    border: 1px solid rgba(0,0,0,0.06);
}

.portfolio-item:hover {
    transform: translateY(-15px) scale(1.02); /* More pronounced lift and slight scale */
    box-shadow: 0 18px 40px rgba(0,0,0,0.22); /* Stronger shadow on hover */
    border-color: rgba(var(--accent-gold-rgb), 0.45);
}

.portfolio-item img {
    width: 100%;
    height: 280px; /* Taller images */
    object-fit: cover;
    transition: transform 0.6s ease;
}

.portfolio-item:hover img {
    transform: scale(1.08); /* More pronounced zoom */
}

.portfolio-item h3 {
    padding: 25px; /* Increased padding */
    margin: 0;
    color: var(--secondary-blue);
    font-size: 1.8em; /* Larger heading */
    text-align: left;
    transition: color 0.3s ease;
}

.portfolio-item:hover h3 {
    color: var(--primary-red); /* Red on hover */
}

.portfolio-description {
    padding: 0 25px 20px; /* Adjusted padding */
    font-size: 1.1em; /* Slightly larger text */
    color: var(--text-dark); /* Dark text for readability */
    text-align: left;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.6s ease-out, padding 0.6s ease-out;
    opacity: 0;
}

.portfolio-item:hover .portfolio-description {
    max-height: 120px; /* Allow more description to show */
    padding-bottom: 30px; /* Increased padding */
    opacity: 1;
}

/* Portfolio tags and meta */
.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 0 25px 12px;
}
.tag {
    background: rgba(var(--secondary-blue-rgb), 0.08);
    color: var(--secondary-blue);
    border: 1px solid rgba(var(--secondary-blue-rgb), 0.25);
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 0.85em;
    font-weight: 600;
}
.project-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 14px 18px;
    padding: 0 25px 18px;
    color: #555;
    font-size: 0.95em;
}
.project-meta i { color: var(--accent-gold); margin-right: 6px; }

/* Service tags (re-use tag chip style) */
.service-tags {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

/* Latest Works Gallery */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 18px;
    margin-top: 40px;
}
.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
    cursor: zoom-in;
}
.gallery-item img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    transition: transform 0.6s ease, filter 0.3s ease;
}
.gallery-item::after {
    content: '';
    position: absolute; inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.35), rgba(0,0,0,0));
    opacity: 0; transition: opacity 0.3s ease;
}
.gallery-item::before {
    content: '\\f00e';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    position: absolute; left: 12px; bottom: 12px;
    color: rgba(255,255,255,0.95);
    background: rgba(0,0,0,0.35);
    width: 34px; height: 34px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    transform: translateY(8px); opacity: 0; transition: all 0.25s ease;
}
.gallery-item:hover img { transform: scale(1.07); filter: saturate(1.05); }
.gallery-item:hover::after { opacity: 1; }
.gallery-item:hover::before { transform: translateY(0); opacity: 1; }

/* Lightbox */
.lightbox {
    display: none;
    position: fixed; inset: 0; z-index: 1002;
    background: rgba(0,0,0,0.85);
    backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
    align-items: center; justify-content: center;
}
.lightbox.show { display: flex; }
.lightbox-image {
    max-width: 90vw; max-height: 75vh; border-radius: 12px;
    box-shadow: 0 20px 45px rgba(0,0,0,0.5);
}
.lightbox-caption {
    position: absolute; bottom: 40px; left: 50%; transform: translateX(-50%);
    color: var(--text-light); background: rgba(0,0,0,0.45);
    padding: 10px 16px; border-radius: 8px; font-weight: 600;
}
.lightbox-close, .lightbox-prev, .lightbox-next {
    position: absolute; background: rgba(0,0,0,0.55); color: var(--text-light);
    border: 1px solid rgba(255,255,255,0.25); border-radius: 50%; width: 42px; height: 42px;
    display: flex; align-items: center; justify-content: center; cursor: pointer;
    transition: transform 0.2s ease, background 0.2s ease;
}
.lightbox-close { top: 20px; right: 20px; }
.lightbox-prev { left: 25px; }
.lightbox-next { right: 25px; }
.lightbox-close:hover, .lightbox-prev:hover, .lightbox-next:hover { background: rgba(255,255,255,0.2); transform: scale(1.05); }

@media (max-width: 768px) {
    .gallery-item img { height: 180px; }
    .lightbox-image { max-width: 94vw; max-height: 70vh; }
}

.portfolio-btn {
    display: inline-block;
    margin: 0 25px 30px; /* Adjusted margins */
    padding: 12px 25px; /* Larger padding */
    background-color: var(--accent-gold); /* Gold button */
    color: var(--secondary-blue); /* Royal blue text */
    border-radius: 8px;
    text-decoration: none;
    font-size: 1em; /* Slightly larger button text */
    font-weight: 700; /* Bolder */
    transition: background-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease, color 0.3s ease;
    opacity: 0;
    transform: translateY(15px); /* More pronounced initial translateY */
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.portfolio-item:hover .portfolio-btn {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.25s; /* Slightly longer delay */
    background-color: var(--primary-red); /* Red on hover */
    color: var(--text-light); /* Light text on hover */
    box-shadow: 0 6px 15px rgba(0,0,0,0.2);
}

.portfolio-btn:hover {
    background-color: var(--secondary-blue); /* Royal blue on secondary hover */
    transform: translateY(-3px) scale(1.02); /* Slight lift on secondary hover */
    color: var(--accent-gold); /* Gold text on secondary hover */
}

/* What Sets Us Apart Section (Added for about.html) */
#what-sets-us-apart .features-grid {
    margin-top: 50px;
    margin-bottom: 80px;
}

#what-sets-us-apart .feature-item {
    text-align: center;
    padding: 50px 30px;
    border-left: none; /* Remove left border */
    border-bottom: 6px solid var(--primary-red); /* Add a bottom border */
    border-radius: 12px;
    transition: transform 0.4s ease, box-shadow 0.4s ease, border-bottom-color 0.4s ease;
}

#what-sets-us-apart .feature-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.2);
    border-bottom-color: var(--accent-gold); /* Change border color on hover */
}

#what-sets-us-apart .feature-item i {
    font-size: 4.5em;
    color: var(--accent-gold);
    margin-bottom: 25px;
    transition: color 0.3s ease, transform 0.3s ease;
}

#what-sets-us-apart .feature-item:hover i {
    color: var(--secondary-blue);
    transform: scale(1.1);
}

#what-sets-us-apart .feature-item h3 {
    color: var(--secondary-blue);
    font-size: 1.8em;
    margin-bottom: 15px;
}

#what-sets-us-apart .feature-item p {
    color: #555;
    font-size: 1.1em;
}


/* Why Choose Us */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
    margin-bottom: 60px;
}

.feature-item {
    background-color: var(--bg-light);
    padding: 40px; /* Increased padding */
    border-radius: 12px; /* More rounded corners */
    box-shadow: 0 8px 20px rgba(0,0,0,0.08); /* Softer initial shadow */
    transition: transform 0.4s ease, box-shadow 0.4s ease, border-left-color 0.4s ease;
    text-align: left;
    border-left: 6px solid var(--primary-red); /* Thicker border */
    transform-style: preserve-3d; /* Enable 3D transformations */
}

.feature-item:hover {
    transform: translateY(-12px) rotateX(5deg) rotateY(-5deg); /* Add 3D tilt effect */
    box-shadow: 0 15px 30px rgba(0,0,0,0.2); /* Stronger shadow on hover */
    border-left-color: var(--accent-gold); /* Gold border on hover */
}

.feature-item h3 {
    color: var(--secondary-blue); /* Royal blue for emphasis */
    margin-bottom: 18px;
    font-size: 1.7em; /* Larger heading */
    transition: color 0.3s ease;
}

.feature-item:hover h3 {
    color: var(--primary-red);
}

/* Why Choose Us – enhanced card layout */
#why-choose-us .features-grid {
    grid-template-columns: 1fr; /* Full-width cards for optimal readability */
    gap: 32px;
}
#why-choose-us .feature-item {
    display: grid;
    grid-template-columns: 240px 1fr;
    align-items: center;
    gap: 24px;
    text-align: left;
    border-left: none;
    border-bottom: 6px solid rgba(var(--accent-gold-rgb), 0.6);
    padding: 20px 22px;
    background: linear-gradient(180deg, rgba(255,255,255,0.9), rgba(255,255,255,0.82));
    border: 1px solid rgba(0,0,0,0.06);
    border-radius: 12px;
}
#why-choose-us .feature-item:hover {
    transform: translateY(-10px);
}
#why-choose-us .feature-item-img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 12px;
    margin: 0; /* override generic spacing */
    box-shadow: 0 8px 18px rgba(0,0,0,0.15);
}
#why-choose-us .feature-item h3 { margin-bottom: 10px; }
#why-choose-us .feature-item p { line-height: 1.8; }
#why-choose-us .feature-bullets {
    margin: 0 0 8px 0;
    padding-left: 18px;
    color: #444;
}
#why-choose-us .feature-bullets li { margin: 6px 0; }
#why-choose-us .feature-bullets li { position: relative; list-style: none; padding-left: 18px; }
#why-choose-us .feature-bullets li::before {
    content: '✓';
    font-weight: 700;
    color: var(--accent-gold);
    position: absolute; left: 0; top: 0.1em;
}
/* Extra spacing to prevent any visual overlap in this section */
#why-choose-us h2 { margin-bottom: 50px; }
#why-choose-us h2::after { bottom: -6px; }

/* Alternate image position for visual rhythm */
#why-choose-us .feature-item:nth-child(even) { grid-template-columns: 1fr 240px; }
#why-choose-us .feature-item:nth-child(even) .feature-item-img { order: 2; }

@media (max-width: 768px) {
    #why-choose-us .feature-item { grid-template-columns: 1fr; }
    #why-choose-us .feature-item:nth-child(even) { grid-template-columns: 1fr; }
    #why-choose-us .feature-item-img { height: 160px; }
}

@media (min-width: 1200px) {
    #why-choose-us .features-grid { grid-template-columns: 1fr 1fr; }
}

.testimonials {
    background-color: #f5f5f5; /* Slightly lighter background */
    padding: 70px; /* Increased padding */
    border-radius: 15px; /* More rounded corners */
    box-shadow: 0 10px 30px rgba(0,0,0,0.1); /* Stronger shadow */
    margin-top: 80px; /* Increased margin */
}

.testimonials h3 {
    color: var(--primary-red);
    margin-bottom: 40px;
    font-size: 2.5em; /* Larger heading */
}

.testimonial-item {
    margin-bottom: 40px;
    font-style: italic;
    font-size: 1.2em; /* Slightly larger text */
    color: var(--text-dark);
    max-width: 900px; /* Wider max-width */
    margin-left: auto;
    margin-right: auto;
    position: relative;
    padding: 20px;
    border-left: 4px solid var(--accent-gold); /* Gold accent border */
}

.testimonial-item p {
    margin-bottom: 20px; /* Increased margin */
    line-height: 1.8; /* Increased line height for readability */
}

.testimonial-item span {
    display: block;
    margin-top: 15px;
    font-weight: 700; /* Bolder text */
    color: var(--secondary-blue);
    font-size: 1em; /* Slightly larger text */
    transition: color 0.3s ease;
}

.testimonial-item:hover span {
    color: var(--primary-red);
}

/* Testimonials Carousel Specific Styles */
.testimonials-carousel {
    position: relative;
    overflow: hidden;
    width: 100%;
    margin: 40px auto; /* Centered with vertical spacing */
    max-width: 900px; /* Aligns with testimonial item max-width */
    height: 300px; /* Base height */
}

.testimonials-carousel .testimonial-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 30px; /* Adjusted padding for carousel */
    border-left: 4px solid var(--accent-gold); /* Gold accent border */
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
    box-sizing: border-box; /* Include padding in width/height */
    text-align: center; /* Center text within carousel item */
}

.testimonials-carousel .testimonial-item.active {
    opacity: 1;
}

.testimonials-carousel .testimonial-item p {
    font-size: 1.3em; /* Slightly larger for emphasis */
    line-height: 1.7;
    margin-bottom: 25px; /* Increased margin */
    color: var(--text-dark);
}

.testimonials-carousel .testimonial-item span {
    font-size: 1.1em; /* Slightly larger for attribution */
    font-weight: 700;
    color: var(--secondary-blue);
}

.carousel-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 20px;
    gap: 15px; /* Spacing between elements */
}

.carousel-nav button {
    background-color: var(--primary-red);
    color: var(--text-light);
    border: none;
    padding: 10px 15px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1.1em;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.carousel-nav button:hover {
    background-color: var(--accent-gold);
    color: var(--secondary-blue);
    transform: scale(1.05);
}

.pagination-dots {
    display: flex;
    gap: 8px;
}

.dot {
    width: 12px;
    height: 12px;
    background-color: #bbb; /* Inactive dot color */
    border-radius: 50%;
    cursor: pointer;
    transition: background-color 0.6s ease, transform 0.3s ease;
}

/* Responsive Testimonials */
@media (max-width: 992px) {
    .testimonials { padding: 60px; }
    .testimonials h3 { font-size: 2.2em; }
    .testimonials-carousel { height: 260px; }
    .testimonials-carousel .testimonial-item p { font-size: 1.15em; line-height: 1.6; }
    .carousel-nav button { font-size: 1em; padding: 8px 12px; }
}

@media (max-width: 768px) {
    .testimonials { padding: 45px; }
    .testimonials h3 { font-size: 2em; }
    .testimonials-carousel { height: 220px; max-width: 100%; }
    .testimonials-carousel .testimonial-item { padding: 24px; }
    .testimonials-carousel .testimonial-item p { font-size: 1.05em; margin-bottom: 18px; }
    .testimonials-carousel .testimonial-item span { font-size: 1em; }
    .pagination-dots { gap: 6px; }
    .dot { width: 10px; height: 10px; }
}

@media (max-width: 480px) {
    .testimonials { padding: 36px; }
    .testimonials h3 { font-size: 1.8em; }
    .testimonials-carousel { height: 200px; }
    .testimonials-carousel .testimonial-item { padding: 20px; }
    .testimonials-carousel .testimonial-item p { font-size: 0.98em; line-height: 1.5; }
    .carousel-nav { gap: 10px; }
    .carousel-nav button { font-size: 0.95em; padding: 8px 10px; }
}

.active, .dot:hover {
    background-color: var(--primary-red);
}

/* Contact Form */
#contact h2::after {
    background-color: var(--secondary-blue);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 25px; /* Increased gap */
    max-width: 750px; /* Wider form */
    margin: 50px auto 70px auto; /* Adjusted margins */
    background-color: var(--bg-light);
    padding: 50px; /* Increased padding */
    border-radius: 15px; /* More rounded corners */
    box-shadow: 0 10px 30px rgba(0,0,0,0.15); /* Stronger shadow */
}

.contact-form input,
.contact-form textarea {
    padding: 18px; /* Increased padding */
    border: 1px solid #ccc; /* Lighter border */
    border-radius: 10px; /* More rounded corners */
    font-size: 1.05em; /* Slightly larger font */
    font-family: 'Raleway', sans-serif;
    color: var(--text-dark);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.contact-form select { padding: 14px; border: 1px solid #ccc; border-radius: 10px; font-size: 1.05em; color: var(--text-dark); background: #fff; }
.contact-form input[type="checkbox"] { margin-right: 8px; }

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: var(--accent-gold); /* Gold border on focus */
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.4); /* Stronger gold shadow on focus */
    outline: none;
}

.contact-form button {
    align-self: center;
    width: 60%; /* Wider button */
    margin-top: 30px; /* Increased margin */
}

.contact-form-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px; /* Increased gap */
    margin-top: 50px;
    margin-bottom: 80px;
    align-items: flex-start;
}

.contact-cta {
    background-color: var(--secondary-blue);
    color: var(--text-light);
    padding: 50px; /* Increased padding */
    border-radius: 15px; /* More rounded corners */
    box-shadow: 0 10px 30px rgba(0,0,0,0.15); /* Stronger shadow */
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100%;
    word-wrap: break-word;
    overflow-wrap: anywhere; /* Prevent text overflow */
}

.contact-cta h3 {
    color: var(--accent-gold);
    font-size: 2.5em; /* Larger heading */
    margin-bottom: 25px;
}

.contact-cta p {
    font-size: 1.2em; /* Slightly larger text */
    margin-bottom: 40px;
}

.map-container {
    margin-top: 80px; /* Increased margin */
    padding: 40px; /* Increased padding */
    background-color: var(--bg-light);
    border-radius: 15px; /* More rounded corners */
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

/* FAQ */
.faq details { background: var(--bg-light); border: 1px solid rgba(0,0,0,0.08); border-radius: 12px; padding: 14px 16px; margin-bottom: 12px; box-shadow: 0 6px 16px rgba(0,0,0,0.06); }
.faq summary { cursor: pointer; font-weight: 700; color: var(--secondary-blue); }
.faq details[open] summary { color: var(--primary-red); }
.faq p { margin: 10px 0 0 0; color: #444; text-align: left; }

/* Toast */
.toast { position: fixed; bottom: 90px; right: 40px; background: rgba(0,0,0,0.85); color: #fff; padding: 12px 16px; border-radius: 8px; box-shadow: 0 8px 20px rgba(0,0,0,0.25); opacity: 0; transform: translateY(10px); transition: opacity 0.25s ease, transform 0.25s ease; z-index: 10001; }
.toast.show { opacity: 1; transform: translateY(0); }

.map-container iframe {
    border-radius: 10px; /* More rounded corners */
    margin-top: 40px; /* Increased margin */
}

.contact-info {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 40px; /* Increased gap */
    margin-top: 50px;
    padding: 40px; /* Increased padding */
    background-color: var(--bg-light);
    border-radius: 15px; /* More rounded corners */
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.contact-info p {
    margin: 0;
    font-size: 1.15em; /* Slightly larger text */
    color: var(--text-dark);
    display: flex;
    align-items: center;
    gap: 12px; /* Increased gap */
}

.contact-info p i {
    color: var(--primary-red);
    font-size: 1.4em; /* Larger icon */
    transition: color 0.3s ease;
}

.contact-info p:hover i {
    color: var(--accent-gold); /* Gold on hover */
}

.social-links {
    margin-top: 30px; /* Increased margin */
    display: flex;
    justify-content: center;
    gap: 25px; /* Increased gap */
}

.social-links a {
    color: var(--secondary-blue);
    text-decoration: none;
    font-size: 1.3em; /* Larger icons */
    transition: color 0.3s ease, transform 0.3s ease;
}

.social-links a:hover {
    color: var(--accent-gold); /* Gold on hover */
    transform: translateY(-5px) scale(1.1); /* More pronounced lift and scale */
}

/* Footer */
footer {
    background: linear-gradient(180deg, rgba(var(--secondary-blue-rgb), 1) 0%, rgba(0, 10, 35, 1) 100%);
    color: var(--text-light);
    text-align: center;
    padding: 25px 0;
    padding-top: 80px;
    margin-top: 60px;
    font-size: 0.9em;
    transition: background-color 0.3s ease, color 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}

footer::before {
    content: '';
    position: absolute; left: 0; right: 0; top: -40px; height: 40px;
    background: radial-gradient(120% 60% at 50% 100%, rgba(var(--accent-gold-rgb),0.35), rgba(0,0,0,0) 70%);
}

.footer-main {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); /* Responsive grid */
    gap: 40px; /* Spacing between columns */
    text-align: left;
    padding: 40px 0;
}

.footer-col h3 {
    color: var(--accent-gold); /* Golden headings */
    font-size: 1.8em;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 10px;
}

.footer-col h3::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 60px; /* Underline effect */
    height: 3px;
    background-color: var(--accent-gold);
}

.footer-col p {
    color: var(--text-light);
    font-size: 1em;
    line-height: 1.8;
    margin-bottom: 10px;
}

.footer-col .tagline {
    font-family: 'Playfair Display', serif;
    font-size: 1.2em;
    font-weight: 700;
    color: var(--primary-red);
    margin-top: 10px;
    margin-bottom: 15px;
}

.footer-col .about-blurb {
    font-size: 0.95em;
    margin-bottom: 20px;
    max-width: 350px;
}

.footer-logo {
    max-width: 180px; /* Slightly larger footer logo */
    height: auto;
    margin-bottom: 20px; /* Increased margin */
    filter: drop-shadow(0 0 10px rgba(var(--accent-gold-rgb),0.8)); /* More prominent golden glow */
    transition: all 0.4s ease; /* Smooth transition for hover effects */
}

.footer-logo:hover {
    transform: scale(1.08) rotate(-2deg); /* Subtle scale and rotate on hover */
    filter: drop-shadow(0 0 15px rgba(var(--primary-red-rgb),0.9)); /* Red glow on hover */
}

.quick-links ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.quick-links ul li {
    margin-bottom: 10px;
}

.quick-links ul li a {
    color: var(--text-light); /* Ensure light text for links */
    text-decoration: none;
    font-size: 1em;
    transition: color 0.3s ease, transform 0.3s ease;
    display: inline-block;
    position: relative;
}

.quick-links ul li a:hover {
    color: var(--accent-gold); /* Gold on hover */
    transform: translateX(5px); /* Subtle slide effect */
}

.quick-links ul li a::after {
    content: '';
    position: absolute; left: 0; bottom: -4px; height: 2px; width: 0;
    background: var(--accent-gold);
    transition: width 0.25s ease;
}
.quick-links ul li a:hover::after { width: 100%; }
.quick-links ul li a:focus-visible {
    outline: 2px dashed rgba(var(--accent-gold-rgb),0.8);
    outline-offset: 3px;
}

.footer-col.contact-info p {
    color: var(--text-light); /* Ensure light text for contact info paragraphs */
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.footer-col.contact-info p i {
    color: var(--accent-gold); /* Gold icons for better contrast */
    font-size: 1.2em;
}

/* Footer contact card legibility on dark gradient */
.footer-col.contact-info {
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 12px;
    padding: 16px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.18);
}

.footer-col.contact-info a { color: #ffffff; text-decoration: none; }
.footer-col.contact-info a:hover { color: var(--accent-gold); }

.footer-social-links {
    margin-top: 30px;
    text-align: left;
}

.footer-social-links a {
    font-size: 1.1em;
    margin-right: 12px;
    color: var(--text-light);
    width: 42px; height: 42px; display: inline-flex; align-items: center; justify-content: center;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 50%;
    transition: color 0.25s ease, transform 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
}

.footer-social-links a:hover {
    color: var(--secondary-blue);
    background: var(--accent-gold);
    box-shadow: 0 6px 16px rgba(0,0,0,0.25);
    transform: translateY(-4px);
}

@media (max-width: 768px) { /* Responsive adjustments */
    .footer-main {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .footer-col h3::after {
        left: 50%;
        transform: translateX(-50%);
    }
    .footer-col .about-blurb,
    .footer-col .tagline {
        max-width: none;
        margin-left: auto;
        margin-right: auto;
    }
    .quick-links ul li a::before {
        left: 50%;
        transform: translateY(-50%) translateX(-80px);
    }
    .quick-links ul li a:hover::before {
        transform: translateY(-50%) translateX(-60px);
    }
    .contact-info p {
        justify-content: center;
    }
    .footer-social-links {
        justify-content: center;
    }
}

/* Keyframe Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px); /* More pronounced effect */
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes textFadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px); /* More pronounced effect */
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-60px); /* More pronounced effect */
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(60px); /* More pronounced effect */
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes zoomIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes textFadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.03); }
    100% { transform: scale(1); }
}

/* Custom Cursor */
.custom-cursor {
    width: 25px; /* Slightly larger cursor */
    height: 25px;
    border-radius: 50%;
    background-color: var(--primary-red);
    position: fixed;
    pointer-events: none;
    z-index: 9999;
    mix-blend-mode: difference;
    transition: transform 0.15s ease-out, width 0.25s ease-out, height 0.25s ease-out, background-color 0.25s ease;
    transform: translate(-50%, -50%);
}

.custom-cursor.hovered {
    width: 50px; /* Larger on hover */
    height: 50px;
    background-color: var(--accent-gold);
}

/* Micro-interactions for clickable elements */
button, .btn, a, .category-btn, .team-member, .service-item, .portfolio-item, .award-item {
    cursor: none; /* Hide default cursor */
}

/* Apply different animations based on section ID or a custom class */
#introduction.is-visible .intro-content {
    animation: fadeInLeft 1.2s ease-out forwards; /* Slower animation */
}

#services-overview.is-visible .service-item {
    animation: fadeInUp 1s ease-out forwards; /* Slower animation */
}

#featured-projects.is-visible .portfolio-item {
    animation: zoomIn 1s ease-out forwards; /* Slower animation */
}

#about .intro-content.is-visible {
    animation: fadeInLeft 1.2s ease-out forwards; /* Slower animation */
}

#about ul li.is-visible {
    animation: fadeInRight 1s ease-out forwards; /* Slower animation */
}

#services .service-item.is-visible {
    animation: fadeInUp 1s ease-out forwards; /* Slower animation */
}

#portfolio .portfolio-item.is-visible {
    animation: zoomIn 1s ease-out forwards; /* Slower animation */
}

#why-choose-us .feature-item.is-visible {
    animation: fadeInLeft 1s ease-out forwards; /* Slower animation */
}

#why-choose-us .testimonial-item.is-visible {
    animation: fadeInRight 1s ease-out forwards; /* Slower animation */
}

#contact .contact-form-wrapper.is-visible {
    animation: fadeInUp 1.2s ease-out forwards; /* Slower animation */
}

#contact .contact-info.is-visible {
    animation: zoomIn 1.2s ease-out forwards; /* Slower animation */
}

#contact .map-container.is-visible {
    animation: fadeInUp 1.2s ease-out forwards; /* Slower animation */
}

#about #team.is-visible .team-member {
    animation: zoomIn 1s ease-out forwards; /* Add animation to team members */
}

#about #awards.is-visible .award-item {
    animation: fadeInUp 1s ease-out forwards; /* Add animation to award items */
}

/* Before & After Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1001;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.85); /* Slightly darker overlay */
    backdrop-filter: blur(8px); /* More pronounced blur */
    -webkit-backdrop-filter: blur(8px);
    padding-top: 80px; /* Increased padding */
}

.modal-content {
    background-color: var(--bg-light);
    margin: 3% auto; /* Adjusted margin */
    padding: 40px; /* Increased padding */
    border-radius: 15px; /* More rounded corners */
    width: 85%; /* Slightly wider modal */
    max-width: 1000px; /* Larger max-width */
    box-shadow: 0 15px 40px rgba(0,0,0,0.4); /* Stronger shadow */
    position: relative;
    animation: zoomIn 0.4s ease-out; /* Slightly slower animation */
}
.modal-content.small { max-width: 420px; }

.modal-content h3 {
    color: var(--secondary-blue);
    text-align: center;
    margin-bottom: 30px; /* Increased margin */
    font-size: 1.8em; /* Larger heading */
}

.close-button {
    color: var(--primary-red);
    font-size: 35px; /* Larger close button */
    font-weight: bold;
    position: absolute;
    top: 20px; /* Adjusted position */
    right: 30px; /* Adjusted position */
    cursor: pointer;
    transition: color 0.3s ease;
}

.close-button:hover,
.close-button:focus {
    color: var(--accent-gold);
    text-decoration: none;
    cursor: pointer;
}

.before-after-container {
    position: relative;
    width: 100%;
    height: 550px; /* Increased height */
    overflow: hidden;
    border-radius: 10px; /* More rounded corners */
    box-shadow: 0 8px 20px rgba(0,0,0,0.15); /* Stronger shadow */
}

.before-after-container img {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none;
}

#afterImage {
    width: 50%;
}

.resize-handle {
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 6px; /* Thicker handle */
    background-color: var(--accent-gold);
    cursor: ew-resize;
    z-index: 10;
    transform: translateX(-50%);
}

.resize-handle::before,
.resize-handle::after {
    content: '';
    position: absolute;
    width: 35px; /* Larger circles */
    height: 35px;
    background-color: var(--accent-gold);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    box-shadow: 0 0 12px rgba(0,0,0,0.4); /* Stronger shadow */
    transition: background-color 0.3s ease;
}

.resize-handle::before {
    background-color: var(--primary-red);
    left: -25px; /* Adjusted position */
    mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path fill="white" d="M15.41 16.59L10.83 12l4.58-4.59L14 6l-6 6 6 6z"/></svg>') no-repeat center;
    -webkit-mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path fill="white" d="M15.41 16.59L10.83 12l4.58-4.59L14 6l-6 6 6 6z"/></svg>') no-repeat center;
    transform: translate(-50%, -50%) scale(0.9); /* Slightly larger scale */
}

.resize-handle::after {
    background-color: var(--secondary-blue);
    left: 25px; /* Adjusted position */
    mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path fill="white" d="M8.59 16.59L13.17 12 8.59 7.41L10 6l6 6-6 6z"/></svg>') no-repeat center;
    -webkit-mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path fill="white" d="M8.59 16.59L13.17 12 8.59 7.41L10 6l6 6-6 6z"/></svg>') no-repeat center;
    transform: translate(-50%, -50%) scale(0.9); /* Slightly larger scale */
}

.resize-handle:hover::before,
.resize-handle:hover::after {
    background-color: var(--primary-red);
    transform: translate(-50%, -50%) scale(1); /* Full scale on hover */
}

/* Team Section */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); /* Slightly wider min-width */
    gap: 40px; /* Increased gap */
    margin-top: 60px; /* Increased margin */
}

.team-member {
    background-color: var(--bg-light);
    padding: 30px; /* Increased padding */
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    text-align: center;
}

.team-member:hover {
    transform: translateY(-15px); /* More pronounced lift */
    box-shadow: 0 18px 40px rgba(0,0,0,0.25); /* Stronger shadow */
}

/* Replace logo images with role badges */
.team-badge {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    background: radial-gradient(60% 60% at 40% 35%, rgba(255,255,255,0.95), rgba(255,255,255,0.65)),
                conic-gradient(from 180deg at 50% 50%, rgba(219,185,72,0.35), rgba(219,185,72,0.1) 40%, rgba(65,105,225,0.18) 70%, rgba(219,185,72,0.35));
    border: 3px solid rgba(219,185,72,0.6);
    box-shadow: 0 8px 20px rgba(0,0,0,0.08), inset 0 0 0 2px rgba(255,255,255,0.65);
    position: relative;
    overflow: hidden;
    transition: transform 300ms ease, box-shadow 300ms ease;
}
.team-badge i {
    font-size: 42px;
    color: var(--secondary-blue);
}

/* Badge sheen animation */
.team-badge::before {
    content: "";
    position: absolute;
    inset: -40%;
    border-radius: 50%;
    background: conic-gradient(from 0deg, rgba(219,185,72,0.0) 0%, rgba(219,185,72,0.35) 15%, rgba(219,185,72,0.0) 30%, rgba(219,185,72,0.0) 100%);
    transform: rotate(0deg);
    opacity: 0.0;
    transition: opacity 300ms ease;
    pointer-events: none;
}
.team-member:hover .team-badge,
.team-member:focus-within .team-badge {
    transform: translateY(-2px);
    box-shadow: 0 14px 30px rgba(0,0,0,0.12), inset 0 0 0 2px rgba(255,255,255,0.7);
}
.team-member:hover .team-badge::before,
.team-member:focus-within .team-badge::before {
    opacity: 0.65;
    animation: badge-spin 1800ms linear infinite;
}

@keyframes badge-spin {
    to { transform: rotate(360deg); }
}

@media (prefers-reduced-motion: reduce) {
    .team-member:hover .team-badge,
    .team-member:focus-within .team-badge { transform: none; }
    .team-member:hover .team-badge::before,
    .team-member:focus-within .team-badge::before { animation: none; opacity: 0.3; }
}

/* Mobile: outline-only minimalist badges */
@media (max-width: 576px) {
    .team-badge {
        width: 92px;
        height: 92px;
        background: transparent;
        border: 2px solid rgba(219,185,72,0.65);
        box-shadow: inset 0 0 0 1px rgba(255,255,255,0.6);
    }
    .team-badge::before { display: none; }
    .team-badge i { font-size: 34px; }
    /* Tighten team grid gutters for edge-to-edge alignment */
    #team.container { padding-left: 16px; padding-right: 16px; }
    #team .team-grid { gap: 14px; }
    #team .team-member { padding: 18px 16px; }
}

.team-member:hover img {
    border-color: var(--accent-gold); /* Gold border on hover */
    transform: scale(1.05); /* Slight scale on hover */
}

.team-member h3 {
    color: var(--secondary-blue);
    font-size: 1.6em; /* Larger heading */
    margin-bottom: 8px;
    transition: color 0.3s ease;
}

.team-member:hover h3 {
    color: var(--primary-red);
}

.team-member .team-role {
    color: var(--accent-gold); /* Gold for role */
    font-size: 1.05em; /* Slightly larger role text */
    font-weight: 700; /* Bolder */
    margin-bottom: 15px;
    display: block;
    transition: color 0.3s ease;
}

/* Team cards subtle badges (icons in titles) */
.team-member h3 i { color: var(--accent-gold); margin-right: 6px; }

/* Role-themed backgrounds (subtle, modern) */
.team-member.role-exec {
    background: linear-gradient(180deg, rgba(255,255,255,0.7), rgba(255,255,255,0.55)),
                radial-gradient(1200px 400px at -10% -10%, rgba(219, 185, 72, 0.18), transparent 60%),
                linear-gradient(135deg, rgba(15, 40, 95, 0.16), rgba(0, 0, 0, 0.06));
    backdrop-filter: blur(6px);
}
.team-member.role-architect {
    background: linear-gradient(180deg, rgba(255,255,255,0.72), rgba(255,255,255,0.52)),
                radial-gradient(1100px 380px at 110% -20%, rgba(65, 105, 225, 0.18), transparent 60%),
                linear-gradient(135deg, rgba(0, 64, 128, 0.14), rgba(0,0,0,0.06));
}
.team-member.role-interior {
    background: linear-gradient(180deg, rgba(255,255,255,0.72), rgba(255,255,255,0.52)),
                radial-gradient(1000px 360px at 0% 120%, rgba(219, 185, 72, 0.16), transparent 60%),
                linear-gradient(135deg, rgba(20, 20, 20, 0.08), rgba(0,0,0,0.04));
}
.team-member.role-pm {
    background: linear-gradient(180deg, rgba(255,255,255,0.7), rgba(255,255,255,0.5)),
                radial-gradient(1000px 360px at 120% 120%, rgba(0, 128, 255, 0.14), transparent 60%),
                linear-gradient(135deg, rgba(10, 70, 140, 0.12), rgba(0,0,0,0.04));
}
.team-member.role-engineer {
    background: linear-gradient(180deg, rgba(255,255,255,0.7), rgba(255,255,255,0.5)),
                radial-gradient(900px 320px at 50% 0%, rgba(40, 160, 140, 0.14), transparent 60%),
                linear-gradient(135deg, rgba(5, 25, 60, 0.12), rgba(0,0,0,0.04));
}

/* Studio Timeline */
#studio-timeline { margin-top: 16px; }
#studio-timeline h2 { margin-top: 6px; }
#studio-timeline .section-subtitle { max-width: 780px; }
.capabilities-ribbon { margin-bottom: 6px; }
.capabilities-ribbon {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 14px 0 8px 0;
}
.cap-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    font-size: 0.92rem;
    color: var(--secondary-blue);
    background: rgba(219,185,72,0.14);
    border: 1px solid rgba(219,185,72,0.3);
    border-radius: 999px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.06);
}
.cap-chip i { color: var(--accent-gold); }
.timeline {
    position: relative;
    list-style: none;
    margin: 12px auto 0;
    padding: 0 0 0 22px;
    border-left: 2px dashed rgba(65, 105, 225, 0.35);
}
.timeline-item { position: relative; margin: 0 0 20px 0; }
.timeline-dot {
    position: absolute;
    left: -8px;
    top: 4px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: radial-gradient(circle at 40% 40%, var(--accent-gold), #d1a94a 60%, #b5892a 100%);
    box-shadow: 0 0 0 4px rgba(219, 185, 72, 0.2), 0 2px 8px rgba(0,0,0,0.15);
}
.timeline-card {
    background: linear-gradient(180deg, rgba(255,255,255,0.9), rgba(255,255,255,0.82));
    backdrop-filter: blur(6px);
    border: 1px solid rgba(65, 105, 225, 0.15);
    border-radius: 12px;
    padding: 16px 18px;
    box-shadow: 0 8px 18px rgba(0,0,0,0.06);
}
.timeline-card h3 {
    margin: 0 0 6px 0;
    font-size: 1.1rem;
    color: var(--secondary-blue);
}
.timeline-card p { margin: 0; color: var(--text-muted); }

@media (max-width: 576px) {
    .timeline { padding-left: 18px; }
    .timeline-card { padding: 14px 16px; }
    .capabilities-ribbon { gap: 8px; }
    .cap-chip { font-size: 0.88rem; padding: 5px 9px; }
    #studio-timeline { margin-top: 10px; }
}

/* Hide long timeline on small screens to remove blank space */
@media (max-width: 768px) {
    #studio-timeline .timeline { display: none; }
    #studio-timeline { padding-bottom: 0; }
    #studio-timeline .capabilities-ribbon { margin-bottom: 0; }
}

/* Scroll-reveal animations for team and timeline */
.team-grid .team-member,
#studio-timeline .timeline-card {
    opacity: 0;
    transform: translateY(14px);
    transition: opacity 600ms ease, transform 600ms ease;
}

#team.is-visible .team-grid .team-member,
#studio-timeline.is-visible .timeline-card {
    opacity: 1;
    transform: translateY(0);
}

/* Force timeline visible to avoid initial blank space */
#studio-timeline .timeline-card { opacity: 1; transform: none; }

/* Remove timeline (and its vertical space) across all viewports */
#studio-timeline .timeline { display: none; margin: 0; padding: 0; border: 0; }
#studio-timeline { padding-bottom: 0; }

/* Staggered reveal */
#team.is-visible .team-grid .team-member:nth-child(1) { transition-delay: 60ms; }
#team.is-visible .team-grid .team-member:nth-child(2) { transition-delay: 140ms; }
#team.is-visible .team-grid .team-member:nth-child(3) { transition-delay: 220ms; }
#team.is-visible .team-grid .team-member:nth-child(4) { transition-delay: 300ms; }
#team.is-visible .team-grid .team-member:nth-child(5) { transition-delay: 380ms; }

#studio-timeline.is-visible .timeline-item:nth-child(1) .timeline-card { transition-delay: 60ms; }
#studio-timeline.is-visible .timeline-item:nth-child(2) .timeline-card { transition-delay: 140ms; }
#studio-timeline.is-visible .timeline-item:nth-child(3) .timeline-card { transition-delay: 220ms; }
#studio-timeline.is-visible .timeline-item:nth-child(4) .timeline-card { transition-delay: 300ms; }
#studio-timeline.is-visible .timeline-item:nth-child(5) .timeline-card { transition-delay: 380ms; }

@media (prefers-reduced-motion: reduce) {
    .team-grid .team-member,
    #studio-timeline .timeline-card {
        transition: none;
        opacity: 1;
        transform: none;
    }
}

.team-member:hover .team-role {
    color: var(--secondary-blue); /* Royal blue on hover */
}

.team-member .team-description {
    color: #444;
    font-size: 0.95em;
    line-height: 1.6;
}

/* Awards Section */
.awards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px; /* Increased gap */
    margin-top: 60px;
    margin-bottom: 80px;
}

.award-item {
    background-color: var(--bg-light);
    padding: 40px; /* Increased padding */
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
    transition: transform 0.4s ease, box-shadow 0.4s ease, border-bottom-color 0.4s ease;
    text-align: center;
    border-bottom: 6px solid var(--accent-gold); /* Thicker gold border */
}

.award-item:hover {
    transform: translateY(-12px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.2);
}

.award-icon {
    font-size: 4em;
    color: var(--accent-gold);
    margin-bottom: 25px;
    display: block;
    transition: color 0.3s ease, transform 0.3s ease;
}

.award-item:hover .award-icon {
    color: var(--primary-red);
    transform: scale(1.15) rotate(5deg); /* More pronounced scale and slight rotate */
}

.award-item h3 {
    color: var(--secondary-blue);
    margin-bottom: 12px;
    font-size: 1.6em;
    transition: color 0.3s ease;
}

.award-item:hover h3 {
    color: var(--primary-red);
}

.award-item p {
    color: #555;
    font-size: 1em;
}

#why-choose-us .intro-content {
    margin-bottom: 70px; /* Increased margin */
}

/* Animated Statistics Section */
#statistics {
    background-color: var(--bg-dark); /* Dark background for contrast */
    color: var(--text-light);
    padding: 80px 0; /* Consistent padding */
    margin-top: 60px;
}

#statistics h2, #statistics .section-subtitle {
    color: var(--text-light); /* Light text on dark background */
}

/* Override h2 after for light background */
#statistics h2::after {
    background-color: var(--accent-gold); /* Gold underline for statistics */
}

#statistics h2:hover::after {
    background-color: var(--primary-red);
}

.statistics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-top: 50px;
}

.statistic-item {
    background-color: rgba(255, 255, 255, 0.08); /* Slightly transparent white background */
    padding: 30px;
    border-radius: 10px;
    transition: transform 0.3s ease, background-color 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.statistic-item:hover {
    transform: translateY(-8px);
    background-color: rgba(255, 255, 255, 0.15);
}

.statistic-item i {
    font-size: 3.5em;
    color: var(--accent-gold);
    margin-bottom: 15px;
    transition: color 0.3s ease, transform 0.3s ease;
}

.statistic-item:hover i {
    color: var(--primary-red);
    transform: scale(1.1);
}

.statistic-item .counter {
    font-size: 3.5em;
    font-weight: 700;
    color: var(--text-light);
    display: block;
    margin-bottom: 5px;
}

.statistic-item p {
    font-size: 1.1em;
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
}

/* Our Process Timeline Styles */
#process {
    background-color: var(--bg-light);
    color: var(--text-dark);
    padding: 100px 0;
}

#process h2::after {
    background-color: var(--primary-red);
}

.timeline-container {
    position: relative;
    max-width: 1200px;
    margin: 80px auto;
    padding: 0 10px;
}

.timeline-container::after {
    content: '';
    position: absolute;
    width: 6px;
    background-color: var(--secondary-blue); /* Blue line */
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -3px;
    border-radius: 3px;
}

.timeline-item {
    padding: 10px 40px;
    position: relative;
    background-color: inherit;
    width: 50%;
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 1s ease-out, transform 1s ease-out;
}

.timeline-item.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.timeline-item::after {
    content: '';
    position: absolute;
    width: 25px; /* Larger dot */
    height: 25px;
    right: -17px;
    background-color: var(--accent-gold); /* Gold dot */
    border: 4px solid var(--primary-red); /* Red border */
    top: 15px;
    border-radius: 50%;
    z-index: 1;
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

.timeline-item:hover::after {
    background-color: var(--primary-red);
    border-color: var(--accent-gold);
}

.timeline-item.left {
    left: 0;
}

.timeline-item.right {
    left: 50%;
}

.timeline-item.right::after {
    left: -8px; /* Adjusted to be on the left side of the right item */
}

.timeline-content {
    background-color: var(--bg-light);
    position: relative;
    border-radius: 10px;
    padding: 30px; /* Increased padding */
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    text-align: left;
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.timeline-item:hover .timeline-content {
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
    transform: translateY(-5px); /* Subtle lift on hover */
}

.timeline-item h3 {
    color: var(--secondary-blue);
    margin-bottom: 15px;
    font-size: 1.8em;
}

.timeline-item p {
    font-size: 1.1em;
    color: #555;
}

.timeline-icon {
    width: 60px; /* Larger icon circle */
    height: 60px;
    background-color: var(--primary-red); /* Red icon background */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 15px; /* Aligned with dot */
    z-index: 1;
    left: 50%;
    transform: translateX(-50%);
    box-shadow: 0 0 0 8px var(--bg-light); /* White ring around icon */
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.timeline-icon i {
    color: var(--text-light); /* Light icon color */
    font-size: 2.2em; /* Larger icon */
    transition: transform 0.3s ease;
}

.timeline-item:hover .timeline-icon {
    background-color: var(--accent-gold); /* Gold icon background on hover */
    box-shadow: 0 0 0 8px var(--primary-red); /* Red ring on hover */
}

.timeline-item:hover .timeline-icon i {
    transform: scale(1.1); /* Subtle scale on icon hover */
}

/* Left side of timeline */
.timeline-item.left .timeline-content {
    margin-right: 40px;
}

.timeline-item.left::before {
    content: " ";
    height: 0;
    position: absolute;
    top: 22px;
    width: 0;
    z-index: 1;
    right: 30px;
    border: medium solid var(--bg-light);
    border-width: 10px 0 10px 10px;
    border-color: transparent transparent transparent var(--bg-light);
}

/* Right side of timeline */
.timeline-item.right .timeline-content {
    margin-left: 40px;
}

.timeline-item.right::before {
    content: " ";
    height: 0;
    position: absolute;
    top: 22px;
    width: 0;
    z-index: 1;
    left: 30px;
    border: medium solid var(--bg-light);
    border-width: 10px 10px 10px 0;
    border-color: transparent var(--bg-light) transparent transparent;
}

/* Responsive Timeline */
@media (max-width: 992px) {
    .timeline-container::after {
        left: 31px; /* Align timeline bar to left for mobile */
    }

    .timeline-item {
        width: 100%;
        padding-left: 70px;
        padding-right: 25px;
    }

    .timeline-item.right,
    .timeline-item.left {
        left: 0;
    }

    .timeline-item.left::before,
    .timeline-item.right::before {
        left: 60px;
        border-width: 10px 10px 10px 0;
        border-color: transparent var(--bg-light) transparent transparent;
    }

    .timeline-item.right::after,
    .timeline-item.left::after {
        left: 25px;
    }

    .timeline-icon {
        left: 31px;
        transform: translateX(-50%);
    }

    .timeline-item.right .timeline-content,
    .timeline-item.left .timeline-content {
        margin-left: 0; /* Remove left/right margins */
        margin-right: 0;
    }
}

@media (max-width: 768px) {
    .timeline-container {
        margin: 50px auto;
    }

    .timeline-item h3 {
        font-size: 1.6em;
    }

    .timeline-item p {
        font-size: 1em;
    }

    .timeline-icon {
        width: 50px;
        height: 50px;
        top: 20px;
    }

    .timeline-icon i {
        font-size: 1.8em;
    }
}

@media (max-width: 480px) {
    #process {
        padding: 60px 0;
    }

    .timeline-item {
        padding-left: 60px;
        padding-right: 15px;
    }

    .timeline-item.left::before,
    .timeline-item.right::before {
        left: 50px;
    }

    .timeline-item.right::after,
    .timeline-item.left::after {
        left: 18px;
    }

    .timeline-icon {
        width: 45px;
        height: 45px;
        top: 15px;
        left: 25px;
        box-shadow: 0 0 0 6px var(--bg-light);
    }

    .timeline-icon i {
        font-size: 1.5em;
    }
}

/* Mobile Responsiveness */
@media (max-width: 992px) {
    .container {
        width: 95%;
        padding: 30px 0;
    }

    nav {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        gap: 0;
        padding: 8px 0; /* Reduced padding for a shorter mobile header */
    }

    .logo {
        font-size: 2em;
    }

    .logo-img {
        height: 95px; /* Reduced logo height on mobile */
    }

    .logo-text {
        font-size: 1.8em;
    }

    header.scrolled .logo-img {
        height: 72px; /* Smaller logo when scrolled on mobile */
    }

    header.scrolled .logo-text {
        font-size: 1.5em;
    }

    /* Mobile Navigation (hidden by default on mobile, shown when active) */
    .nav-links {
        display: none;
        flex-direction: column;
        position: fixed; /* Changed to fixed for proper mobile menu overlay */
        top: 80px; /* Slightly higher to reduce perceived length */
        right: 20px; /* Position to the right */
        left: auto; /* Ensure it's not left-aligned */
        width: 280px; /* Fixed width for better content visibility */
        max-width: 280px; /* Slightly narrower for elegance */
        height: 70vh; /* Shorter panel, not full height */
        background:
            radial-gradient(120% 80% at 100% 0%, rgba(var(--accent-gold-rgb), 0.10) 0%, rgba(0,0,0,0) 55%),
            linear-gradient(180deg, rgba(var(--secondary-blue-rgb), 0.86) 0%, rgba(0,0,0,0.82) 100%);
        border-radius: 18px; /* Slightly larger radius */
        box-shadow: 0 18px 48px rgba(0,0,0,0.45), 0 0 0 1px rgba(255,255,255,0.06) inset; /* Soft edge */
        padding: 30px 20px; /* Adjusted padding */
        border-top: none; /* Remove top border */
        z-index: 990;
        transition: transform 0.3s ease-out;
        transform: translateX(100%); /* Start off-screen to the right */
        overflow-y: auto; /* Allow scrolling for long menus */
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
    }

    .nav-links.active {
        display: flex;
        transform: translateX(0); /* Slide in from the right */
        padding-top: 0; /* Remove top padding as handled by parent */
    }

    /* Prevent body scroll when mobile nav is open */
    body.menu-open {
        overflow: hidden;
        height: 100vh;
        touch-action: none;
    }

    /* Ensure main content is visible when mobile nav is open */
    body.menu-open main {
        margin-right: 300px; /* Add space for the navigation panel */
        transition: margin-right 0.3s ease;
    }

    /* Mobile container adjustments */
    .container {
        width: 95%;
        padding: 20px 15px;
        margin: 0 auto;
    }

    .nav-links li {
        margin: 6px 0;
        text-align: left; /* Align for icon+text row */
    }

    .nav-links li a {
        color: #ffffff; /* High-contrast text */
        font-size: 1.12em; /* Slightly larger for readability */
        font-weight: 700;
        letter-spacing: 0.2px;
        line-height: 1.25;
        padding: 14px 16px;
        display: flex;
        gap: 12px;
        align-items: center;
        border-radius: 12px;
        background: rgba(255,255,255,0.10);
        border: 1px solid rgba(255,255,255,0.10);
        transition: background 0.25s ease, color 0.25s ease, transform 0.15s ease, border-color 0.25s ease;
    }

    .nav-links li a:hover {
        color: var(--accent-gold);
        background: rgba(255,255,255,0.16);
        border-color: rgba(var(--accent-gold-rgb),0.35);
        transform: translateX(4px);
    }

    .nav-links li a:focus-visible {
        outline: 3px solid rgba(var(--accent-gold-rgb), 0.8);
        outline-offset: 3px;
    }

    .nav-links li a::after { content: none !important; }
    .nav-links li a.active::after { content: none !important; }

    .nav-links li a .nav-icon {
        font-size: 1.2em;
        width: 1.5em;
        text-align: center;
        color: var(--accent-gold);
        filter: drop-shadow(0 1px 0 rgba(0,0,0,0.5)); /* Subtle lift for contrast */
        transition: color 0.25s ease, transform 0.25s ease;
    }

    .nav-links li a:hover .nav-icon {
        color: var(--primary-red);
        transform: scale(1.05);
    }

    .nav-links li a .nav-text { flex: 1; }

    .nav-links li a.active {
        color: var(--accent-gold);
        background: linear-gradient(90deg, rgba(255,255,255,0.18), rgba(255,255,255,0.10));
        box-shadow: inset 0 0 0 1px rgba(var(--accent-gold-rgb), 0.35);
    }

    /* Hamburger menu styles (show on mobile) */
    .hamburger-menu {
        display: flex; /* Show on mobile */
        flex-direction: column;
        justify-content: space-between;
        align-items: center;
        width: 50px; /* Larger tap target width */
        height: 50px; /* Larger tap target height */
        background: linear-gradient(135deg, rgba(255,255,255,0.15), rgba(255,255,255,0.08));
        border: 2px solid rgba(255,255,255,0.25);
        border-radius: 16px;
        cursor: pointer;
        padding: 10px; /* Space for bars */
        z-index: 1300; /* Above panel content */
        transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        -webkit-tap-highlight-color: transparent;
        position: sticky; /* Keep hamburger visible while scrolling */
        top: 15px;
        backdrop-filter: blur(15px);
        -webkit-backdrop-filter: blur(15px);
        box-shadow: 0 12px 40px rgba(0,0,0,0.15), inset 0 1px 0 rgba(255,255,255,0.3);
    }

    /* Make the hamburger slightly smaller when opened for a sleeker look */
    .hamburger-menu.active {
        width: 40px; /* Smaller when open */
        height: 40px;
        padding: 8px;
        background: linear-gradient(135deg, rgba(255,255,255,0.2), rgba(255,255,255,0.1));
        border-color: var(--accent-gold);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        box-shadow: 0 8px 32px rgba(0,0,0,0.2), inset 0 1px 0 rgba(255,255,255,0.4), 0 0 0 1px rgba(255,215,0,0.3);
        transform: scale(0.95);
    }

    .hamburger-menu:hover {
        background: linear-gradient(135deg, rgba(var(--secondary-blue-rgb), 0.15), rgba(var(--accent-gold-rgb), 0.1));
        border-color: var(--accent-gold);
        box-shadow: 0 16px 48px rgba(0,0,0,0.2), inset 0 1px 0 rgba(255,255,255,0.4), 0 0 0 1px rgba(255,215,0,0.4);
        transform: translateY(-2px) scale(1.02);
    }

    .hamburger-menu:active {
        transform: translateY(1px) scale(0.98);
        box-shadow: 0 8px 24px rgba(0,0,0,0.25), inset 0 1px 0 rgba(255,255,255,0.2);
    }

    /* Fine-tune bar spacing using container height */
    .hamburger-menu .bar { 
        height: 3px; 
        box-shadow: 0 2px 6px rgba(0,0,0,0.15);
    }
    .hamburger-menu.active .bar { 
        height: 2.5px; 
        box-shadow: 0 2px 8px rgba(255,215,0,0.4);
    }
    .hamburger-menu.active .bar:nth-child(1) { 
        transform: translateY(6px) rotate(45deg); 
        box-shadow: 0 2px 10px rgba(255,215,0,0.5);
    }
    .hamburger-menu.active .bar:nth-child(3) { 
        transform: translateY(-6px) rotate(-45deg); 
        box-shadow: 0 2px 10px rgba(255,215,0,0.5);
    }

    .hero {
        padding: 80px 0;
    }

    .hero-content h1 {
        font-size: 4em; /* Adjusted for smaller screens */
        letter-spacing: 1px;
    }

    .hero-content p {
        font-size: 1.6em; /* Adjusted for smaller screens */
    }

    .btn {
        padding: 15px 35px;
        font-size: 0.95em;
    }

    h1 {
        font-size: 4em; /* Adjusted for smaller screens */
    }

    h2 {
        font-size: 2.5em;
        padding-bottom: 15px;
        margin-bottom: 30px;
    }

    h2::after {
        width: 80px;
        height: 3px;
    }

    h2:hover::after {
        width: 100px;
    }

    h3 {
        font-size: 1.8em;
        margin-bottom: 20px;
    }

    section {
        padding: 80px 0;
    }

    .section-subtitle {
        font-size: 1.1em;
        margin-bottom: 40px;
    }

    .intro-content {
        padding: 20px 0;
    }

    .intro-content p {
        font-size: 1.1em;
    }

    #about ul li {
        padding: 30px;
        min-width: 250px;
        padding-left: 60px;
    }

    #about ul li strong {
        font-size: 1.2em;
    }

    #about ul li::before {
        left: 20px;
        top: 30px;
        font-size: 1.6em;
    }

    .services-grid,
    .portfolio-grid,
    .features-grid,
    .awards-grid {
        gap: 30px;
        margin-top: 40px;
        margin-bottom: 60px;
    }

    .service-item {
        padding: 35px;
    }

    .service-item h3 {
        font-size: 1.5em;
    }

    .service-icon {
        font-size: 3.5em;
    }

    .call-to-action {
        padding: 60px 40px;
        margin-top: 60px;
    }

    .call-to-action p {
        font-size: 1.8em;
    }

    .category-btn {
        padding: 12px 25px;
        margin: 0 10px;
        font-size: 0.95em;
    }

    .portfolio-item {
        border-radius: 10px;
    }

    .portfolio-item img {
        height: 220px;
    }

    .portfolio-item h3 {
        font-size: 1.4em;
        padding: 20px;
    }

    .portfolio-description {
        font-size: 0.95em;
        padding: 0 20px 15px;
    }

    .portfolio-item:hover .portfolio-description {
        max-height: 100px;
        padding-bottom: 20px;
    }

    .portfolio-btn {
        margin: 0 20px 20px;
        padding: 8px 15px;
        font-size: 0.9em;
    }

    .feature-item {
        padding: 35px;
    }

    .feature-item h3 {
        font-size: 1.5em;
    }

    .testimonials {
        padding: 50px;
        margin-top: 60px;
    }

    .testimonials h3 {
        font-size: 2em;
    }

    .testimonial-item {
        font-size: 1.1em;
        max-width: 800px;
    }

    .testimonial-item p {
        margin-bottom: 15px;
    }

    .contact-form {
        gap: 20px;
        max-width: 600px;
        margin: 40px auto 60px auto;
        padding: 40px;
    }

    .contact-form input, .contact-form textarea {
        padding: 15px;
        font-size: 1em;
    }

    .contact-form button {
        width: 70%;
        margin-top: 20px;
    }

    .contact-form-wrapper {
        gap: 30px;
        margin-top: 40px;
        margin-bottom: 60px;
        grid-template-columns: 1fr; /* Stack form and CTA on smaller screens */
    }

    .contact-cta {
        padding: 40px;
        word-wrap: break-word;
        overflow-wrap: anywhere; /* Prevent text clipping in narrow widths */
    }

    .contact-cta h3 {
        font-size: 2em;
    }

    .contact-cta p {
        font-size: 1.1em;
    }

    .map-container {
        margin-top: 60px;
        padding: 30px;
    }

    .map-container iframe {
        margin-top: 30px;
    }

    .contact-info {
        gap: 30px;
        margin-top: 40px;
        padding: 30px;
    }

    .contact-info p {
        font-size: 1.1em;
        gap: 10px;
    }

    .contact-info p i {
        font-size: 1.2em;
    }

    .social-links {
        margin-top: 20px;
        gap: 20px;
    }

    .social-links a {
        font-size: 1.2em;
    }

    footer {
        padding: 30px 0;
        margin-top: 60px;
        font-size: 0.9em;
    }

    .footer-content {
        flex-direction: column; /* Column layout for mobile footer */
        justify-content: center; /* Center horizontally */
        align-items: center; /* Center vertically */
    }

    .footer-social-links {
        margin-top: 15px; /* Add some space above social links on mobile */
    }

    .footer-social-links a {
        font-size: 1.4em;
    }

    /* Disable custom cursor on mobile */
    .custom-cursor {
        display: none;
    }

    button, .btn, a, .category-btn, .team-member, .service-item, .portfolio-item, .award-item {
        cursor: pointer; /* Re-enable default cursor for touch devices */
    }

    .modal-content {
        margin: 5% auto;
        padding: 30px;
        width: 90%;
        max-width: 800px;
    }

    .modal-content h3 {
        font-size: 1.6em;
    }

    .close-button {
        font-size: 30px;
    }

    .before-after-container {
        height: 400px;
    }

    .resize-handle {
        width: 4px;
    }

    .resize-handle::before, .resize-handle::after {
        width: 25px;
        height: 25px;
    }

    .resize-handle::before {
        left: -15px;
    }

    .resize-handle::after {
        left: 15px;
    }

    .team-grid {
        gap: 30px;
        margin-top: 40px;
    }

    .team-member {
        padding: 25px;
    }

    .team-member img {
        width: 120px;
        height: 120px;
    }

    .team-member h3 {
        font-size: 1.4em;
    }

    .team-member .team-role {
        font-size: 1em;
    }

    .award-item {
        padding: 35px;
    }

    .award-icon {
        font-size: 3.5em;
    }

    .award-item h3 {
        font-size: 1.4em;
    }

    #why-choose-us .intro-content {
        margin-bottom: 50px;
    }

}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 3.2em;
    }

    .hero p {
        font-size: 1.4em;
    }

    h1 {
        font-size: 3.2em;
    }

    h2 {
        font-size: 2.2em;
    }

    h3 {
        font-size: 1.6em;
    }

    .hero-content h1 {
        font-size: 3.8em;
    }

    .hero-content p {
        font-size: 1.8em;
    }

    .contact-form {
        padding: 30px;
    }

    .contact-form button {
        width: 80%;
    }

    .modal-content {
        margin: 10% auto;
        padding: 25px;
        width: 95%;
    }

    .modal-content h3 {
        font-size: 1.4em;
    }

    .close-button {
        font-size: 28px;
    }

    .before-after-container {
        height: 300px;
    }

    .resize-handle::before, .resize-handle::after {
        width: 20px;
        height: 20px;
    }

    .resize-handle::before {
        left: -10px;
    }

    .resize-handle::after {
        left: 10px;
    }

    .team-grid {
        grid-template-columns: 1fr;
    }

    .award-item {
        padding: 30px;
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 2.8em;
    }

    .hero-content p {
        font-size: 1.2em;
    }

    .btn {
        padding: 10px 25px;
        font-size: 0.85em;
    }

    h1 {
        font-size: 2.8em;
    }

    h2 {
        font-size: 1.8em;
    }

    h3 {
        font-size: 1.4em;
    }

    .contact-form {
        padding: 25px;
    }

    .contact-form button {
        width: 90%;
    }

    .contact-cta {
        padding: 30px;
    }

    .contact-cta h3 {
        font-size: 1.8em;
    }

    .contact-cta p {
        font-size: 1em;
    }

    .modal-content {
        margin: 15% auto;
        padding: 20px;
    }

    .modal-content h3 {
        font-size: 1.2em;
    }

    .close-button {
        font-size: 24px;
        top: 10px;
        right: 15px;
    }

    .before-after-container {
        height: 220px;
    }

    .team-member img {
        width: 100px;
        height: 100px;
    }

    .team-member h3 {
        font-size: 1.2em;
    }

    .team-member .team-role {
        font-size: 0.9em;
    }

    .award-item h3 {
        font-size: 1.2em;
    }
}

/* Parallax Backgrounds */
.parallax-bg {
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    position: relative;
    color: var(--text-light); /* Light text on parallax backgrounds */
}

.parallax-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4); /* Reduced overlay opacity for more visible image */
    z-index: 0;
}

.parallax-bg h2, .parallax-bg p, .parallax-bg .btn {
    position: relative;
    z-index: 1; /* Ensure text is above overlay */
}

.parallax-bg h2::after {
    background-color: var(--accent-gold); /* Gold underline for parallax section headings */
}

.parallax-bg .service-item, .parallax-bg .client-logo {
    background-color: rgba(255, 255, 255, 0.1); /* Subtle transparent background for items within parallax */
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.parallax-bg .service-item h3, .parallax-bg .service-item p, .parallax-bg .service-icon {
    color: var(--text-light);
}

/* Mobile Parallax Disable */
@media (max-width: 992px) {
    .parallax-bg {
        background-attachment: scroll;
        background-image: none !important; /* Disable image on mobile */
        background-color: var(--bg-dark); /* Use a solid dark background color */
        color: var(--text-light);
    }

    .parallax-bg::before {
        background-color: transparent; /* Remove overlay on mobile */
    }
}

.service-item-img {
    max-width: 100%;
    height: 180px; /* Adjusted height for service images */
    object-fit: cover;
    border-radius: 8px; /* Slightly rounded corners */
    margin-bottom: 25px; /* Space between image and icon */
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.feature-item-img {
    max-width: 100%;
    height: 150px; /* Adjusted height for feature images */
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

/* Enhanced visibility for Services Overview section text */
#services-overview h2 {
    color: var(--accent-gold) !important; /* Override with golden color */
    text-shadow: 1px 1px 4px rgba(0,0,0,0.8); /* Subtle shadow for text visibility */
}

#services-overview .section-subtitle {
    color: var(--text-light) !important; /* Override with light text */
    text-shadow: 1px 1px 3px rgba(0,0,0,0.7); /* Subtle shadow for text visibility */
}

#services-overview .service-item h3 {
    color: var(--accent-gold) !important;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.6);
}

#services-overview .service-item:hover h3 {
    color: var(--primary-red) !important;
}

#services-overview .service-item p {
    color: var(--text-light) !important;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

#services-overview .service-icon {
    color: var(--primary-red) !important;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.8);
}

#services-overview .service-item:hover .service-icon {
    color: var(--accent-gold) !important;
}

.main-content-wrapper {
    padding-bottom: 80px; /* Add padding to separate content from the footer */
}

main {
    margin-top: calc(var(--header-space, 140px) + 6px) !important; /* Header + progress bar */
    /* Removed margin-bottom as it's now handled by .main-content-wrapper */
}

/* Client Section Styling */
#clients h2,
#clients .section-subtitle {
    color: var(--accent-gold) !important; /* Golden text for prominence */
    text-shadow: 1px 1px 5px rgba(0,0,0,0.9); /* Stronger shadow for impact */
}

.clients-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); /* Adjusted for larger cards */
    gap: 40px; /* Increased spacing */
    margin-top: 60px; /* More margin */
    padding: 50px; /* Generous padding */
    background-color: rgba(var(--secondary-blue-rgb), 0.15); /* Subtle royal blue transparent background */
    border: 2px solid var(--accent-gold); /* Golden border for luxury */
    border-radius: 15px; /* More rounded corners */
    box-shadow: inset 0 0 20px rgba(var(--accent-gold-rgb), 0.3), 0 15px 40px rgba(0,0,0,0.4); /* Inner gold glow + strong outer shadow */
    backdrop-filter: blur(8px); /* More pronounced blur */
    -webkit-backdrop-filter: blur(8px);
    position: relative;
}

.clients-grid::before {
    content: '';
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    background: linear-gradient(45deg, var(--accent-gold), var(--primary-red)); /* Gradient border effect */
    z-index: -1;
    border-radius: 20px;
    opacity: 0.6; /* Subtle gradient */
    filter: blur(10px); /* Soft glow */
}

.client-logo {
    background-color: var(--bg-light); /* Solid light background for clarity */
    padding: 35px; /* Increased padding */
    border-radius: 10px; /* Rounded corners */
    box-shadow: 0 5px 20px rgba(0,0,0,0.2); /* Stronger initial shadow */
    transition: transform 0.4s ease, box-shadow 0.4s ease, border-color 0.4s ease, background-color 0.4s ease;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 160px; /* Further increased fixed height */
    border: 2px solid var(--bg-light); /* Subtle border matching background */
    position: relative;
    overflow: hidden;
    opacity: 0; /* Start invisible for animation */
    transform: translateY(30px); /* Initial transform for animation */
    animation: fadeInUp 1s ease-out forwards; /* Apply animation */
}

.client-logo::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 3px solid transparent; /* Glowing border */
    border-radius: 10px;
    opacity: 0;
    transition: opacity 0.4s ease, border-color 0.4s ease;
    pointer-events: none;
}

.client-logo:hover {
    transform: translateY(-10px) scale(1.02); /* Elegant lift and slight scale */
    box-shadow: 0 15px 35px rgba(0,0,0,0.4), 0 0 30px var(--accent-gold); /* Enhanced shadow + golden glow */
    background-color: rgba(var(--secondary-blue-rgb), 0.05); /* Very subtle background change */
    border-color: var(--accent-gold); /* Golden border on hover */
}

.client-logo:hover::after {
    opacity: 1; /* Show glowing border on hover */
    border-color: var(--accent-gold); /* Golden glow */
}

.client-logo img {
    max-width: 85%; /* Slightly smaller max-width to give more room for padding/borders */
    max-height: 90%; /* Slightly smaller max-height */
    object-fit: contain; /* Ensure full logo is visible */
    filter: none; /* Ensure full color by default */
    opacity: 1; /* Full opacity by default */
    transition: transform 0.4s ease; /* Smooth transition for image */
}

.client-logo:hover img {
    transform: scale(1.05); /* Slight zoom on image hover */
}

.clients-grid .client-logo:nth-child(1) { animation-delay: 0.1s; }
.clients-grid .client-logo:nth-child(2) { animation-delay: 0.2s; }
.clients-grid .client-logo:nth-child(3) { animation-delay: 0.3s; }
.clients-grid .client-logo:nth-child(4) { animation-delay: 0.4s; }
.clients-grid .client-logo:nth-child(5) { animation-delay: 0.5s; }
.clients-grid .client-logo:nth-child(6) { animation-delay: 0.6s; }

/* Contact Section specific styling to ensure visibility and enhancement */
#contact h2 {
    color: var(--secondary-blue); /* Changed to secondary blue for consistency with other h2 on light backgrounds */
}

#contact .section-subtitle {
    color: #555; /* Default subtitle color for light background */
}

#contact .intro-content p {
    color: var(--text-dark); /* Default dark text for intro content */
}

#contact .contact-form-wrapper {
    background-color: var(--bg-light); /* Light background for form wrapper */
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15); /* Subtle shadow for definition */
    backdrop-filter: none; /* Remove blur */
    -webkit-backdrop-filter: none; /* Remove blur */
    padding: 50px;
}

#contact .contact-form input,
#contact .contact-form textarea {
    background-color: var(--bg-light); /* Light background for inputs */
    border: 1px solid #ccc; /* Lighter border */
    color: var(--text-dark); /* Dark text for input values */
}

#contact .contact-form input::placeholder,
#contact .contact-form textarea::placeholder {
    color: rgba(var(--text-dark-rgb), 0.6); /* Adjusted placeholder text to be visible */
}

#contact .contact-form input:focus,
#contact .contact-form textarea:focus {
    border-color: var(--accent-gold); /* Gold border on focus */
    box-shadow: 0 0 10px rgba(var(--accent-gold-rgb), 0.4); /* Softer gold shadow on focus */
}

#contact .contact-cta {
    background-color: var(--secondary-blue); /* Keep original secondary blue background */
    border: none; /* Remove border */
    box-shadow: 0 10px 30px rgba(0,0,0,0.15); /* Default shadow */
    color: var(--text-light); /* Light text on dark background */
}

#contact .contact-cta h3 {
    color: var(--accent-gold); /* Golden heading */
}

#contact .contact-cta p {
    color: var(--text-light); /* Light paragraph text */
}

#contact .contact-info {
    background-color: var(--bg-light); /* Light background for contact info */
    border: none; /* Remove border */
    box-shadow: 0 8px 25px rgba(0,0,0,0.1); /* Default shadow */
    backdrop-filter: none; /* Remove blur */
    -webkit-backdrop-filter: none; /* Remove blur */
    padding: 40px; /* Default padding */
}

#contact .contact-info p {
    color: var(--text-dark); /* Dark text for contact info */
}

#contact .contact-info p i {
    color: var(--primary-red); /* Red icons */
}

#contact .social-links a {
    color: var(--secondary-blue); /* Default social link color */
    text-shadow: none; /* Remove text shadow */
}

#contact .map-container {
    background-color: var(--bg-light); /* Light background for map container */
    border: none; /* Remove border */
    box-shadow: 0 8px 25px rgba(0,0,0,0.1); /* Default shadow */
}

/* New Parallax Call to Action Section */
#portfolio-cta {
    margin-bottom: 250px; /* Greatly increased margin-bottom for maximum separation before the footer */
}

/* Portfolio hero tweaks */
#portfolio-hero .section-subtitle { max-width: 900px; margin: 0 auto 20px; }
#portfolio-hero { margin-bottom: 48px; }
@media (max-width: 768px) { #portfolio-hero { margin-bottom: 64px; } }
/* Avoid anchor overlap for key sections */
#portfolio, #latest-works, #case-study, #portfolio-cta { scroll-margin-top: calc(var(--header-space, 140px) + 8px); }

#about-cta {
    padding: 120px 0; /* Increased padding for more visual impact */
    margin-top: 80px; /* Added margin-top to separate it from the previous section */
    margin-bottom: 80px; /* Added margin-bottom to separate it from the footer */
}

#about-cta h2, #about-cta .section-subtitle {
    color: var(--text-light) !important;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.7); /* Stronger shadow for contrast */
}

#about-cta h2::after {
    background-color: var(--accent-gold); /* Gold underline for this CTA */
}

#about-cta .btn {
    background-color: var(--accent-gold);
    border-color: var(--accent-gold);
    color: var(--secondary-blue);
    margin-top: 30px;
}

#about-cta .btn:hover {
    background-color: var(--primary-red);
    border-color: var(--primary-red);
    color: var(--text-light);
}


/* Slideshow Container */
.slideshow-container {
    max-width: 1000px;
    position: relative;
    margin: auto;
    margin-top: 50px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

/* Hide the images by default */
.mySlides {
    display: none;
}

/* Slideshow Image Styling */
.slideshow-container img {
    width: 100%;
    height: 500px; /* Fixed height for all slides */
    object-fit: cover; /* Cover the area, cropping if necessary */
    border-radius: 15px;
}
/* Next & previous buttons */
.prev, .next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    width: auto;
    padding: 16px;
    margin-top: -22px;
    color: var(--text-light);
    font-weight: bold;
    font-size: 25px;
    transition: 0.6s ease;
    border-radius: 0 3px 3px 0;
    user-select: none;
    background-color: rgba(0,0,0,0.6);
    opacity: 0.8;
}

/* Position the "next button" to the right */
.next {
    right: 0;
    border-radius: 3px 0 0 3px;
}

/* On hover, add a black background with a little more opacity */
.prev:hover, .next:hover {
    background-color: rgba(0,0,0,0.8);
    opacity: 1;
}

/* The dots/circles */
.dot {
    cursor: pointer;
    height: 15px;
    width: 15px;
    margin: 0 8px;
    background-color: #bbb;
    border-radius: 50%;
    display: inline-block;
    transition: background-color 0.6s ease;
}

.active, .dot:hover {
    background-color: var(--primary-red);
}

/* Fading animation */
.fade {
    animation-name: fade;
    animation-duration: 1.5s;
}

@keyframes fade {
    from {opacity: .4}
    to {opacity: 1}
}

/* Responsive slideshow */
@media (max-width: 768px) {
    .slideshow-container img {
        height: 300px; /* Adjust height for smaller screens */
    }

    .prev, .next {
        font-size: 18px;
        padding: 12px;
    }

    .dot {
        height: 12px;
        width: 12px;
        margin: 0 6px;
    }
}

@media (max-width: 480px) {
    .slideshow-container img {
        height: 220px; /* Further adjust height for very small screens */
    }

    .prev, .next {
        font-size: 16px;
        padding: 10px;
    }

    .dot {
        height: 10px;
        width: 10px;
        margin: 0 4px;
    }
}

/* Floating Buttons - Consolidated Styles */
.quick-contact-btn {
    position: fixed;
    bottom: 120px; /* Position above the back to top button */
    right: 40px;
    z-index: 10000;
    background-color: var(--accent-gold);
    color: var(--secondary-blue);
    display: flex;
    align-items: center;
    padding: 15px 25px;
    border-radius: 50px;
    font-size: 1.1em;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
}

.quick-contact-btn i {
    margin-right: 10px;
    font-size: 1.4em;
}

.quick-contact-btn:hover {
    background-color: var(--primary-red);
    color: var(--text-light);
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 12px 25px rgba(0,0,0,0.3);
}

.whatsapp-float {
    position: fixed;
    bottom: 120px; /* Aligned with quick-contact-btn */
    left: 40px; /* On the opposite side */
    z-index: 10000;
    background-color: #25D366; /* WhatsApp green */
    color: var(--text-light);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px; /* Circular button size */
    height: 60px;
    border-radius: 50%; /* Make it circular */
    font-size: 2em; /* Larger icon */
    text-decoration: none;
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
    animation: whatsappPopUp 0.8s ease-out forwards; /* Apply pop-up animation */
    animation-delay: 1s; /* Delay the animation slightly */
    opacity: 0; /* Start invisible for animation */
}

.whatsapp-float:hover {
    background-color: #128C7E; /* Darker green on hover */
    transform: translateY(-5px) scale(1.1); /* Pop-up and slight scale */
    box-shadow: 0 12px 25px rgba(0,0,0,0.3);
}

@keyframes whatsappPopUp {
    0% {
        opacity: 0;
        transform: scale(0.5);
    }
    70% {
        opacity: 1;
        transform: scale(1.1);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

#backToTopBtn {
    display: none; /* Hidden by default */
    position: fixed;
    bottom: 40px;
    right: 40px;
    z-index: 10000;
    border: none;
    outline: none;
    background-color: var(--primary-red);
    color: var(--text-light);
    cursor: pointer;
    padding: 18px;
    border-radius: 50%;
    font-size: 1.4em;
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
    transition: background-color 0.3s ease, transform 0.3s ease, opacity 0.3s ease;
    opacity: 0;
    pointer-events: none;
}

#backToTopBtn:hover {
    background-color: var(--accent-gold);
    transform: translateY(-8px) scale(1.1);
}

#backToTopBtn.show {
    display: block;
    opacity: 1;
    pointer-events: auto;
}

/* Mobile Responsiveness for Floating Buttons */
@media (max-width: 992px) {
    .quick-contact-btn {
        bottom: 90px; /* Adjusted position for mobile to prevent overlap with back to top and footer */
        right: 20px;
        padding: 12px 20px;
        font-size: 1em;
    }
    .quick-contact-btn .btn-text {
        display: none; /* Hide text on smaller screens */
    }
    .quick-contact-btn i {
        margin-right: 0;
    }

    .whatsapp-float {
        bottom: 90px; /* Adjusted position for mobile to prevent overlap with back to top and footer */
        left: 20px; /* Adjusted position for mobile */
        width: 50px;
        height: 50px;
        font-size: 1.8em;
    }

    #backToTopBtn {
        bottom: 20px; /* Adjusted position for mobile */
        right: 20px;
        padding: 15px;
        font-size: 1.2em;
    }
}

@media (max-width: 768px) {
    /* Further adjustments for smaller mobile screens if necessary */
    .quick-contact-btn {
        bottom: 70px;
        right: 15px;
        padding: 10px 18px;
        font-size: 0.9em;
    }

    .whatsapp-float {
        bottom: 70px;
        left: 15px;
        width: 45px;
        height: 45px;
        font-size: 1.6em;
    }

    #backToTopBtn {
        bottom: 15px;
        right: 15px;
        padding: 12px;
        font-size: 1em;
    }
}