/* ========================================
   SERAB CONSTRUCTION - LANDING PAGE
   Modern Construction Company Website
   ======================================== */

/* CSS Variables */
:root {
    /* Color Palette - Based on Logo */
    --bg-primary: #FAF8F5;
    --bg-secondary: #F5F0EB;
    --bg-dark: #2C2C2C;
    
    /* Copper & Gold Palette */
    --copper-dark: #8B5A2B;
    --copper-medium: #A67C52;
    --copper-light: #C4956A;
    --rose-gold: #D4A5A5;
    --gold-accent: #D4AF37;
    
    /* Gradient */
    --gradient-primary: linear-gradient(135deg, var(--copper-dark) 0%, var(--rose-gold) 100%);
    --gradient-hover: linear-gradient(135deg, var(--copper-medium) 0%, var(--gold-accent) 100%);
    
    /* Text Colors */
    --text-primary: #2D2D2D;
    --text-secondary: #5A5A5A;
    --text-light: #FAF8F5;
    --text-muted: #888888;
    
    /* Spacing */
    --section-padding: 100px;
    --container-width: 1200px;
    
    /* Transitions */
    --transition-fast: 0.3s ease;
    --transition-medium: 0.5s ease;
    --transition-slow: 0.8s ease;
    
    /* Shadows */
    --shadow-light: 0 4px 20px rgba(139, 90, 43, 0.1);
    --shadow-medium: 0 8px 30px rgba(139, 90, 43, 0.15);
    --shadow-heavy: 0 15px 50px rgba(139, 90, 43, 0.2);
    
    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-xl: 50px;
}

/* Reset & Base */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Cairo', sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.8;
    overflow-x: hidden;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* ========================================
   FLOATING CONTACT BUTTONS
   ======================================== */
.floating-contacts {
    position: fixed;
    left: 25px;
    bottom: 100px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.float-btn {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    text-decoration: none;
    transition: all var(--transition-fast);
    box-shadow: var(--shadow-medium);
    position: relative;
    overflow: hidden;
}

.float-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-primary);
    z-index: -1;
    transition: all var(--transition-fast);
}

.float-btn:hover {
    transform: translateY(-5px) scale(1.1);
    box-shadow: var(--shadow-heavy);
}

.float-btn:hover::before {
    background: var(--gradient-hover);
}

.whatsapp-btn {
    background: #25D366;
}

.call-btn {
    background: var(--copper-dark);
}

/* Tooltip for floating buttons */
.float-btn::after {
    content: attr(title);
    position: absolute;
    left: 70px;
    background: var(--copper-dark);
    color: white;
    padding: 8px 15px;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-fast);
    font-weight: 600;
}

.float-btn:hover::after {
    opacity: 1;
    visibility: visible;
}

/* ========================================
   NAVIGATION
   ======================================== */
.navbar {
    background-color:  #f7f7f7eb !important;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 999;
    padding: 15px 0;
    transition: all var(--transition-fast);
    background: transparent;
}

.navbar.scrolled {
    background: rgba(250, 248, 245, 0.95);
    backdrop-filter: blur(20px);
    box-shadow: var(--shadow-light);
    padding: 10px 0;
}

.nav-container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo img {
    height: 60px;
    width: auto;
    transition: all var(--transition-fast);
}

.navbar.scrolled .logo img {
    height: 50px;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 35px;
}

.nav-link {
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 600;
    font-size: 0.95rem;
    position: relative;
    padding: 5px 0;
    transition: all var(--transition-fast);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: all var(--transition-fast);
}

.nav-link:hover {
    color: var(--copper-dark);
}

.nav-link:hover::after {
    width: 100%;
}

/* Hamburger Menu */
.hamburger {
    display: none;
    cursor: pointer;
}

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

/* ========================================
   HERO SECTION
   ======================================== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    padding: 120px 20px 80px;
}

/* Animated Background Image */
.hero-bg-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('https://images.unsplash.com/photo-1486406146926-c627a92ad1ab?w=1920&q=80') center center / cover no-repeat;
    animation: kenBurns 20s ease-in-out infinite alternate;
    z-index: 0;
}

@keyframes kenBurns {
    0% {
        transform: scale(1) translate(0, 0);
    }
    100% {
        transform: scale(1.15) translate(-2%, -2%);
    }
}

/* Gradient Overlay */
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        135deg,
        rgba(250, 248, 245, 0.85) 0%,
        rgba(250, 248, 245, 0.7) 50%,
        rgba(250, 248, 245, 0.9) 100%
    );
    z-index: 1;
}

/* Decorative Pattern Overlay */
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%238B5A2B' fill-opacity='0.02'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.5;
    z-index: 2;
}

/* Floating Particles */
.hero-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    overflow: hidden;
    pointer-events: none;
}

.hero-particles::before,
.hero-particles::after {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(139, 90, 43, 0.08) 0%, transparent 70%);
    animation: float 15s ease-in-out infinite;
}

.hero-particles::before {
    top: 10%;
    right: -100px;
    animation-delay: 0s;
}

.hero-particles::after {
    bottom: 10%;
    left: -100px;
    animation-delay: -7s;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0) scale(1);
        opacity: 0.5;
    }
    50% {
        transform: translateY(-50px) scale(1.1);
        opacity: 0.8;
    }
}

.hero-content {
    text-align: center;
    max-width: 900px;
    z-index: 10;
    position: relative;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: white;
    padding: 10px 25px;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-light);
    margin-bottom: 30px;
    color: var(--copper-dark);
    font-weight: 600;
    font-size: 0.9rem;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.hero-badge i {
    color: var(--gold-accent);
    font-size: 1.1rem;
}

.hero-title {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 800;
    color: var(--copper-dark);
    line-height: 1.2;
    margin-bottom: 25px;
}

.hero-title .highlight {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
}

.hero-subtitle {
    font-size: clamp(1rem, 2.5vw, 1.25rem);
    color: var(--text-secondary);
    margin-bottom: 40px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 60px;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 35px;
    border-radius: var(--radius-xl);
    text-decoration: none;
    font-weight: 700;
    font-size: 1rem;
    transition: all var(--transition-fast);
    border: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: 0 4px 15px rgba(139, 90, 43, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(139, 90, 43, 0.4);
}

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

.btn-secondary:hover {
    background: var(--copper-dark);
    color: white;
    transform: translateY(-3px);
}

.btn-large {
    padding: 18px 45px;
    font-size: 1.1rem;
}

/* Hero Stats */
.hero-stats {
    display: flex;
    justify-content: center;
    gap: 60px;
    flex-wrap: wrap;
}

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

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
}

.stat-label {
    font-size: 0.95rem;
    color: var(--text-secondary);
    font-weight: 500;
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    color: var(--copper-medium);
    font-size: 0.85rem;
    animation: bounce 2s infinite;
}

.mouse {
    width: 25px;
    height: 40px;
    border: 2px solid var(--copper-medium);
    border-radius: 15px;
    position: relative;
}

.wheel {
    width: 4px;
    height: 8px;
    background: var(--copper-medium);
    border-radius: 2px;
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    animation: scroll 1.5s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
    40% { transform: translateX(-50%) translateY(-10px); }
    60% { transform: translateX(-50%) translateY(-5px); }
}

@keyframes scroll {
    0% { opacity: 1; top: 8px; }
    100% { opacity: 0; top: 20px; }
}

/* ========================================
   SECTION HEADERS
   ======================================== */
.section-header {
    text-align: center;
    margin-bottom: 70px;
}

.section-tag {
    display: inline-block;
    background: var(--bg-secondary);
    color: var(--copper-dark);
    padding: 8px 25px;
    border-radius: var(--radius-xl);
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 20px;
    border: 1px solid rgba(139, 90, 43, 0.2);
}

.section-title {
    font-size: clamp(2rem, 4vw, 2.8rem);
    font-weight: 800;
    color: var(--copper-dark);
    margin-bottom: 15px;
}

.section-subtitle {
    color: var(--text-secondary);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

/* ========================================
   ABOUT SECTION
   ======================================== */
.about {
    padding: var(--section-padding) 0;
    background: var(--bg-secondary);
    position: relative;
    overflow: hidden;
}

.about::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100px;
    background: linear-gradient(to top, var(--bg-primary), transparent);
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.about-card {
    background: white;
    padding: 40px 35px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-light);
    transition: all var(--transition-fast);
    position: relative;
    overflow: hidden;
}

.about-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform var(--transition-fast);
}

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

.about-card:hover::before {
    transform: scaleX(1);
    transform-origin: left;
}

.about-icon {
    width: 70px;
    height: 70px;
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
    transition: all var(--transition-fast);
}

.about-icon i {
    font-size: 1.8rem;
    color: var(--copper-dark);
    transition: all var(--transition-fast);
}

.about-card:hover .about-icon {
    background: var(--gradient-primary);
}

.about-card:hover .about-icon i {
    color: white;
}

.about-card h3 {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--copper-dark);
    margin-bottom: 15px;
}

.about-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.9;
}

/* Distinction Section */
.distinction-section {
    background: linear-gradient(135deg, var(--copper-dark) 0%, var(--copper-medium) 100%);
    padding: 60px 50px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-medium);
    text-align: center;
    margin-bottom: 50px;
    position: relative;
    overflow: hidden;
}

.distinction-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 60%;
    height: 200%;
    background: radial-gradient(ellipse, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    animation: rotate 25s linear infinite;
}

.distinction-content {
    position: relative;
    z-index: 1;
}

.distinction-icon {
    width: 90px;
    height: 90px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.2);
    animation: pulse-glow 3s ease-in-out infinite;
}

@keyframes pulse-glow {
    0%, 100% {
        box-shadow: 0 0 20px rgba(255, 255, 255, 0.2);
        transform: scale(1);
    }
    50% {
        box-shadow: 0 0 40px rgba(255, 255, 255, 0.4);
        transform: scale(1.05);
    }
}

.distinction-icon i {
    font-size: 2.5rem;
    color: var(--gold-accent);
}

.distinction-title {
    font-size: 2.2rem;
    font-weight: 800;
    color: white;
    margin-bottom: 25px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.distinction-text {
    color: rgba(255, 255, 255, 0.95);
    font-size: 1.15rem;
    line-height: 2.2;
    max-width: 900px;
    margin: 0 auto;
    font-weight: 400;
}

/* Values Section */
.values-section {
    background: white;
    padding: 50px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-light);
    text-align: center;
}

.values-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--copper-dark);
    margin-bottom: 40px;
}

.values-grid {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}

.value-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.value-icon {
    width: 80px;
    height: 80px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.8rem;
    transition: all var(--transition-fast);
    box-shadow: var(--shadow-light);
}

.value-item:hover .value-icon {
    transform: scale(1.1) rotate(10deg);
    box-shadow: var(--shadow-medium);
}

.value-item span {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 1rem;
}

/* ========================================
   SERVICES SECTION
   ======================================== */
.services {
    padding: var(--section-padding) 0;
    background: var(--bg-primary);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.service-card {
    background: white;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-light);
    transition: all var(--transition-fast);
    position: relative;
}

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

.service-image {
    height: 180px;
    background: var(--bg-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.service-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-primary);
    opacity: 0;
    transition: opacity var(--transition-fast);
}

.service-card:hover .service-image::before {
    opacity: 0.1;
}

.service-icon-wrap {
    width: 90px;
    height: 90px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-light);
    position: relative;
    z-index: 1;
    transition: all var(--transition-fast);
}

.service-icon-wrap i {
    font-size: 2.2rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.service-card:hover .service-icon-wrap {
    transform: scale(1.1);
    box-shadow: var(--shadow-medium);
}

.service-content {
    padding: 30px;
}

.service-content h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--copper-dark);
    margin-bottom: 15px;
}

.service-content p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 20px;
    line-height: 1.8;
}

.service-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--copper-dark);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all var(--transition-fast);
}

.service-link i {
    transition: transform var(--transition-fast);
}

.service-link:hover {
    color: var(--copper-medium);
}

.service-link:hover i {
    transform: translateX(-5px);
}

/* ========================================
   WORKS SECTION
   ======================================== */
.works-section {
    padding: var(--section-padding) 0;
    background: var(--bg-primary);
}

.works-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(2, 300px);
    gap: 25px;
}

.work-item {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-light);
    transition: all var(--transition-fast);
}

.work-item:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-heavy);
}

.work-large {
    grid-column: span 2;
    grid-row: span 2;
}

.work-wide {
    grid-column: span 2;
}

.work-image {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.work-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease;
}

.work-item:hover .work-image img {
    transform: scale(1.15);
}

.work-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to top,
        rgba(139, 90, 43, 0.95) 0%,
        rgba(139, 90, 43, 0.7) 40%,
        transparent 100%
    );
    display: flex;
    align-items: flex-end;
    padding: 30px;
    opacity: 0;
    transition: all var(--transition-fast);
}

.work-item:hover .work-overlay {
    opacity: 1;
}

.work-content {
    transform: translateY(30px);
    transition: transform var(--transition-fast);
}

.work-item:hover .work-content {
    transform: translateY(0);
}

.work-category {
    display: inline-block;
    background: var(--gold-accent);
    color: white;
    padding: 5px 15px;
    border-radius: var(--radius-xl);
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 12px;
}

.work-content h3 {
    color: white;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.work-content p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.95rem;
    margin-bottom: 15px;
}

.work-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: white;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-xl);
    backdrop-filter: blur(10px);
    transition: all var(--transition-fast);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.work-link:hover {
    background: white;
    color: var(--copper-dark);
}

/* Shimmer Effect */
.work-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.2),
        transparent
    );
    transition: left 0.7s ease;
    z-index: 1;
    pointer-events: none;
}

.work-item:hover::before {
    left: 100%;
}

/* ========================================
   CTA SECTION
   ======================================== */
.cta-section {
    padding: 100px 0;
    background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-primary) 100%);
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 30% 50%, rgba(139, 90, 43, 0.05) 0%, transparent 50%),
                radial-gradient(circle at 70% 50%, rgba(212, 165, 165, 0.05) 0%, transparent 50%);
}

.cta-content {
    text-align: center;
    position: relative;
    z-index: 1;
}

.cta-content h2 {
    font-size: clamp(2rem, 4vw, 2.8rem);
    font-weight: 800;
    color: var(--copper-dark);
    margin-bottom: 20px;
}

.cta-content p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ========================================
   FOOTER
   ======================================== */
.footer {
    background: var(--bg-dark);
    color: var(--text-light);
    padding: 80px 0 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 50px;
    margin-bottom: 60px;
}

.footer-brand .footer-logo {
    height: 70px;
    width: auto;
    margin-bottom: 20px;
    border-radius: var(--radius-sm);
}

.footer-brand p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
    line-height: 1.8;
    margin-bottom: 25px;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-link {
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: all var(--transition-fast);
    font-size: 1.1rem;
}

.social-link:hover {
    background: var(--gradient-primary);
    transform: translateY(-3px);
}

.footer-links h4,
.footer-services h4,
.footer-contact h4 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 25px;
    color: var(--copper-light);
}

.footer-links ul,
.footer-services ul,
.footer-contact ul {
    list-style: none;
}

.footer-links li,
.footer-services li,
.footer-contact li {
    margin-bottom: 12px;
}

.footer-links a,
.footer-services a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 0.95rem;
    transition: all var(--transition-fast);
    display: inline-block;
}

.footer-links a:hover,
.footer-services a:hover {
    color: var(--rose-gold);
    padding-right: 5px;
}

.footer-contact li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
}

.footer-contact i {
    color: var(--copper-light);
    margin-top: 5px;
    font-size: 1rem;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 30px;
    text-align: center;
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
}

/* Developer Credit */
.developer-credit {
    text-align: center;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.credit-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.4);
    text-decoration: none;
    font-size: 0.85rem;
    transition: all var(--transition-fast);
    flex-wrap: wrap;
    justify-content: center;
}

.credit-link:hover {
    color: rgba(255, 255, 255, 0.8);
}

.heart-icon {
    color: #e74c3c;
    font-size: 1rem;
    animation: heartbeat 1.5s ease-in-out infinite;
    display: inline-block;
}

@keyframes heartbeat {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.2);
    }
}

.dev-name {
    color: var(--copper-light);
    font-weight: 700;
    transition: all var(--transition-fast);
}

.credit-link:hover .dev-name {
    color: var(--gold-accent);
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */
@media (max-width: 1024px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    /* Tablet Hero Background */
    .hero-bg-image {
        background-position: 60% center;
    }

    .hero::before {
        background: linear-gradient(
            135deg,
            rgba(250, 248, 245, 0.88) 0%,
            rgba(250, 248, 245, 0.75) 50%,
            rgba(250, 248, 245, 0.92) 100%
        );
    }

    .hamburger {
        display: block;
    }

    .hamburger.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

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

    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background: rgba(250, 248, 245, 0.98);
        width: 100%;
        text-align: center;
        transition: all var(--transition-fast);
        padding: 30px 0;
        box-shadow: var(--shadow-medium);
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-link {
        padding: 15px 0;
    }

    .floating-contacts {
        left: 15px;
        bottom: 80px;
    }

    .float-btn {
        width: 50px;
        height: 50px;
        font-size: 1.3rem;
    }

    .hero-stats {
        gap: 30px;
    }

    .stat-number {
        font-size: 2rem;
    }

    .values-section {
        padding: 30px 20px;
    }

    .values-grid {
        gap: 25px;
    }

    .value-icon {
        width: 65px;
        height: 65px;
        font-size: 1.5rem;
    }

    /* Distinction Section Responsive */
    .distinction-section {
        padding: 40px 25px;
        margin-bottom: 40px;
    }

    .distinction-icon {
        width: 70px;
        height: 70px;
    }

    .distinction-icon i {
        font-size: 2rem;
    }

    .distinction-title {
        font-size: 1.6rem;
    }

    /* Works Section Responsive - Tablet */
    .works-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: repeat(3, 250px);
        gap: 20px;
    }

    .work-large {
        grid-column: span 2;
        grid-row: span 1;
    }

    .work-wide {
        grid-column: span 2;
    }

    .work-overlay {
        padding: 20px;
    }

    .work-content h3 {
        font-size: 1.2rem;
    }

    .work-content p {
        font-size: 0.85rem;
    }

    .distinction-text {
        font-size: 1rem;
        line-height: 2;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
    }

    .social-links {
        justify-content: center;
    }

    .footer-contact li {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    :root {
        --section-padding: 60px;
    }

    .hero {
        padding: 100px 15px 60px;
        min-height: 90vh;
    }

    /* Mobile Hero Background Adjustments */
    .hero-bg-image {
        background-position: 65% center;
        animation: kenBurnsMobile 25s ease-in-out infinite alternate;
    }

    @keyframes kenBurnsMobile {
        0% {
            transform: scale(1.3) translate(5%, 0);
        }
        100% {
            transform: scale(1.45) translate(3%, -2%);
        }
    }

    /* Stronger overlay for mobile text readability */
    .hero::before {
        background: linear-gradient(
            180deg,
            rgba(250, 248, 245, 0.92) 0%,
            rgba(250, 248, 245, 0.85) 40%,
            rgba(250, 248, 245, 0.95) 100%
        );
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .btn {
        width: 100%;
        max-width: 280px;
        justify-content: center;
    }

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

    .about-card {
        padding: 30px 25px;
    }

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

    .service-content {
        padding: 25px;
    }

    .cta-content {
        padding: 0 15px;
    }

    .btn-large {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }

    /* Works Section Responsive - Mobile */
    .works-grid {
        grid-template-columns: 1fr;
        grid-template-rows: repeat(4, 280px);
        gap: 15px;
    }

    .work-large,
    .work-wide {
        grid-column: span 1;
        grid-row: span 1;
    }

    .work-overlay {
        opacity: 1;
        background: linear-gradient(
            to top,
            rgba(139, 90, 43, 0.9) 0%,
            rgba(139, 90, 43, 0.5) 50%,
            transparent 100%
        );
    }

    .work-content {
        transform: translateY(0);
    }

    .work-content h3 {
        font-size: 1.1rem;
    }

    .work-content p {
        font-size: 0.8rem;
    }

    .work-link {
        padding: 8px 15px;
        font-size: 0.8rem;
    }

    /* Developer Credit Mobile */
    .credit-link {
        font-size: 0.75rem;
        gap: 5px;
    }

    .heart-icon {
        font-size: 0.9rem;
    }
}

/* ========================================
   ANIMATIONS & EFFECTS
   ======================================== */
[data-aos] {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

[data-aos].aos-animate {
    opacity: 1;
    transform: translateY(0);
}

[data-aos="fade-down"] {
    transform: translateY(-30px);
}

[data-aos="zoom-in"] {
    transform: scale(0.9);
}

[data-aos="zoom-in"].aos-animate {
    transform: scale(1);
}

/* Smooth scrolling for all browsers */
@supports not (scroll-behavior: smooth) {
    html {
        scroll-behavior: auto;
    }
}

/* Selection Color */
::selection {
    background: var(--copper-light);
    color: white;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--bg-secondary);
}

::-webkit-scrollbar-thumb {
    background: var(--gradient-primary);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--copper-dark);
}
