@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@400;600;700&family=Montserrat:wght@300;400;500&display=swap');

:root {
    --primary-color: #E63946; /* Premium Red */
    --bg-color: #0a0a0a; /* Deep Black */
    --surface-color: #1a1a1a; /* Lighter Black */
    --text-primary: #ffffff;
    --text-secondary: #cccccc;
    --font-heading: 'Cormorant Garamond', serif;
    --font-body: 'Montserrat', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
}

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

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

h1, h2, h3, h4 {
    font-family: var(--font-heading);
    font-weight: 700;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header & Nav */
header {
    background: rgba(10, 10, 10, 0.8);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: padding 0.3s ease;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 0;
}

.logo {
    font-size: 28px;
    font-weight: 700;
    font-family: var(--font-heading);
    letter-spacing: 3px;
    text-transform: uppercase;
}

.logo span {
    color: var(--primary-color);
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 40px;
}

.nav-links li a {
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 500;
    position: relative;
}

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

.nav-links li a:hover::after {
    width: 100%;
}

.lang-selector a {
    font-size: 13px;
    margin-left: 15px;
    color: var(--text-secondary);
    font-weight: 600;
}

.lang-selector a.active, .lang-selector a:hover {
    color: var(--primary-color);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: linear-gradient(to bottom, rgba(10,10,10,0.4), var(--bg-color)), url('../img/hero-bg.jpg') center/cover;
    background-color: #111; /* Fallback if no image */
    padding-top: 120px;
}

.hero .container {
    margin-bottom: 50px;
}

.hero h1 {
    font-size: 72px;
    margin-bottom: 20px;
    animation: fadeInUp 1s ease forwards;
    opacity: 0;
    transform: translateY(30px);
}

.hero p {
    font-size: 20px;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 40px;
    animation: fadeInUp 1s ease forwards 0.3s;
    opacity: 0;
    transform: translateY(30px);
}

.btn {
    display: inline-block;
    padding: 16px 45px;
    background-color: var(--primary-color);
    color: #fff;
    font-family: var(--font-heading);
    text-transform: uppercase;
    letter-spacing: 2px;
    border-radius: 4px;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    animation: fadeInUp 1s ease forwards 0.6s;
    opacity: 0;
    transform: translateY(30px);
    border: 1px solid var(--primary-color);
}

.btn:hover {
    background-color: transparent;
    color: var(--primary-color);
    box-shadow: 0 10px 30px rgba(230, 57, 70, 0.2);
}

/* Page Headers */
.page-header {
    padding: 150px 0 50px;
    text-align: center;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    margin-bottom: 50px;
}

.page-header h1 {
    font-size: 48px;
    color: var(--primary-color);
}

/* Portfolio Grid */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    padding: 20px 0;
}

.portfolio-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    background-color: var(--surface-color);
    aspect-ratio: 4/5;
}

.portfolio-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.portfolio-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.9), transparent);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 30px;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.portfolio-item:hover img {
    transform: scale(1.05);
}

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

.portfolio-title {
    font-size: 24px;
    margin-bottom: 10px;
}

.portfolio-category {
    color: var(--primary-color);
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Contact Form */
.contact-wrap {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 10px;
    font-family: var(--font-heading);
    letter-spacing: 1px;
    text-transform: uppercase;
    font-size: 12px;
    color: var(--text-secondary);
}

.form-control {
    width: 100%;
    padding: 15px;
    background-color: var(--surface-color);
    border: 1px solid rgba(255,255,255,0.1);
    color: #fff;
    font-family: var(--font-body);
    font-size: 16px;
    transition: border-color 0.3s ease;
    border-radius: 4px;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
}

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

/* Alerts */
.alert {
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 4px;
}
.alert-success {
    background-color: rgba(46, 204, 113, 0.1);
    color: #2ecc71;
    border: 1px solid rgba(46, 204, 113, 0.3);
}
.alert-error {
    background-color: rgba(230, 57, 70, 0.1);
    color: var(--primary-color);
    border: 1px solid rgba(230, 57, 70, 0.3);
}

/* Home Carousel */
.carousel-title {
    font-family: var(--font-heading);
    font-size: 36px;
    font-weight: 600;
    text-align: center;
    margin: 80px 0 20px;
    color: var(--text-primary);
    letter-spacing: 1px;
}

.home-carousel {
    width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 10px 0 50px;
    position: relative;
    -ms-overflow-style: none;
    scrollbar-width: none;
    cursor: grab;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
}

.home-carousel::-webkit-scrollbar {
    display: none;
}

.home-carousel:active {
    cursor: grabbing;
}

.carousel-track {
    display: flex;
    gap: 20px;
    width: max-content;
    padding: 0 20px; /* Padding on sides so it doesn't stick to screen edge */
}

.carousel-item {
    width: 250px;
    height: 250px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
    box-shadow: 0 10px 20px rgba(0,0,0,0.5);
    user-select: none;
    scroll-snap-align: center;
}

.carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
    pointer-events: none;
}

.carousel-item:hover img {
    transform: scale(1.08);
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mobile Menu & Hamburger */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 6px;
    z-index: 1001;
}

.hamburger span {
    width: 28px;
    height: 2px;
    background-color: var(--text-primary);
    transition: all 0.3s ease;
}

/* Responsive */
@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        right: -100%;
        top: 0;
        height: 100vh;
        background-color: rgba(10, 10, 10, 0.98);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        width: 100%;
        transition: right 0.5s ease;
        z-index: 1000;
        gap: 30px;
    }
    
    .nav-links.active {
        right: 0;
    }
    
    .hamburger {
        display: flex;
    }
    
    .hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 6px); }
    .hamburger.active span:nth-child(2) { opacity: 0; }
    .hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -6px); }

    .logo { font-size: 18px; letter-spacing: 1px; }
    .hero h1 { font-size: 32px; margin-bottom: 15px; }
    .hero p { font-size: 14px; padding: 0 15px; margin-bottom: 30px; }
    .btn { padding: 12px 30px; font-size: 13px; }
    
    .carousel-title { font-size: 26px; margin: 50px 0 15px; }
    .carousel-item { width: 200px; height: 200px; }
    
    .contact-wrap { grid-template-columns: 1fr; }
    .page-header { padding: 120px 0 30px; }
    .page-header h1 { font-size: 28px; }
    .portfolio-title { font-size: 20px; }
}
