/* ===========================================
   RESET & BASE STYLES
=========================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Primary Colors from Logo */
    --primary-color: #FF6B35; /* Vibrant Orange from "ACCESS A" */
    --primary-dark: #E55A2B; /* Darker orange for hover */
    --secondary-color: #1A3A5F; /* Navy Blue from "PROPERTIES LIMITED" */
    --accent-color: #2ECA6A; /* Keep green as accent for CTAs */
    --accent-blue: #2D5F8B; /* Lighter blue for accents */
    --text-dark: #333333;
    --text-light: #666666;
    --text-white: #ffffff;
    --bg-light: #F8F9FA;
    --bg-dark: #1A3A5F; /* Navy blue for dark sections */
    --bg-gray: #2C3E50;
    --bg-gray-light: #34495E;
    --shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    /* Updated gradients */
    --gradient: linear-gradient(135deg, #FF6B35 0%, #E55A2B 100%); /* Orange gradient */
    --gradient-blue: linear-gradient(135deg, #1A3A5F 0%, #2D5F8B 100%); /* Blue gradient */
    --gradient-mixed: linear-gradient(135deg, #FF6B35 0%, #1A3A5F 100%); /* Orange to Blue */
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
    background: var(--bg-light);
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 15px;
    color: var(--secondary-color);
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--gradient);
    border-radius: 2px;
    animation: linePulse 2s ease-in-out infinite;
}

@keyframes linePulse {
    0%, 100% {
        width: 80px;
    }
    50% {
        width: 100px;
    }
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-light);
    font-weight: 400;
}

.text-center {
    text-align: center;
}

/* Animation Classes */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(60px) scale(0.95);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.animate-on-scroll.animated {
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* Enhanced Floating Animation */
.animate-float {
    animation: enhancedFloat 4s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

@keyframes enhancedFloat {
    0%, 100% { 
        transform: translateY(0) rotate(0deg) scale(1);
    }
    25% { 
        transform: translateY(-15px) rotate(5deg) scale(1.05);
    }
    75% { 
        transform: translateY(10px) rotate(-5deg) scale(0.95);
    }
}

/* ===========================================
   ENHANCED NAVBAR STYLES
=========================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    height: 80px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.navbar.scrolled {
    height: 70px;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
    padding: 0 40px;
}

.nav-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    z-index: 1001;
    transition: var(--transition);
    margin-left: 20px;
}

.nav-logo:hover {
    transform: scale(1.05);
}

.logo-img {
    height: 50px;
    margin-right: 15px;
    border-radius: 8px;
    transition: var(--transition);
}

.logo-img:hover {
    transform: rotate(-5deg);
}

.nav-menu {
    display: flex;
    align-items: center;
}

.nav-list {
    display: flex;
    list-style: none;
    margin-right: 30px;
}

.nav-item {
    margin: 0 15px;
    position: relative;
}

.nav-link {
    text-decoration: none;
    color: var(--secondary-color);
    font-weight: 300;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    padding: 10px 0;
    position: relative;
    transition: var(--transition);
}

.nav-link::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 3px;
    background: var(--gradient);
    border-radius: 3px;
    transform: translateX(-50%);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-link:hover::before,
.nav-link.active::before {
    width: 100%;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-color);
    transform: translateY(-2px);
}

.btn-profile {
    background: var(--gradient);
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 50px;
    font-weight: 300;
    font-size: 0.9rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(46, 202, 106, 0.3);
}

.btn-profile::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.6s ease;
}

.btn-profile:hover::before {
    left: 100%;
}

.btn-profile:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 10px 25px rgba(46, 202, 106, 0.4);
}

.mobile-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
    z-index: 1001;
    padding: 10px;
}

.mobile-toggle span {
    width: 30px;
    height: 3px;
    background: var(--secondary-color);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 3px;
}

.mobile-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
    background: var(--primary-color);
}

.mobile-toggle.active span:nth-child(2) {
    opacity: 0;
    transform: translateX(-20px);
}

.mobile-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
    background: var(--primary-color);
}

/* ===========================================
   PROJECTS HERO SECTION
=========================================== */
.projects-hero {
    height: 500px;
    position: relative;
    margin-top: 80px;
    overflow: hidden;
    background: linear-gradient(rgba(26, 26, 46, 0.7), rgba(26, 26, 46, 0.8)),
                url('/img/hero-section/2.jpg') center/cover no-repeat;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
}

.hero-overlay::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    /* background: linear-gradient(
        90deg,
        transparent,
        rgba(46, 202, 106, 0.2),
        rgba(255, 107, 53, 0.2),
        rgba(46, 202, 106, 0.2),
        transparent
    ); */
    animation: mirrorWipe 8s infinite linear;
    z-index: 3;
}

.hero-overlay::after {
    content: '';
    position: absolute;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100%;
    /* background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 107, 53, 0.2),
        rgba(46, 202, 106, 0.2),
        rgba(255, 107, 53, 0.2),
        transparent
    ); */
    animation: mirrorWipeReverse 8s infinite linear;
    animation-delay: 4s;
    z-index: 3;
}

@keyframes mirrorWipe {
    0% {
        left: -100%;
        opacity: 0.5;
    }
    50% {
        left: 0;
        opacity: 1;
    }
    100% {
        left: 100%;
        opacity: 0.5;
    }
}

@keyframes mirrorWipeReverse {
    0% {
        right: -100%;
        opacity: 0.5;
    }
    50% {
        right: 0;
        opacity: 1;
    }
    100% {
        right: 100%;
        opacity: 0.5;
    }
}

.hero-content {
    position: relative;
    z-index: 4;
    text-align: center;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-text-container {
    animation: slideInUp 1.2s cubic-bezier(0.4, 0, 0.2, 1) 0.3s both;
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(50px) scale(0.95);
        filter: blur(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
        filter: blur(0);
    }
}

.hero-title {
    margin-bottom: 30px;
    line-height: 1.1;
    perspective: 1000px;
}

.hero-title-line {
    display: block;
    font-size: 3.5rem;
    font-weight: 800;
    color: white;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin: 15px 0;
    text-shadow: 0 5px 25px rgba(0, 0, 0, 0.7);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

.hero-title-animate {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0;
    animation: textRotate 12s infinite;
}

.hero-title-animate:nth-child(1) {
    animation-delay: 0s;
}

.hero-title-animate:nth-child(2) {
    animation-delay: 4s;
}

.hero-title-animate:nth-child(3) {
    animation-delay: 8s;
}

@keyframes textRotate {
    0%, 33.33% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
    36.33%, 100% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.95);
    }
}

/* Add this to your existing CSS */
.hero-title-animate {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    transform: none !important;
    opacity: 1 !important;
    animation: none !important;
    margin: 15px 0 !important;
}

/* ===========================================
   PROJECTS VIDEO SECTION
=========================================== */
.projects-video-section {
    padding: 100px 0;
    background: white;
    position: relative;
    overflow: hidden;
}

.projects-video-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    margin-bottom: 60px;
    position: relative;
    z-index: 1;
}

.project-video-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    transform-style: preserve-3d;
    perspective: 1000px;
}

.project-video-card:hover {
    transform: translateY(-15px) scale(1.03) rotateX(5deg);
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.2);
}

.video-container {
    position: relative;
    padding-top: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    background: #000;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.video-info {
    padding: 25px;
}

.video-title {
    font-size: 1.4rem;
    color: var(--secondary-color);
    margin-bottom: 10px;
    font-weight: 700;
    transition: var(--transition);
}

.project-video-card:hover .video-title {
    color: var(--primary-color);
    transform: translateY(-3px);
}

.video-description {
    color: var(--text-light);
    margin-bottom: 15px;
    line-height: 1.6;
    font-size: 0.95rem;
}

.video-meta {
    display: flex;
    gap: 20px;
    color: var(--text-light);
    font-size: 0.85rem;
    font-weight: 500;
}

.video-meta span {
    display: flex;
    align-items: center;
    gap: 6px;
}

.video-meta i {
    color: var(--primary-color);
    font-size: 0.9rem;
}

.view-more-container {
    text-align: center;
    margin-top: 40px;
}

.btn-view-youtube {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 14px 35px;
    background: #FF0000;
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 700;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-size: 0.9rem;
    border: none;
    cursor: pointer;
}

.btn-view-youtube:hover {
    background: #CC0000;
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 15px 35px rgba(255, 0, 0, 0.4);
}

/* ===========================================
   FIXED PROJECT GALLERY STYLES - ALWAYS VISIBLE
=========================================== */
.projects-gallery-section {
    padding: 100px 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.gallery-filter {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 50px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 12px 25px;
    background: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.85rem;
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--gradient);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(46, 202, 106, 0.3);
}

/* FIXED: Gallery Grid - Properly sized containers */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    max-width: 1200px;
    margin: 0 auto;
}

/* FIXED: Gallery Item - Fixed dimensions, no excessive width */
.gallery-item {
    border-radius: 15px;
    overflow: hidden;
    position: relative;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    aspect-ratio: 1 / 0.9; /* Consistent height-to-width ratio */
    max-width: 100%;
}

.gallery-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.gallery-image {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.gallery-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.gallery-item:hover .gallery-image img {
    transform: scale(1.1);
}

/* FIXED: Gradient Overlay - ALWAYS VISIBLE, not on hover */
.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, 
        rgba(0,0,0,0.9) 0%, 
        rgba(0,0,0,0.7) 40%, 
        rgba(0,0,0,0.4) 70%, 
        transparent 100%);
    display: flex;
    align-items: flex-end;
    padding: 25px;
    opacity: 1; /* Always visible */
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* FIXED: Gallery Content - ALWAYS VISIBLE, no transform */
.gallery-content {
    color: white;
    transform: translateY(0); /* Always in position */
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    width: 100%;
}

/* Subtle hover enhancement - content lifts slightly */
.gallery-item:hover .gallery-content {
    transform: translateY(-5px);
}

.gallery-content h3 {
    font-size: 1.3rem;
    margin-bottom: 8px;
    font-weight: 700;
    text-shadow: 0 2px 5px rgba(0,0,0,0.5);
    line-height: 1.2;
}

.gallery-content p {
    font-size: 0.9rem;
    opacity: 0.95;
    margin-bottom: 15px;
    line-height: 1.5;
    text-shadow: 0 1px 3px rgba(0,0,0,0.5);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.gallery-btn {
    display: inline-block;
    padding: 8px 20px;
    background: var(--gradient);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    border: none;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.gallery-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.3);
}

/* ===========================================
   RESPONSIVE FIXES FOR GALLERY
=========================================== */
@media (max-width: 1200px) {
    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
        padding: 0 15px;
    }
}

@media (max-width: 992px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .gallery-item {
        aspect-ratio: 1 / 0.85;
    }
}

@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: 1fr;
        max-width: 500px;
        margin: 0 auto;
    }
    
    .gallery-item {
        aspect-ratio: 1 / 0.8;
    }
    
    .gallery-content h3 {
        font-size: 1.2rem;
    }
}

@media (max-width: 576px) {
    .gallery-grid {
        padding: 0 10px;
    }
    
    .gallery-item {
        aspect-ratio: 1 / 0.75;
    }
    
    .gallery-content h3 {
        font-size: 1.1rem;
    }
    
    .gallery-content p {
        font-size: 0.85rem;
        margin-bottom: 12px;
    }
    
    .gallery-btn {
        padding: 6px 16px;
        font-size: 0.75rem;
    }
}

/* ===========================================
   REMOVE OLD HOVER-ONLY OVERLAY STYLES
=========================================== */
/* REMOVED/OVERRIDDEN:
   .gallery-overlay { opacity: 0; }
   .gallery-item:hover .gallery-overlay { opacity: 1; }
   .gallery-content { transform: translateY(20px); }
   .gallery-item:hover .gallery-content { transform: translateY(0); }
*/

/* ===========================================
   PROJECTS STATS SECTION - WITH PLUS & PERCENT SIGNS
=========================================== */
.projects-stats-section {
    padding: 80px 0;
    background: var(--bg-dark);
    color: white;
    position: relative;
    overflow: hidden;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    text-align: center;
}

.stat-item {
    padding: 30px 20px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.stat-item:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.stat-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

/* Stat Number Container - Flex for alignment */
.stat-number-container {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 3px;
    margin-bottom: 10px;
}

.stat-number {
    font-size: 2.8rem;
    font-weight: 800;
    color: white;
    line-height: 1;
}

/* Plus and Percent Sign Styling */
.stat-suffix {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1;
    position: relative;
    top: -0.1em;
}

.stat-text {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    opacity: 0.9;
    margin: 0;
}

/* Responsive adjustments */
@media (max-width: 992px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

@media (max-width: 576px) {
    .stat-number {
        font-size: 2.4rem;
    }
    
    .stat-suffix {
        font-size: 1.8rem;
    }
}

.plus-sign {
    font-size: inherit;
    font-weight: inherit;
    color: var(--primary-color);
    margin-left: 2px;
}

/* ===========================================
   PROJECTS CTA SECTION
=========================================== */
.projects-cta-section {
    padding: 100px 0;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    text-align: center;
}

.cta-content h2 {
    font-size: 2.8rem;
    margin-bottom: 20px;
    font-weight: 800;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.cta-content p {
    font-size: 1.2rem;
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    opacity: 0.9;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 25px;
    flex-wrap: wrap;
}

.btn-cta-primary {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 16px 40px;
    background: white;
    color: var(--secondary-color);
    text-decoration: none;
    border-radius: 50px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.btn-cta-primary:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

.btn-cta-secondary {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 16px 40px;
    background: transparent;
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid white;
}

.btn-cta-secondary:hover {
    background: white;
    color: var(--secondary-color);
    transform: translateY(-5px);
}

/* ===========================================
   UPDATED FOOTER WITH GRAY COLOR SCHEME
=========================================== */
.footer {
    background: var(--bg-gray);
    color: white;
    position: relative;
}

.footer-top {
    padding: 80px 0 50px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
}

.footer-col h4 {
    font-size: 1.4rem;
    margin-bottom: 25px;
    font-weight: 800;
    position: relative;
    padding-bottom: 15px;
    color: white;
}

.footer-col h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 4px;
    background: var(--gradient);
    border-radius: 2px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 25px;
}

.footer-logo img {
    height: 60px;
    border-radius: 10px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.footer-logo img:hover {
    transform: scale(1.1) rotate(-5deg);
}

.footer-logo h3 {
    font-size: 1.4rem;
    font-weight: 900;
    color: white;
}

.footer-about {
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.8;
    margin-bottom: 25px;
    font-size: 1rem;
}

.footer-social {
    display: flex;
    gap: 15px;
}

.footer-social a {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.footer-social a:hover {
    background: var(--gradient);
    transform: translateY(-5px) scale(1.1);
    border-color: transparent;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 15px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1rem;
}

.footer-links a:hover {
    color: var(--primary-color);
    padding-left: 10px;
}

.footer-contact p {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 20px;
    color: rgba(255, 255, 255, 0.85);
    font-size: 1rem;
}

.footer-contact i {
    color: var(--primary-color);
    margin-top: 3px;
    font-size: 1.1rem;
    min-width: 20px;
}

.footer-bottom {
    padding: 25px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
    background: var(--bg-gray-light);
}

.footer-bottom a {
    color: var(--primary-color);
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 700;
}

.footer-bottom a:hover {
    color: white;
}

/* ===========================================
   FIXED MODAL STYLES
=========================================== */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 9999;
    overflow-y: auto;
    padding: 20px;
    backdrop-filter: blur(10px);
    animation: modalFadeIn 0.3s ease;
}

@keyframes modalFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-content {
    background: white;
    border-radius: 25px;
    max-width: 800px;
    margin: 50px auto;
    position: relative;
    animation: modalSlideIn 0.4s cubic-bezier(0.4, 0, 0.2, 1) forwards;
    box-shadow: 0 50px 100px rgba(0, 0, 0, 0.4);
    overflow: hidden;
    border: 1px solid rgba(46, 202, 106, 0.2);
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    width: 100%;
    min-height: auto;
    transform-origin: center;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px) scale(0.95);
        filter: blur(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
        filter: blur(0);
    }
}

.modal-close {
    position: absolute;
    top: 25px;
    right: 30px;
    font-size: 2rem;
    color: var(--text-light);
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 100;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.1);
    border: none;
}

.modal-close:hover {
    color: var(--secondary-color);
    background: rgba(0, 0, 0, 0.2);
    transform: rotate(90deg) scale(1.1);
}

.modal-body {
    padding: 40px;
    overflow-y: auto;
    flex: 1;
    min-height: 0;
}

.modal-title {
    font-size: 2rem;
    color: var(--secondary-color);
    margin-bottom: 30px;
    font-weight: 900;
    text-align: center;
    position: relative;
    padding-bottom: 20px;
}

.modal-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--gradient);
    border-radius: 2px;
}

/* Project Modal Styles */
.project-modal-content {
    padding: 30px;
}

.project-modal-image {
    margin-bottom: 30px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
}

.project-modal-image img {
    width: 100%;
    height: 300px;
    object-fit: cover;
}

.project-modal-details h3 {
    font-size: 1.8rem;
    color: var(--secondary-color);
    margin-bottom: 15px;
    font-weight: 900;
}

.project-modal-details p {
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--text-light);
    margin-bottom: 20px;
}

.project-modal-features {
    margin-bottom: 30px;
}

.project-modal-features li {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 12px;
    color: var(--text-dark);
    font-size: 1rem;
    font-weight: 500;
}

.project-modal-features li i {
    color: var(--primary-color);
    font-size: 1.1rem;
}

.project-modal-actions {
    text-align: center;
}

/* Profile Modal Styles */
.profile-modal .modal-body {
    padding: 30px;
    max-width: 900px;
    width: 100%;
}

.pdf-viewer {
    width: 100%;
    height: 500px;
    margin: 20px 0;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.pdf-viewer iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.modal-actions {
    text-align: center;
    margin-top: 30px;
}

.btn-download {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 14px 35px;
    background: var(--gradient);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 700;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-size: 0.9rem;
}

.btn-download:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 15px 35px rgba(46, 202, 106, 0.4);
}

/* ===========================================
   WHATSAPP FLOAT BUTTON
=========================================== */
.whatsapp-float {
    position: fixed;
    bottom: 40px;
    right: 40px;
    width: 70px;
    height: 70px;
    background: #25D366;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2rem;
    text-decoration: none;
    box-shadow: 0 20px 45px rgba(37, 211, 102, 0.4);
    z-index: 1000;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    animation: pulseWhatsapp 2s infinite;
    backdrop-filter: blur(10px);
    border: none;
}

@keyframes pulseWhatsapp {
    0%, 100% {
        box-shadow: 0 20px 45px rgba(37, 211, 102, 0.4);
        transform: scale(1);
    }
    50% {
        box-shadow: 0 20px 55px rgba(37, 211, 102, 0.6);
        transform: scale(1.1);
    }
}

.whatsapp-float:hover {
    background: #128C7E;
    transform: scale(1.15) rotateY(180deg);
    box-shadow: 0 25px 65px rgba(37, 211, 102, 0.5);
}

/* ===========================================
   RESPONSIVE DESIGN
=========================================== */
@media (max-width: 1200px) {
    .hero-title-line {
        font-size: 2.8rem;
    }
    
    .projects-video-grid,
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 50px;
    }
}

@media (max-width: 992px) {
    .hero-title-line {
        font-size: 2.2rem;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .cta-content h2 {
        font-size: 2.2rem;
    }
    
    .nav-container {
        padding: 0 20px;
    }
}

@media (max-width: 768px) {
    .navbar {
        height: 70px;
    }
    
    .navbar.scrolled {
        height: 60px;
    }
    
    .nav-container {
        padding: 0 15px;
    }
    
    .nav-logo {
        margin-left: 0;
    }
    
    .mobile-toggle {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: white;
        flex-direction: column;
        padding: 40px 20px;
        transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        overflow-y: auto;
        align-items: flex-start;
        justify-content: flex-start;
        backdrop-filter: blur(20px);
        box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-list {
        flex-direction: column;
        margin-right: 0;
        margin-bottom: 30px;
        width: 100%;
        text-align: left;
    }
    
    .nav-item {
        margin: 0 0 15px 0;
        width: 100%;
    }
    
    .nav-link {
        display: block;
        padding: 15px 20px;
        text-align: left;
        border-radius: 10px;
        font-weight: 300;
        background: rgba(46, 202, 106, 0.05);
    }
    
    .nav-link:hover {
        background: rgba(46, 202, 106, 0.1);
        transform: translateX(10px);
    }
    
    .btn-profile {
        margin-top: 20px;
        align-self: flex-start;
    }
    
    .projects-hero {
        height: 400px;
        margin-top: 70px;
    }
    
    .hero-title-line {
        font-size: 1.8rem;
        letter-spacing: 2px;
        white-space: normal;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .projects-video-grid,
    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .gallery-filter {
        gap: 10px;
    }
    
    .filter-btn {
        padding: 10px 20px;
        font-size: 0.8rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }
    
    .btn-cta-primary,
    .btn-cta-secondary {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

@media (max-width: 576px) {
    .projects-hero {
        height: 350px;
    }
    
    .hero-title-line {
        font-size: 1.5rem;
        letter-spacing: 1px;
    }
    
    .section-title {
        font-size: 1.4rem;
    }
    
    .section-subtitle {
        font-size: 0.9rem;
    }
    
    .nav-link {
        font-size: 0.8rem;
        padding: 12px;
    }
    
    .btn-profile {
        padding: 10px 20px;
        font-size: 0.8rem;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .stat-item {
        padding: 20px 15px;
    }
    
    .stat-number {
        font-size: 2.2rem;
    }
    
    .modal-body {
        padding: 30px 20px;
    }
    
    .modal-title {
        font-size: 1.4rem;
    }
}

@media (max-width: 480px) {
    .projects-hero {
        height: 300px;
    }
    
    .hero-title-line {
        font-size: 1.2rem;
        letter-spacing: 1px;
    }
    
    .cta-content h2 {
        font-size: 1.8rem;
    }
    
    .cta-content p {
        font-size: 1rem;
    }
    
    .whatsapp-float {
        width: 60px;
        height: 60px;
        font-size: 1.8rem;
        bottom: 20px;
        right: 20px;
    }
}