/* 
=======================================
   Construction Template
   Author: Sundar
   Version: 1.0
=======================================
*/

/* ================ VARIABLES ================ */
:root {
    /* Colors */
    --primary-color: #3498DB; /* Changed from orange to modern blue */
    --primary-rgb: 52, 152, 219; /* RGB values for primary color */
    --primary-dark: #2980B9;
    --secondary-color: #2C3E50; /* Darker blue-gray */
    --secondary-color-rgb: 44, 62, 80;
    --dark-color: #1A1A2E; /* Deep navy blue */
    --light-color: #F8F9FA;
    --gray: #6C757D;
    --border-color: #E9ECEF;
    --white: #FFFFFF;
    --black: #000000;
    --accent1: #E74C3C; /* Modern red */
    --accent1-rgb: 231, 76, 60;
    --accent2: #2ECC71; /* Fresh green */
    --accent2-rgb: 46, 204, 113;
    --accent3: #9B59B6; /* Modern purple */
    --accent3-rgb: 155, 89, 182;
    --text-color: #2C3E50;
    --light-bg: #F5F7FA;
    
    /* Typography */
    --heading-font: 'Raleway', sans-serif; /* Changed from Montserrat to Raleway */
    --body-font: 'Inter', sans-serif; /* Changed from Poppins to Inter */
    --cursive-font: 'Caveat', cursive; /* Changed from Playfair Display to Caveat */
    
    /* Shadows */
    --box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    --box-shadow-hover: 0 15px 35px rgba(0, 0, 0, 0.1);
    
    /* Transitions */
    --transition: all 0.3s ease;
    
    /* Border Radius */
    --border-radius-sm: 6px;
    --border-radius: 12px; /* Increased border radius */
    --border-radius-lg: 24px;
}

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

html {
    font-size: 62.5%;
    scroll-behavior: smooth;
}

body {
    font-family: var(--body-font);
    font-size: 1.6rem;
    line-height: 1.7;
    color: var(--text-color);
    background-color: var(--white);
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--heading-font);
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 2rem;
    color: var(--dark-color);
    letter-spacing: -0.03em;
}

h1 {
    font-size: 5.5rem;
    color: var(--white);
    margin-bottom: 2.5rem;
    line-height: 1.2;
    font-weight: 800;
}

h2 {
    font-size: 3.6rem;
    font-weight: 700;
}

h3 {
    font-size: 2.4rem;
    font-weight: 600;
}

h4 {
    font-size: 2rem;
    font-weight: 600;
}

p {
    margin-bottom: 1.6rem;
}

ul {
    list-style: none;
}

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

a:hover {
    color: var(--primary-dark);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

button, .btn {
    display: inline-block;
    cursor: pointer;
    border: none;
    outline: none;
    background: transparent;
    font-family: var(--body-font);
}

/* ================ REUSABLE COMPONENTS ================ */
.container {
    width: 100%;
    max-width: 120rem;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1.2rem 3rem;
    font-size: 1.5rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    border-radius: var(--border-radius);
    position: relative;
    overflow: hidden;
    z-index: 1;
    transition: all 0.4s ease;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.1);
    transform: translateX(-100%);
    transition: all 0.4s ease;
    z-index: -1;
}

.btn:hover::before {
    transform: translateX(0);
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--white);
    border: 2px solid var(--primary-color);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(-3px);
}

.btn-secondary {
    background-color: var(--secondary-color);
    color: var(--white);
    border: 2px solid var(--secondary-color);
}

.btn-secondary:hover {
    opacity: 0.9;
    transform: translateY(-3px);
}

.btn-outline {
    background-color: transparent;
    color: var(--white);
    border: 2px solid var(--white);
}

.btn-outline:hover {
    background-color: var(--white);
    color: var(--primary-color);
    transform: translateY(-3px);
}

.btn-dark {
    background-color: var(--dark-color);
    color: var(--white);
    border: 2px solid var(--dark-color);
}

.btn-dark:hover {
    opacity: 0.9;
    transform: translateY(-3px);
}

.btn-sm {
    padding: 0.8rem 2rem;
    font-size: 1.4rem;
}

.section-header {
    text-align: center;
    margin-bottom: 6rem;
    position: relative;
    z-index: 2;
}

.section-subtitle {
    font-family: var(--cursive-font);
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    display: inline-block;
    position: relative;
    letter-spacing: 0.03em;
}

.section-title {
    margin-bottom: 2rem;
    position: relative;
    z-index: 1;
}

.section-description {
    max-width: 70rem;
    margin: 0 auto;
    color: var(--text-color);
}

.pattern-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../images/architect-opening-blueprint.jpg');
    background-repeat: repeat;
    background-size: 100%;
    opacity: 0.05;
    z-index: 3;
    mix-blend-mode: overlay;
    will-change: transform;
    pointer-events: none;
}

/* ================ HEADER & NAVIGATION ================ */
header {
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    padding: 2rem 0;
    z-index: 1000;
    transition: all 0.4s ease;
    background-color: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

header.scrolled {
    padding: 1.5rem 0;
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: var(--box-shadow);
}

nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    z-index: 100;
}

.logo a {
    display: flex;
    align-items: center;
    color: var(--dark-color);
    font-size: 2.2rem;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.logo img {
    width: 40px;
    height: 40px;
    object-fit: cover;
    border-radius: 4px;
    transition: var(--transition);
}

.logo span {
    margin-left: 1rem;
    font-family: var(--cursive-font);
    font-weight: 600;
    font-style: italic;
    letter-spacing: 0.5px;
}

.nav-menu {
    display: flex;
    align-items: center;
}

.nav-menu li {
    margin-left: 3rem;
}

.nav-menu a {
    font-weight: 500;
    color: var(--dark-color);
    position: relative;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -5px;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: var(--transition);
}

.nav-menu a:hover::after,
.nav-menu a.active::after {
    width: 100%;
}

.hamburger {
    display: none;
    cursor: pointer;
    z-index: 100;
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    transition: var(--transition);
    background-color: var(--dark-color);
}

/* ================ HERO SECTION ================ */
.hero {
    position: relative;
    min-height: 100vh;
    width: 100%;
    background-color: var(--dark-color);
    color: var(--white);
    overflow: hidden;
    padding-top: 80px;
    display: flex;
    align-items: center;
}

.hero-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    will-change: transform;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.8s ease;
    z-index: 0;
    pointer-events: none;
    will-change: opacity, transform;
}

.hero-slide.active {
    opacity: 1;
    z-index: 1;
    pointer-events: auto;
}

.hero-slide .bg-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    animation: none;
    will-change: transform;
    transform: scale(1.05);
}

.hero-slide.active .bg-img {
    animation: zoomOut 8s ease forwards;
}

@keyframes zoomOut {
    0% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.6) 30%, rgba(0, 0, 0, 0.5) 100%);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 10;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 4rem;
    padding: 2rem 0;
}

.hero-text {
    max-width: 650px;
}

.hero h1 .cursive {
    display: block;
    font-family: var(--cursive-font);
    font-size: 4rem;
    font-weight: 400;
    margin-bottom: 1rem;
    color: var(--primary-color);
    opacity: 0.9;
    letter-spacing: 0.02em;
}

.hero h1 span {
    position: relative;
    display: inline-block;
    color: var(--primary-color);
}

.hero h1 span::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 30%;
    background-color: rgba(var(--primary-rgb), 0.2);
    bottom: 0;
    left: 0;
    z-index: -1;
}

.hero-text p {
    font-size: 1.8rem;
    margin-bottom: 3rem;
    opacity: 0.9;
}

.hero-buttons {
    display: flex;
    gap: 2rem;
}

.hero-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
    margin-top: 1rem;
}

.hero-card {
    background-color: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-radius: var(--border-radius);
    padding: 3rem 2.5rem;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    overflow: hidden;
    position: relative;
}

.hero-card:hover {
    transform: translateY(-10px);
    background-color: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

.hero-card:hover .card-icon {
    transform: scale(1.1);
    box-shadow: 0 10px 20px rgba(var(--primary-rgb), 0.3);
}

.card-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 75px;
    height: 75px;
    margin-bottom: 2rem;
    border-radius: 50%;
    background: rgba(52, 152, 219, 0.3);
    color: var(--white);
    font-size: 2.6rem;
    transition: all 0.4s ease;
    position: relative;
    z-index: 1;
    box-shadow: 0 0 25px rgba(52, 152, 219, 0.8);
}

.card-icon::before {
    content: '';
    position: absolute;
    inset: -5px;
    border-radius: 50%;
    background: transparent;
    border: 2px solid rgba(52, 152, 219, 0.5);
    opacity: 0.5;
    z-index: -1;
    transition: opacity 0.4s ease;
}

.hero-card:hover .card-icon::before {
    opacity: 0.8;
}

.card-icon i {
    position: relative;
    z-index: 2;
}

.card-text h3 {
    font-size: 2.2rem;
    color: var(--white);
    margin-bottom: 1.5rem;
    font-weight: 600;
    position: relative;
    display: inline-block;
}

.card-text h3::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 40px;
    height: 3px;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

.hero-card:hover .card-text h3::after {
    width: 100%;
}

.card-text p {
    color: rgba(255, 255, 255, 0.85);
    font-size: 1.5rem;
    line-height: 1.6;
}

@media (max-width: 1200px) {
    .hero-content {
        padding: 2rem;
    }
    
    .hero h1 {
        font-size: 4.2rem;
    }
    
    .hero-cards {
        gap: 1.5rem;
    }
}

@media (max-width: 992px) {
    .hero {
        min-height: 100vh;
        height: auto;
        padding-top: 70px;
        padding-bottom: 2rem;
    }
    
    .hero-content {
        gap: 3rem;
    }
    
    .hero h1 {
        font-size: 3.8rem;
    }
}

@media (max-width: 768px) {
    .hero {
        min-height: auto;
        height: auto;
        padding: 80px 0 3rem;
    }
    
    .hero-content {
        gap: 2.5rem;
    }
    
    .hero h1 {
        font-size: 3.2rem;
        margin-top: 1rem;
    }
    
    .hero-text p {
        font-size: 1.6rem;
        margin-bottom: 2rem;
    }
    
    .hero-cards {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .hero-buttons .btn {
        width: 100%;
        text-align: center;
    }
}

@media (min-width: 1920px) {
    .hero-content {
        max-width: 1600px;
        margin: 0 auto;
    }
    
    .hero h1 {
        font-size: 5rem;
    }
}

@media (max-width: 480px) {
    .hero {
        min-height: auto;
        height: auto;
        padding: 70px 0 2rem;
    }
    
    .hero h1 {
        font-size: 2.8rem;
        margin-top: 0.5rem;
    }
    
    .hero h1 .cursive {
        font-size: 0.7em;
    }
    
    .hero-text p {
        font-size: 1.5rem;
        margin-bottom: 1.5rem;
    }
    
    .hero-card {
        padding: 1.5rem 1rem;
    }
    
    .card-icon {
        width: 50px;
        height: 50px;
        margin-bottom: 1rem;
    }
    
    .card-icon i {
        font-size: 2rem;
    }
    
    .card-text h3 {
        font-size: 1.6rem;
    }
}

/* Fix for older browsers and devices */
@supports not (backdrop-filter: blur(5px)) {
    .hero-card {
        background-color: rgba(30, 30, 30, 0.7);
    }
}

/* ================ ABOUT SECTION ================ */
.about {
    padding: 10rem 0;
    background-color: var(--white);
    position: relative;
    overflow: hidden;
}

.about::before {
    content: '';
    position: absolute;
    top: -150px;
    left: -150px;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background-color: rgba(var(--accent1-rgb), 0.05);
    z-index: 0;
}

.about::after {
    content: '';
    position: absolute;
    bottom: -150px;
    right: -150px;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background-color: rgba(var(--primary-rgb), 0.05);
    z-index: 0;
}

.about .section-header {
    position: relative;
    z-index: 1;
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 5rem;
    position: relative;
    z-index: 1;
}

.about-card {
    background-color: var(--white);
    border-radius: var(--border-radius);
    padding: 3.5rem 3rem;
    box-shadow: var(--box-shadow);
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    text-align: center;
    border-bottom: 3px solid transparent;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
    position: relative;
    overflow: hidden;
    isolation: isolate;
}

.about-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 0;
    background-color: var(--primary-color);
    transition: height 0.5s ease;
    z-index: -1;
}

.about-card:hover::before {
    height: 100%;
}

.about-card.animated {
    opacity: 1;
    transform: translateY(0);
}

.about-card:nth-child(1).animated { transition-delay: 0.1s; }
.about-card:nth-child(2).animated { transition-delay: 0.2s; }
.about-card:nth-child(3).animated { transition-delay: 0.3s; }
.about-card:nth-child(4).animated { transition-delay: 0.4s; }
.about-card:nth-child(5).animated { transition-delay: 0.5s; }
.about-card:nth-child(6).animated { transition-delay: 0.6s; }

.about-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--box-shadow-hover);
    background-color: var(--light-bg);
}

.about-card:nth-child(2n)::before {
    background-color: var(--accent1);
}

.about-card:nth-child(3n)::before {
    background-color: var(--accent2);
}

.about-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 2.5rem;
    width: 85px;
    height: 85px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(var(--primary-rgb), 0.1), rgba(var(--primary-rgb), 0.2));
    color: var(--primary-color);
    font-size: 3rem;
    transition: all 0.4s ease;
    position: relative;
    box-shadow: 0 8px 20px rgba(var(--primary-rgb), 0.15);
}

.about-icon::after {
    content: '';
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    border-radius: 50%;
    border: 2px dashed rgba(var(--primary-rgb), 0.3);
    animation: spin 30s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

.about-card:hover .about-icon {
    transform: scale(1.1);
}

.about-card:nth-child(2n) .about-icon {
    background: linear-gradient(135deg, rgba(var(--accent1-rgb), 0.1), rgba(var(--accent1-rgb), 0.2));
    color: var(--accent1);
    box-shadow: 0 8px 20px rgba(var(--accent1-rgb), 0.15);
}

.about-card:nth-child(2n) .about-icon::after {
    border-color: rgba(var(--accent1-rgb), 0.3);
}

.about-card:nth-child(3n) .about-icon {
    background: linear-gradient(135deg, rgba(var(--accent2-rgb), 0.1), rgba(var(--accent2-rgb), 0.2));
    color: var(--accent2);
    box-shadow: 0 8px 20px rgba(var(--accent2-rgb), 0.15);
}

.about-card:nth-child(3n) .about-icon::after {
    border-color: rgba(var(--accent2-rgb), 0.3);
}

.about-card h3 {
    margin-bottom: 1.5rem;
    font-size: 2.2rem;
    color: var(--dark-color);
    transition: var(--transition);
}

.about-card:hover h3 {
    color: var(--primary-color);
}

.about-card:nth-child(2n):hover h3 {
    color: var(--accent1);
}

.about-card:nth-child(3n):hover h3 {
    color: var(--accent2);
}

.about-card p {
    color: var(--text-color);
    line-height: 1.7;
}

.about-cta {
    margin-top: 5rem;
    text-align: center;
    background-color: var(--light-bg);
    padding: 4rem;
    border-radius: var(--border-radius);
    position: relative;
    z-index: 1;
}

.about-cta p {
    font-size: 1.8rem;
    margin-bottom: 2rem;
}

@media (max-width: 992px) {
    .about-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .about-grid {
        grid-template-columns: 1fr;
    }
    
    .about-card {
        padding: 2.5rem 2rem;
    }
}

/* ================ SERVICES SECTION ================ */
.services {
    padding: 10rem 0;
    background-color: var(--light-color);
    position: relative;
    overflow: hidden;
}

.services::after {
    content: '';
    position: absolute;
    bottom: -50px;
    right: -50px;
    width: 250px;
    height: 250px;
    background-image: url('../images/crane.svg');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: bottom right;
    opacity: 0.05;
    z-index: 1;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 3rem;
}

.service-card {
    background-color: var(--white);
    padding: 3rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}

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

.service-icon {
    width: 7rem;
    height: 7rem;
    background-color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin-bottom: 2rem;
}

.service-icon i {
    font-size: 3rem;
    color: var(--dark-color);
}

.service-card h3 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

.service-card p {
    color: var(--gray);
    margin-bottom: 2rem;
}

.read-more {
    font-weight: 600;
    color: var(--secondary-color);
    display: flex;
    align-items: center;
}

.read-more i {
    margin-left: 0.5rem;
    transition: var(--transition);
}

.read-more:hover {
    color: var(--primary-color);
}

.read-more:hover i {
    transform: translateX(5px);
}

/* ================ STATS SECTION ================ */
.stats {
    position: relative;
    padding: 8rem 0;
    background-image: url('../images/home-construction-site.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: var(--white);
}

.stats::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(29, 53, 87, 0.9);
}

.stats .pattern-overlay {
    background-image: url('../images/pattern2.png');
    background-size: 250px;
    background-repeat: repeat;
    opacity: 0.07;
    mix-blend-mode: soft-light;
}

.stats-grid {
    position: relative;
    z-index: 10;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 3rem;
}

.stat-item {
    text-align: center;
}

.stat-icon {
    font-size: 4rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.stat-item h3 {
    font-size: 4rem;
    color: var(--white);
    margin-bottom: 1rem;
}

.stat-item p {
    font-size: 1.8rem;
    color: var(--light-color);
}

/* ================ WHY CHOOSE US SECTION ================ */
.why-choose-us {
    padding: 10rem 0;
    background-color: var(--white);
    position: relative;
    overflow: hidden;
}

.why-choose-us::before {
    content: '';
    position: absolute;
    top: -150px;
    right: -150px;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background-color: rgba(var(--primary-rgb), 0.05);
    z-index: 0;
}

.why-choose-us .section-header {
    position: relative;
    z-index: 1;
}

.section-title .cursive {
    font-family: var(--cursive-font);
    font-style: italic;
    font-weight: 400;
    color: var(--primary-color);
}

.advantages-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 5rem;
    position: relative;
    z-index: 1;
}

.advantage-card {
    background-color: var(--white);
    border-radius: var(--border-radius);
    padding: 3.5rem 3rem;
    box-shadow: var(--box-shadow);
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    text-align: center;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.advantage-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--box-shadow-hover);
}

.advantage-card h3 {
    margin-bottom: 1.5rem;
    font-size: 2.2rem;
    color: var(--dark-color);
    position: relative;
    display: inline-block;
    padding-bottom: 10px;
}

.advantage-card h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

.advantage-card:hover h3::after {
    width: 100%;
}

.advantage-card:nth-child(2n) h3::after {
    background-color: var(--accent1);
}

.advantage-card:nth-child(3n) h3::after {
    background-color: var(--accent2);
}

.advantage-card p {
    color: var(--text-color);
    line-height: 1.7;
}

.advantage-cta {
    margin-top: 5rem;
    text-align: center;
    background-color: var(--light-bg);
    padding: 4rem;
    border-radius: var(--border-radius);
    position: relative;
    z-index: 1;
}

.advantage-cta p {
    font-size: 1.8rem;
    margin-bottom: 2rem;
}

.cursive.accent {
    font-family: var(--cursive-font);
    font-style: italic;
    font-weight: 400;
    color: var(--accent1);
    display: inline-block;
}

@media (max-width: 992px) {
    .advantages-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .advantages-grid {
        grid-template-columns: 1fr;
    }
    
    .advantage-card {
        padding: 2.5rem 2rem;
    }
}

/* ================ PROJECTS SECTION (BENTO GRID) ================ */
.projects {
    background-color: var(--light-bg);
    padding: 10rem 0;
    position: relative;
    overflow: hidden;
}

.projects::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 300px;
    height: 300px;
    background-image: url('../images/pattern1.png');
    background-size: contain;
    background-repeat: no-repeat;
    opacity: 0.1;
    z-index: 0;
}

.projects-filter {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 4rem;
}

.filter-btn {
    padding: 1rem 2rem;
    border: none;
    background-color: transparent;
    color: var(--text-color);
    font-size: 1.4rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    border-radius: 30px;
    border: 1px solid transparent;
}

.filter-btn:hover, .filter-btn.active {
    color: var(--primary-color);
    background-color: rgba(var(--primary-rgb), 0.1);
    border-color: rgba(var(--primary-rgb), 0.2);
}

.bento-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: auto;
    gap: 2rem;
}

.bento-card {
    background-color: var(--white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    position: relative;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.bento-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

/* Remove different sizing classes */
.bento-card-large-horizontal,
.bento-card-vertical {
    grid-column: auto;
    grid-row: auto;
}

.bento-card-image {
    height: 200px;
    overflow: hidden;
    position: relative;
}

/* Reset height for all card images to be the same */
.bento-card-vertical .bento-card-image,
.bento-card-large-horizontal .bento-card-image {
    height: 200px;
}

.bento-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.bento-card:hover .bento-card-image img {
    transform: scale(1.1);
}

.bento-card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0) 0%, rgba(0,0,0,0.7) 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 2rem;
    color: var(--white);
    opacity: 0.8;
    transition: var(--transition);
}

.bento-card:hover .bento-card-overlay {
    opacity: 1;
}

.bento-card-content {
    padding: 2rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.bento-card-title {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: var(--dark-color);
    font-weight: 600;
}

.bento-card-text {
    font-size: 1.4rem;
    color: var(--text-color);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.bento-card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-bottom: 1.5rem;
}

.bento-card-tag {
    background-color: rgba(var(--primary-rgb), 0.1);
    color: var(--primary-color);
    padding: 0.5rem 1rem;
    border-radius: 30px;
    font-size: 1.2rem;
    font-weight: 500;
}

.bento-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
}

.bento-card-link {
    color: var(--primary-color);
    font-weight: 500;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.4rem;
    transition: var(--transition);
}

.bento-card-link:hover {
    gap: 0.8rem;
}

.bento-card-social {
    display: flex;
    gap: 1rem;
}

.bento-card-social a {
    color: var(--text-color);
    font-size: 1.6rem;
    transition: var(--transition);
}

.bento-card-social a:hover {
    color: var(--primary-color);
    transform: translateY(-3px);
}

.bento-card-text-only {
    background-color: rgba(var(--primary-rgb), 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 3rem;
}

.bento-card-text-only .quote {
    font-size: 1.8rem;
    font-style: italic;
    color: var(--text-color);
    position: relative;
    padding: 0 2rem;
}

.bento-card-text-only .quote::before,
.bento-card-text-only .quote::after {
    content: '"';
    font-size: 4rem;
    color: var(--primary-color);
    position: absolute;
    opacity: 0.3;
}

.bento-card-text-only .quote::before {
    top: -2rem;
    left: -1rem;
}

.bento-card-text-only .quote::after {
    bottom: -4rem;
    right: -1rem;
}

@media (max-width: 1200px) {
    .bento-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .bento-grid {
        grid-template-columns: 1fr;
    }
    
    .bento-card-large-horizontal {
        grid-column: auto;
    }
    
    .bento-card-vertical {
        grid-row: auto;
    }
    
    .bento-card-vertical .bento-card-image,
    .bento-card-large-horizontal .bento-card-image {
        height: 200px;
    }
}

/* ================ CONTACT SECTION ================ */
.contact {
    position: relative;
    padding: 100px 0;
    background-color: #f8f9fa;
    overflow: hidden;
}

.contact .pattern-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../img/patterns/pattern-3.png');
    background-size: 400px;
    opacity: 0.07;
    mix-blend-mode: multiply;
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-top: 50px;
}

.contact-info-wrapper {
    display: flex;
    flex-direction: column;
    gap: 30px;
    height: 100%;
}

.contact-heading h3,
.form-heading h3 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.contact-heading p,
.form-heading p {
    font-size: 16px;
    color: #555;
    line-height: 1.5;
}

.contact-info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
}

.contact-card {
    display: flex;
    align-items: flex-start;
    background-color: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.contact-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.card-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    margin-right: 15px;
    background-color: var(--primary-color-light);
    border-radius: 50%;
    flex-shrink: 0;
}

.card-icon i {
    font-size: 20px;
    color: var(--primary-color);
}

.card-content h4 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 5px;
    color: #333;
}

.card-content p {
    font-size: 15px;
    color: #666;
    line-height: 1.4;
    margin: 0;
}

.card-content a {
    color: #666;
    text-decoration: none;
    transition: color 0.2s ease;
}

.card-content a:hover {
    color: var(--primary-color);
}

.map-container {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    margin-top: 2rem;
    border-radius: var(--border-radius);
    overflow: hidden;
}

.map-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #f5f5f5;
    cursor: pointer;
    transition: all 0.3s ease;
}

.map-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.map-overlay i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.map-overlay p {
    color: var(--dark-color);
    font-weight: 500;
}

.map-placeholder:hover .map-overlay {
    background-color: rgba(0, 0, 0, 0.2);
}

.map-iframe-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.map-iframe-wrapper iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

.map-container.map-loaded {
    background-color: transparent;
}

@media (max-width: 768px) {
    .map-container {
        padding-bottom: 75%; /* Taller aspect ratio for mobile */
    }
}

.contact-form-wrapper {
    background-color: white;
    padding: 35px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.07);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 20px;
    flex-grow: 1;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 8px;
    color: #555;
}

.form-group .required {
    color: #e74c3c;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 15px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--primary-color-light);
    box-shadow: 0 0 0 3px rgba(var(--primary-rgb), 0.1);
    outline: none;
}

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

.form-checkbox {
    flex-direction: row;
    align-items: center;
    gap: 10px;
}

.form-checkbox input {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.form-checkbox label {
    margin-bottom: 0;
    font-weight: 400;
    font-size: 14px;
    cursor: pointer;
}

.form-checkbox a {
    color: var(--primary-color);
    text-decoration: none;
}

.form-checkbox a:hover {
    text-decoration: underline;
}

.contact-form button {
    margin-top: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 28px;
    font-weight: 600;
    transition: transform 0.2s ease;
    border: none;
}

.contact-form button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(var(--primary-rgb), 0.3);
}

.contact-form button i {
    font-size: 15px;
}

/* Form success message */
.form-success {
    display: none;
    background-color: #dff0d8;
    color: #3c763d;
    padding: 15px;
    border-radius: 6px;
    margin-top: 20px;
    text-align: center;
}

/* Show success message after form submission (handled by form action) */
.form-submitted .form-success {
    display: block;
}

.form-submitted .form-row,
.form-submitted .form-group,
.form-submitted button {
    display: none;
}

/* Mobile Responsiveness for Contact Section */
@media (max-width: 992px) {
    .contact-wrapper {
        grid-template-columns: 1fr;
    }
    
    .contact-info-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .map-container {
        height: 350px;
        margin-top: 30px;
    }
}

@media (max-width: 768px) {
    .contact-info-grid {
        grid-template-columns: 1fr;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .contact-form-wrapper {
        padding: 25px;
    }
}

/* ================ FOOTER ================ */
.footer {
    background-color: var(--dark-color);
    color: var(--light-color);
    padding: 8rem 0 0;
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../images/pattern1.png');
    background-size: 400px;
    background-repeat: repeat;
    opacity: 0.03;
    z-index: 0;
}

.footer-content {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 4rem;
    margin-bottom: 4rem;
}

.footer-about {
    grid-column: span 1;
}

.footer-logo {
    display: flex;
    align-items: center;
    margin-bottom: 2rem;
}

.footer-logo img {
    width: 40px;
    height: auto;
    border-radius: 4px;
    object-fit: contain;
}

.footer-logo span {
    color: var(--white);
    font-family: var(--cursive-font);
    font-weight: 600;
    font-size: 2.2rem;
    margin-left: 1rem;
    font-style: italic;
}

.social-links {
    display: flex;
    gap: 1.5rem;
    margin-top: 2rem;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 4rem;
    height: 4rem;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: var(--white);
    transition: var(--transition);
}

.social-links a:hover {
    background-color: var(--primary-color);
    color: var(--dark-color);
}

.footer h3 {
    color: var(--white);
    font-size: 2rem;
    margin-bottom: 2.5rem;
}

.footer-links ul li,
.footer-services ul li {
    margin-bottom: 1rem;
}

.footer-links ul li a,
.footer-services ul li a {
    color: var(--border-color);
    transition: var(--transition);
}

.footer-links ul li a:hover,
.footer-services ul li a:hover {
    color: var(--primary-color);
    padding-left: 5px;
}

.newsletter-form {
    display: flex;
    margin-top: 2rem;
}

.newsletter-form input {
    flex: 1;
    padding: 1.2rem;
    border: none;
    border-radius: var(--border-radius-sm) 0 0 var(--border-radius-sm);
    font-family: var(--body-font);
    font-size: 1.4rem;
}

.newsletter-form .btn {
    border-radius: 0 var(--border-radius-sm) var(--border-radius-sm) 0;
}

.footer-bottom {
    position: relative;
    z-index: 1;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 2rem 0;
    text-align: center;
}

.footer-bottom p {
    margin-bottom: 0;
    font-size: 1.4rem;
}

.footer-bottom a {
    color: var(--border-color);
}

.footer-bottom a:hover {
    color: var(--primary-color);
}

.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: var(--primary-color);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 998;
    text-decoration: none;
}

.back-to-top.active {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background-color: var(--primary-color-dark);
}

/* Position adjustment for back-to-top when floating social icons are present */
@media (max-width: 768px) {
    .back-to-top {
        bottom: 90px;
        right: 20px;
    }
}

@media (max-width: 480px) {
    .back-to-top {
        bottom: 80px;
        right: 15px;
        width: 45px;
        height: 45px;
        font-size: 18px;
    }
}

/* ================ RESPONSIVE STYLES ================ */
@media (max-width: 1200px) {
    html {
        font-size: 55%;
    }
}

@media (max-width: 992px) {
    h1 {
        font-size: 4rem;
    }
    
    h2 {
        font-size: 3.2rem;
    }
    
    .about-content,
    .why-choose-content,
    .contact-content {
        grid-template-columns: 1fr;
        gap: 5rem;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        row-gap: 4rem;
    }
    
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    html {
        font-size: 50%;
    }
    
    .hamburger {
        display: block;
    }
    
    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }
    
    .hamburger.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    
    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
    
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 0;
        width: 80%;
        height: 100vh;
        flex-direction: column;
        background-color: var(--white);
        box-shadow: var(--box-shadow);
        transition: 0.5s;
        padding: 12rem 0;
        z-index: 50;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-menu li {
        margin: 2rem 0;
    }
    
    /* Override transparent header navigation links for mobile to ensure visibility */
    .nav-menu a {
        color: var(--dark-color) !important;
    }
    
    .hero h1 {
        font-size: 4rem;
    }
    
    .hero-content {
        gap: 4rem;
    }
    
    .hero-cards {
        grid-template-columns: repeat(1, 1fr);
        gap: 1.5rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .about-features {
        grid-template-columns: 1fr;
    }
    
    .contact-info {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    .container {
        padding: 0 1.5rem;
    }
    
    h1 {
        font-size: 3.2rem;
    }
    
    h2 {
        font-size: 2.8rem;
    }
    
    .section-header {
        margin-bottom: 4rem;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
    
    .contact-form {
        padding: 3rem;
    }
    
    .newsletter-form {
        flex-direction: column;
    }
    
    .newsletter-form input,
    .newsletter-form .btn {
        width: 100%;
        border-radius: var(--border-radius-sm);
    }
    
    .newsletter-form .btn {
        margin-top: 1rem;
    }
}

/* ================ TESTIMONIALS SECTION ================ */
.testimonials {
    position: relative;
    padding: 10rem 0;
    background-image: url('../images/home-construction-site.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: var(--white);
}

.testimonials::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(20, 20, 20, 0.85);
}

.testimonials .pattern-overlay {
    background-image: url('../images/pattern2.png');
    background-size: 300px;
    background-repeat: repeat;
    opacity: 0.05;
    mix-blend-mode: overlay;
}

.testimonials .section-header {
    position: relative;
    z-index: 2;
}

.testimonials .section-title,
.testimonials .section-description {
    color: var(--white);
}

.testimonials-slider {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
    margin-top: 5rem;
}

.testimonial-item {
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: var(--border-radius);
    padding: 3rem;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: var(--transition);
    opacity: 1;
}

.testimonial-item:hover {
    transform: translateY(-10px);
    background-color: rgba(255, 255, 255, 0.1);
}

.quote-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 2rem;
}

.testimonial-content p {
    font-style: italic;
    margin-bottom: 2rem;
    color: var(--light-color);
}

.client-info h4 {
    color: var(--white);
    margin-bottom: 0.5rem;
}

.client-info p {
    color: var(--primary-color);
    font-size: 1.4rem;
    margin-bottom: 0;
}

@media (max-width: 992px) {
    .testimonials-slider {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .testimonials-slider {
        grid-template-columns: 1fr;
    }
}

/* ================ FLOATING SOCIAL ICONS ================ */
.floating-social {
    position: fixed;
    right: 20px;
    bottom: 100px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    z-index: 999;
}

.floating-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--white);
    color: var(--dark-color);
    border-radius: 50%;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    text-decoration: none;
    transition: all 0.3s ease;
    width: 50px;
    height: 50px;
}

.floating-social a i {
    font-size: 20px;
    transition: all 0.3s ease;
}

.floating-social a:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}

/* WhatsApp Button */
.whatsapp-btn {
    color: #25D366 !important;
}

.whatsapp-btn i {
    font-size: 22px;
}

/* Instagram Button */
.instagram-btn {
    color: #E1306C !important;
}

.instagram-btn i {
    font-size: 22px;
}

/* Call Button */
.call-btn {
    color: var(--primary-color) !important;
}

.call-btn i {
    font-size: 22px;
}

@media (max-width: 576px) {
    .floating-social {
        right: 15px;
        bottom: 80px;
        gap: 10px;
    }
    
    .floating-social a {
        width: 45px;
        height: 45px;
    }
    
    .floating-social a i {
        font-size: 18px;
    }
}

/* ================ ANIMATIONS ================ */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.bento-card,
.section-header,
.testimonial-item {
    opacity: 0;
    transform: translateY(30px);
    transition: transform 0.5s ease, opacity 0.5s ease;
}

.bento-card.animated,
.section-header.animated,
.testimonial-item.animated {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger animations for bento cards */
.bento-card:nth-child(1).animated { transition-delay: 0.1s; }
.bento-card:nth-child(2).animated { transition-delay: 0.2s; }
.bento-card:nth-child(3).animated { transition-delay: 0.3s; }
.bento-card:nth-child(4).animated { transition-delay: 0.4s; }
.bento-card:nth-child(5).animated { transition-delay: 0.5s; }
.bento-card:nth-child(6).animated { transition-delay: 0.6s; }

.project-category {
    display: block;
    font-size: 1.5rem;
    margin-bottom: 0.8rem;
    color: var(--primary-color);
}

.project-category.cursive {
    font-family: var(--cursive-font);
    font-style: italic;
    color: var(--accent1);
}

.bento-text .project-category.cursive {
    color: var(--primary-color);
}

.bento-content h3 {
    font-size: 20px;
    margin-bottom: 12px;
    color: var(--dark-color);
}

/* Quote author styling for bento grid */
.quote-author {
    margin-top: 2rem;
    text-align: right;
}

.quote-author p {
    margin: 0;
    line-height: 1.4;
    font-size: 1.4rem;
    color: var(--text-color);
}

.quote-author p:first-child {
    font-weight: 600;
    color: var(--dark-color);
}

.about .pattern-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../images/banner4.jpg');
    background-repeat: repeat;
    background-size: 200px;
    opacity: 0.03;
    z-index: 1;
    mix-blend-mode: overlay;
    will-change: transform;
    pointer-events: none;
}

/* YouTube embeds for bento cards */
.youtube-embed {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    background-color: #000;
    overflow: hidden;
    border-radius: var(--border-radius);
}

.youtube-thumbnail {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.youtube-thumbnail:hover {
    transform: scale(1.02);
}

.youtube-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background-color: rgba(0, 0, 0, 0.7);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.play-button i {
    color: white;
    font-size: 24px;
    margin-left: 5px;
}

.youtube-thumbnail:hover .play-button {
    background-color: var(--primary-color);
    transform: translate(-50%, -50%) scale(1.1);
}

.youtube-iframe-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.youtube-iframe-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.youtube-embed.video-loaded {
    background-color: transparent;
}

/* Load more button for projects */
.load-more-container {
    display: flex;
    justify-content: center;
    margin-top: 4rem;
}

.load-more-btn {
    padding: 1.2rem 3rem;
    background-color: var(--primary-color);
    color: var(--white);
    border-radius: var(--border-radius);
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 1rem;
}

.load-more-btn:hover {
    background-color: var(--primary-dark);
    transform: translateY(-3px);
} 