/* styles.css */

/* ==================== CSS Reset & Base Styles ==================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Color Palette */
    --primary-dark: #1a1f2e;
    --primary-blue: #2563eb;
    --accent-blue: #3b82f6;
    --light-blue: #dbeafe;
    --text-dark: #1e293b;
    --text-light: #64748b;
    --bg-light: #f8fafc;
    --bg-white: #ffffff;
    --shadow: rgba(0, 0, 0, 0.1);
    
    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 3rem;
    --spacing-xl: 4rem;
    
    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
}

/* ==================== Typography ==================== */
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--bg-light);
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: var(--spacing-sm);
}

h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-blue) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    color: var(--primary-dark);
    position: relative;
    display: inline-block;
}

h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 4px;
    background: var(--primary-blue);
    border-radius: 2px;
}

p {
    font-size: 1.125rem;
    color: var(--text-light);
    margin-bottom: var(--spacing-sm);
}

/* ==================== Header & Navigation ==================== */
header {
    background: rgba(26, 31, 46, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px var(--shadow);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    transition: all var(--transition-normal);
}

nav {
    max-width: 1200px;
    margin: 0 auto;
    padding: var(--spacing-sm) var(--spacing-md);
}

nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: var(--spacing-lg);
}

nav a {
    color: var(--bg-white);
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    position: relative;
    transition: all var(--transition-normal);
    padding: var(--spacing-xs) 0;
}

nav a::before {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-blue);
    transition: width var(--transition-normal);
}

nav a:hover::before {
    width: 100%;
}

nav a:hover {
    color: var(--light-blue);
}

/* ==================== Main Content ==================== */
main {
    margin-top: 70px;
}

section {
    padding: var(--spacing-xl) 5%;
    max-width: 1200px;
    margin: 0 auto;
    animation: fadeInUp 0.8s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==================== Hero Section ==================== */
.hero {
    background: #f8f9fa;
    text-align: center;
    padding: 4rem 5%;
    min-height: 500px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero h1 {
    font-size: 4rem;
    font-weight: 800;
    color: #2d3436;
    margin-bottom: 1rem;
    text-shadow: 3px 3px 6px rgba(0,0,0,0.1);
    letter-spacing: -2px;
}

.hero p {
    font-size: 1.5rem;
    color: #2d3436;
    font-weight: 300;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
}

/* ==================== Gallery Section ==================== */
.gallery {
    background: transparent;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: var(--spacing-md);
    margin-top: var(--spacing-lg);
}

.gallery-item {
    background: var(--bg-white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px var(--shadow);
    transition: all var(--transition-normal);
    cursor: pointer;
    position: relative;
    aspect-ratio: 4/3;
}

.gallery-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, transparent 0%, rgba(0,0,0,0.7) 100%);
    opacity: 0;
    transition: opacity var(--transition-normal);
    z-index: 1;
}

.gallery-item:hover::before {
    opacity: 1;
}

.gallery-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px var(--shadow);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.gallery-item:hover img {
    transform: scale(1.1);
}

/* ==================== Services Section ==================== */
#services {
    background: var(--bg-white);
    border-radius: 20px;
    box-shadow: 0 10px 40px var(--shadow);
}

#services ul {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-md);
    list-style: none;
    margin-top: var(--spacing-lg);
}

#services li {
    background: var(--bg-light);
    padding: var(--spacing-md);
    border-radius: 10px;
    border-left: 4px solid var(--primary-blue);
    transition: all var(--transition-normal);
    font-size: 1.1rem;
    color: var(--text-dark);
}

#services li:hover {
    background: var(--light-blue);
    transform: translateX(10px);
    box-shadow: 0 5px 20px var(--shadow);
}

/* ==================== Contact Section ==================== */
#contact {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-blue) 100%);
    border-radius: 20px;
    color: var(--bg-white);
    text-align: center;
}

#contact h2 {
    color: var(--bg-white);
}

#contact h2::after {
    background: var(--bg-white);
    left: 50%;
    transform: translateX(-50%);
}

#contact p {
    color: var(--light-blue);
    font-size: 1.2rem;
    margin: var(--spacing-sm) 0;
}

/* ==================== Footer ==================== */
footer {
    background: var(--primary-dark);
    color: var(--bg-white);
    text-align: center;
    padding: var(--spacing-lg) 0;
    position: relative;
    overflow: hidden;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 200%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
    animation: footerShine 8s infinite;
}

@keyframes footerShine {
    0% { left: -100%; }
    100% { left: 100%; }
}

footer p {
    color: var(--light-blue);
    margin: var(--spacing-xs) 0;
}

/* ==================== Responsive Design ==================== */
@media (max-width: 768px) {
    nav ul {
        flex-direction: column;
        gap: var(--spacing-sm);
    }
    
    header {
        padding: var(--spacing-sm) 0;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: var(--spacing-sm);
    }
    
    section {
        padding: var(--spacing-lg) var(--spacing-sm);
    }
    
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    .hero p {
        font-size: 1.2rem;
    }
}

/* ==================== Loading Animation ==================== */
@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.5; }
    100% { opacity: 1; }
}

.loading {
    animation: pulse 1.5s infinite;
}

/* ==================== Smooth Scroll ==================== */
html {
    scroll-behavior: smooth;
}

/* ==================== Selection Styling ==================== */
::selection {
    background: var(--primary-blue);
    color: var(--bg-white);
}

::-moz-selection {
    background: var(--primary-blue);
    color: var(--bg-white);
}
/* ==================== Additional Enhancements ==================== */

/* Scroll to Top Button */
.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--primary-blue);
    color: var(--bg-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-normal);
    box-shadow: 0 5px 20px var(--shadow);
    z-index: 999;
}

.scroll-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.scroll-to-top:hover {
    background: var(--accent-blue);
    transform: translateY(-5px);
}

/* Gallery Lightbox Effect */
.gallery-item::after {
    content: 'View';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: var(--bg-white);
    font-size: 1.2rem;
    font-weight: 600;
    opacity: 0;
    transition: opacity var(--transition-normal);
    z-index: 2;
}

.gallery-item:hover::after {
    opacity: 1;
}

/* Form Styling (if you add a contact form later) */
input, textarea {
    width: 100%;
    padding: var(--spacing-sm);
    margin: var(--spacing-xs) 0;
    border: 2px solid var(--light-blue);
    border-radius: 8px;
    font-family: inherit;
    font-size: 1rem;
    transition: all var(--transition-normal);
}

input:focus, textarea:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

button {
    background: var(--primary-blue);
    color: var(--bg-white);
    padding: var(--spacing-sm) var(--spacing-md);
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-normal);
}

button:hover {
    background: var(--accent-blue);
    transform: translateY(-2px);
    box-shadow: 0 5px 20px var(--shadow);
}

/* Accessibility */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* Print Styles */
@media print {
    header, footer {
        display: none;
    }
    
    section {
        page-break-inside: avoid;
    }
    
    body {
        font-size: 12pt;
    }
}