/* ========================================================================= */
/*  Interiéry Gamis - Modern CSS Design System
/*  Author: Antigravity AI
/* ========================================================================= */

/* --- Custom Variables --- */
:root {
    --primary: #009EE3;
    --primary-light: #38bdf8;
    --primary-dark: #0284c7;
    --primary-gradient: linear-gradient(135deg, #009EE3 0%, #00b4d8 100%);
    --primary-glow: rgba(0, 158, 227, 0.15);
    --dark: #0f172a;
    --dark-light: #1e293b;
    --light: #f8fafc;
    --white: #ffffff;
    
    --text: #334155;
    --text-light: #64748b;
    --text-white: #ffffff;
    
    --font-heading: 'Plus Jakarta Sans', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 25px -5px rgba(0, 0, 0, 0.08), 0 8px 10px -6px rgba(0, 0, 0, 0.08);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 30px;
    
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* --- Reset & Global --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

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

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--dark);
    font-weight: 700;
    line-height: 1.25;
}

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

ul, ol {
    list-style: none;
}

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

/* --- Container --- */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

section {
    padding: 6rem 0;
}

.sec-title {
    text-align: center;
    margin-bottom: 4.5rem;
    position: relative;
}

.sec-title h2 {
    font-size: 2.25rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1rem;
    display: inline-block;
    position: relative;
    padding-bottom: 1rem;
}

.sec-title h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: var(--primary-gradient);
    border-radius: 2px;
}

.sec-title p {
    color: var(--text-light);
    font-size: 1.125rem;
    max-width: 650px;
    margin: 0 auto;
}

.sec-title.white h2 {
    color: var(--text-white);
}

.sec-title.white p {
    color: rgba(255, 255, 255, 0.8);
}

.sec-title.white h2::after {
    background: var(--white);
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.875rem 2.25rem;
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition);
    border: none;
    outline: none;
}

.btn-blue {
    background: var(--primary-gradient);
    color: var(--text-white);
    box-shadow: 0 4px 12px rgba(0, 158, 227, 0.25);
}

.btn-blue:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 158, 227, 0.4);
    filter: brightness(1.05);
}

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

.btn-border:hover {
    background: var(--white);
    color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 255, 255, 0.2);
}

/* --- Preloader --- */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: var(--white);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.loader-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(0, 158, 227, 0.1);
    border-top: 4px solid var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.loader-logo {
    font-family: var(--font-heading);
    font-weight: 800;
    color: var(--dark);
    font-size: 1.5rem;
    letter-spacing: 1px;
}

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

/* --- Header & Navigation --- */
#navigation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 1.5rem 0;
    transition: var(--transition-slow);
    background: transparent;
}

#navigation.scrolled {
    padding: 0.875rem 0;
    background: rgba(15, 23, 42, 0.9);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

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

h1.navbar-brand {
    font-size: 1.5rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

h1.navbar-brand a {
    color: var(--text-white);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

h1.navbar-brand span {
    color: var(--primary);
}

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

.nav-menu a {
    color: rgba(255, 255, 255, 0.85);
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 0.5rem 0;
    position: relative;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--primary-light);
}

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

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

/* Hamburger menu toggle */
.nav-toggle {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1100;
}

.nav-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--text-white);
    margin: 5px 0;
    transition: var(--transition);
    border-radius: 2px;
}

/* --- Hero Slider --- */
#home-slider {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    background-color: var(--dark);
}

.slider-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    z-index: 1;
    transition: opacity 1.2s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
}

.slide.active {
    opacity: 1;
    z-index: 2;
}

.slide-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.slide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.6) 0%, rgba(15, 23, 42, 0.8) 100%);
    z-index: 2;
}

.slide-content {
    position: relative;
    z-index: 3;
    text-align: center;
    color: var(--text-white);
    max-width: 800px;
    padding: 0 1.5rem;
}

.slide-content h2 {
    color: var(--text-white);
    font-size: 3.5rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 1.25rem;
    transform: translateY(30px);
    opacity: 0;
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.3s;
}

.slide-content span {
    display: block;
    font-size: 1.5rem;
    color: var(--primary-light);
    margin-bottom: 2.5rem;
    font-weight: 500;
    transform: translateY(30px);
    opacity: 0;
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.5s;
}

.slide-content .btn {
    transform: translateY(30px);
    opacity: 0;
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.7s;
}

.slide.active .slide-content h2,
.slide.active .slide-content span,
.slide.active .slide-content .btn {
    transform: translateY(0);
    opacity: 1;
}

/* Slider Controls */
.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: var(--text-white);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
}

.slider-arrow:hover {
    background: var(--primary);
    border-color: var(--primary);
    box-shadow: 0 0 15px rgba(0, 158, 227, 0.5);
}

.slider-arrow-prev { left: 2rem; }
.slider-arrow-next { right: 2rem; }

.slider-dots {
    position: absolute;
    bottom: 2.5rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    gap: 0.75rem;
}

.slider-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: var(--transition);
}

.slider-dot.active {
    background: var(--primary);
    transform: scale(1.2);
    box-shadow: 0 0 8px rgba(0, 158, 227, 0.6);
}

/* --- Services Section --- */
#service {
    background-color: var(--light);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.service-card {
    background: var(--white);
    padding: 3rem 1.75rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(0, 158, 227, 0.03);
    text-align: center;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

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

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(0, 158, 227, 0.1);
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-icon-wrapper {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--primary-glow);
    color: var(--primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2rem;
    font-size: 2rem;
    transition: var(--transition);
}

.service-card:hover .service-icon-wrapper {
    background: var(--primary-gradient);
    color: var(--text-white);
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 6px 15px rgba(0, 158, 227, 0.3);
}

.service-card h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.service-card p {
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* --- About Page & Section --- */
#about {
    background-color: var(--white);
}

.about-row {
    display: grid;
    grid-template-columns: 5fr 6fr;
    gap: 4rem;
    align-items: center;
}

.about-block-left {
    background: var(--light);
    border-radius: var(--radius-lg);
    padding: 3rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(0, 158, 227, 0.05);
}

.about-block-left h3 {
    font-size: 1.75rem;
    margin-bottom: 2rem;
    position: relative;
    padding-bottom: 0.75rem;
}

.about-block-left h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: var(--primary);
}

.about-carousel {
    position: relative;
    overflow: hidden;
}

.about-carousel-track {
    display: flex;
    transition: var(--transition-slow);
}

.about-carousel-item {
    flex: 0 0 100%;
    width: 100%;
}

.about-carousel-item p {
    color: var(--text-light);
    font-size: 1.05rem;
    line-height: 1.75;
}

.about-carousel-dots {
    display: flex;
    gap: 0.5rem;
    margin-top: 2rem;
}

.about-carousel-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(0, 158, 227, 0.2);
    cursor: pointer;
    transition: var(--transition);
}

.about-carousel-dot.active {
    background: var(--primary);
    transform: scale(1.2);
    width: 18px;
    border-radius: 4px;
}

.about-block-right {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.about-block-right h3 {
    font-size: 2rem;
    color: var(--dark);
}

.about-profile {
    display: flex;
    gap: 2rem;
    align-items: center;
    background: var(--light);
    padding: 2rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

.about-profile img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: var(--shadow-md);
    border: 3px solid var(--white);
    flex-shrink: 0;
}

.about-profile p {
    color: var(--text);
    font-size: 1rem;
    line-height: 1.6;
}

/* --- Portfolio Page & List --- */
#portfolio {
    background-color: var(--light);
}

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

.portfolio-card {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--white);
    box-shadow: var(--shadow-sm);
    aspect-ratio: 4 / 3;
    cursor: pointer;
    transition: var(--transition);
}

.portfolio-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-slow);
}

.portfolio-card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(15, 23, 42, 0.9) 0%, rgba(15, 23, 42, 0.4) 60%, transparent 100%);
    opacity: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 2rem;
    transition: var(--transition);
    z-index: 2;
}

.portfolio-card-content {
    transform: translateY(20px);
    transition: var(--transition);
    color: var(--text-white);
}

.portfolio-card-content h3 {
    color: var(--text-white);
    font-size: 1.35rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.portfolio-card-content p {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 1.25rem;
}

.portfolio-card-actions {
    display: flex;
    gap: 0.75rem;
}

.portfolio-action-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--primary);
    color: var(--text-white);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    border: none;
    cursor: pointer;
}

.portfolio-action-btn:hover {
    background: var(--primary-light);
    transform: scale(1.1);
}

/* Hover States */
.portfolio-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

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

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

.portfolio-card:hover .portfolio-card-content {
    transform: translateY(0);
}

/* --- Portfolio Filters --- */
.portfolio-filters-wrapper {
    text-align: center;
    width: 100%;
    margin-bottom: 3.5rem;
}

.portfolio-filters {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    background: #f1f5f9; /* Modern segment container bg */
    border-radius: 100px;
    padding: 0.375rem;
    border: 1px solid rgba(15, 23, 42, 0.04);
    flex-wrap: wrap;
    gap: 0.25rem;
    max-width: fit-content;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.03);
}

.filter-btn {
    background: transparent;
    border: none;
    outline: none;
    padding: 0.65rem 1.6rem;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-light);
    cursor: pointer;
    border-radius: 100px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    -webkit-appearance: none;
    appearance: none;
}

.filter-btn:hover {
    color: var(--dark);
}

.filter-btn.active {
    background: var(--primary-gradient);
    color: var(--text-white);
    box-shadow: 0 4px 12px rgba(0, 158, 227, 0.25);
    transform: scale(1.02);
}

/* Card entry & exit animations */
@keyframes cardFadeIn {
    0% {
        opacity: 0;
        transform: scale(0.96) translateY(15px);
    }
    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

@keyframes cardFadeOut {
    0% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
    100% {
        opacity: 0;
        transform: scale(0.96) translateY(15px);
    }
}

.portfolio-card.anim-fade-in {
    animation: cardFadeIn 0.45s cubic-bezier(0.34, 1.56, 0.64, 1) forwards; /* Smooth spring back-out animation */
}

.portfolio-card.anim-fade-out {
    animation: cardFadeOut 0.25s cubic-bezier(0.4, 0, 1, 1) forwards;
}

/* --- Lightbox Modal --- */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(15, 23, 42, 0.95);
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.lightbox.active {
    display: flex;
    opacity: 1;
}

.lightbox-content {
    position: relative;
    max-width: 85%;
    max-height: 80%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.lightbox-img {
    max-width: 100%;
    max-height: 75vh;
    object-fit: contain;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-xl);
    border: 4px solid var(--white);
    transform: scale(0.95);
    transition: transform 0.4s ease;
}

.lightbox.active .lightbox-img {
    transform: scale(1);
}

.lightbox-caption {
    color: var(--text-white);
    margin-top: 1.5rem;
    text-align: center;
    max-width: 600px;
}

.lightbox-caption h3 {
    color: var(--text-white);
    font-size: 1.5rem;
    margin-bottom: 0.25rem;
}

.lightbox-caption p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1rem;
}

.lightbox-close {
    position: absolute;
    top: 2rem;
    right: 2rem;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: var(--text-white);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    cursor: pointer;
    transition: var(--transition);
}

.lightbox-close:hover {
    background: var(--primary);
    transform: rotate(90deg);
}

.lightbox-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-white);
    border: none;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    cursor: pointer;
    transition: var(--transition);
}

.lightbox-arrow:hover {
    background: var(--primary);
    transform: translateY(-50%) scale(1.1);
}

.lightbox-arrow-prev { left: 2rem; }
.lightbox-arrow-next { right: 2rem; }

/* --- Social Section --- */
#social {
    background-size: cover;
    background-position: center;
    position: relative;
    padding: 8rem 0;
}

.social-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.82);
    z-index: 1;
}

#social .container {
    position: relative;
    z-index: 2;
}

.social-buttons {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-top: 3.5rem;
}

.social-btn-item a {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: var(--text-white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(4px);
    transition: var(--transition);
}

.social-btn-item a:hover {
    border-color: var(--primary);
    background: var(--primary-gradient);
    transform: translateY(-8px);
    box-shadow: 0 10px 25px rgba(0, 158, 227, 0.4);
}

/* --- Contact Page --- */
#contact {
    background-color: var(--white);
}

.contact-row {
    display: grid;
    grid-template-columns: 7fr 5fr;
    gap: 4rem;
}

.contact-form-wrapper {
    background: var(--light);
    padding: 3rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(0, 158, 227, 0.04);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-control {
    width: 100%;
    background: var(--white);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: var(--radius-md);
    padding: 1rem 1.25rem;
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--text);
    outline: none;
    transition: var(--transition);
}

.form-control::placeholder {
    color: var(--text-light);
    opacity: 0.7;
}

.form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(0, 158, 227, 0.12);
}

textarea.form-control {
    min-height: 180px;
    resize: vertical;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
    justify-content: center;
}

.contact-details h3 {
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
}

.contact-info-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-info-item {
    display: flex;
    align-items: flex-start;
    gap: 1.25rem;
}

.contact-info-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--primary-glow);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    flex-shrink: 0;
}

.contact-info-text h4 {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.contact-info-text p {
    color: var(--text-light);
    font-size: 1rem;
}

/* --- Footer --- */
#footer {
    background-color: var(--dark);
    padding: 5rem 0;
    color: rgba(255, 255, 255, 0.6);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-layout {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2.5rem;
    text-align: center;
}

.footer-social-icons {
    display: flex;
    gap: 1.5rem;
}

.footer-social-icons a {
    color: rgba(255, 255, 255, 0.5);
    font-size: 1.5rem;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
}

.footer-social-icons a:hover {
    color: var(--text-white);
    background: var(--primary-gradient);
    border-color: var(--primary);
    transform: translateY(-4px);
    box-shadow: 0 5px 15px rgba(0, 158, 227, 0.3);
}

.footer-layout p {
    font-size: 0.9rem;
    letter-spacing: 0.5px;
}

/* --- Admin Panel --- */
.admin-body {
    background-color: #f1f5f9;
    font-family: var(--font-body);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 2rem;
}

.admin-container {
    width: 100%;
    max-width: 550px;
    background: var(--white);
    padding: 3rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    border: 1px solid rgba(0, 0, 0, 0.03);
}

.admin-container h2 {
    text-align: center;
    font-size: 1.75rem;
    margin-bottom: 2rem;
    font-weight: 800;
    color: var(--dark);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.admin-form label {
    display: block;
    margin-top: 1.25rem;
    font-weight: 600;
    font-family: var(--font-heading);
    font-size: 0.95rem;
    color: var(--dark-light);
}

.admin-form input[type="text"],
.admin-form input[type="password"],
.admin-form select,
.admin-form textarea {
    width: 100%;
    padding: 0.875rem 1.15rem;
    margin-top: 0.5rem;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: var(--radius-md);
    font-family: var(--font-body);
    font-size: 0.95rem;
    outline: none;
    transition: var(--transition);
    background: var(--white);
}

.admin-form input[type="text"]:focus,
.admin-form input[type="password"]:focus,
.admin-form select:focus,
.admin-form textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(0, 158, 227, 0.1);
}

.admin-form input[type="file"] {
    margin-top: 0.5rem;
    font-size: 0.95rem;
}

.admin-preview {
    margin-top: 1.5rem;
    text-align: center;
}

.admin-preview img {
    max-width: 100%;
    max-height: 250px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    border: 2px solid var(--white);
    object-fit: cover;
}

.admin-msg {
    margin-top: 1.5rem;
    text-align: center;
    font-weight: 700;
    font-size: 1rem;
}

/* --- Responsive Media Queries --- */

/* Responsive Navigation & Grid Layouts (Tablet & Mobile) */
@media (max-width: 991px) {
    .nav-toggle {
        display: block;
        padding: 1rem; /* Large touch target for mobile fingers */
        margin-right: -1rem;
    }
    
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: rgba(15, 23, 42, 0.92); /* Glassmorphism background for mobile menu */
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 1.5rem;
        padding: 2rem;
        transition: var(--transition-slow);
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.3);
        z-index: 1050;
    }
    
    .nav-menu.active {
        right: 0;
    }
    
    .nav-menu a {
        font-size: 1.1rem;
        padding: 0.75rem 2rem;
        width: 100%;
        text-align: center;
        display: block;
        border-radius: var(--radius-sm);
    }
    
    .nav-menu a:active {
        background: rgba(255, 255, 255, 0.05);
    }
    
    .nav-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(6px, 6px);
        background-color: var(--text-white);
    }
    
    .nav-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .nav-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
        background-color: var(--text-white);
    }
    
    /* Layout shifts */
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    .about-row {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .portfolio-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    /* UX Improvement: make card overlays readable on touch screens without hover */
    .portfolio-card-overlay {
        opacity: 1;
        background: linear-gradient(to top, rgba(15, 23, 42, 0.85) 0%, rgba(15, 23, 42, 0.15) 70%, transparent 100%);
        padding: 1.25rem;
    }
    
    .portfolio-card-content {
        transform: translateY(0);
    }
    
    .portfolio-card-content h3 {
        font-size: 1.15rem;
    }
    
    .portfolio-card-content p {
        font-size: 0.85rem;
        margin-bottom: 0.75rem;
    }
    
    .portfolio-action-btn {
        width: 38px;
        height: 38px;
        font-size: 0.9rem;
    }
    
    .contact-row {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
}

/* Tablets (Portrait) */
@media (max-width: 768px) {
    section {
        padding: 4rem 0;
    }
    
    .sec-title {
        margin-bottom: 3rem;
    }
    
    .sec-title h2 {
        font-size: 1.85rem;
    }
    
    /* Hide slider arrow controls on mobile/tablets to prevent screen cluttering and accidental taps */
    .slider-arrow {
        display: none;
    }
    
    .slider-dots {
        bottom: 2rem;
    }
    
    /* Larger dots for easy fingers tapping */
    .slider-dot {
        width: 14px;
        height: 14px;
        margin: 0 3px;
    }
    
    .slide-content h2 {
        font-size: 2.25rem;
    }
    
    .slide-content span {
        font-size: 1.15rem;
        margin-bottom: 2rem;
    }
    
    .about-block-left {
        padding: 2.25rem 1.5rem;
    }
    
    .about-profile {
        padding: 1.5rem;
        gap: 1.5rem;
    }
}

/* Small Mobile Screens */
@media (max-width: 576px) {
    section {
        padding: 3rem 0;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }
    
    .portfolio-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }
    
    .slide-content h2 {
        font-size: 1.75rem;
    }
    
    .slide-content span {
        font-size: 1rem;
        margin-bottom: 1.75rem;
    }
    
    .social-buttons {
        gap: 1.5rem;
        margin-top: 2.5rem;
    }
    
    .social-btn-item a {
        width: 70px;
        height: 70px;
        font-size: 1.5rem;
    }
    
    .contact-form-wrapper {
        padding: 2rem 1.25rem;
    }
    
    .about-profile {
        flex-direction: column;
        text-align: center;
    }
    
    .about-profile img {
        margin: 0 auto;
    }
    
    .admin-container {
        padding: 2rem 1.25rem;
    }
}