@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;700&family=Playfair+Display:ital,wght@0,400..900;1,400..900&family=Satisfy&display=swap');

:root {
    --primary: #ee4542;
    --secondary: #fff6cc;
    --text-dark: #1a1a1a;
    --text-light: #ffffff;
    --transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

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

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--secondary);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Premium Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

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

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

/* Header & Nav */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 30px 80px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    transition: var(--transition);
    background: #ee4542;
}

header.scrolled {
    background: #ee4542;
    padding: 20px 80px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.logo-container {
    padding: 5px 0;
    display: flex;
    align-items: center;
    transition: var(--transition);
}

.logo-container:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 20px rgba(255, 80, 80, 0.3);
}

.logo img {
    height: 55px;
    width: auto;
}

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

nav a {
    text-decoration: none;
    color: var(--text-light);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 2px;
    position: relative;
    padding-bottom: 5px;
}

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

nav a:hover::after {
    width: 100%;
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 60px 20px 0;
    background: linear-gradient(rgba(255, 246, 204, 0.8), rgba(255, 246, 204, 0.8)), url('background.png') no-repeat center center;
    background-size: cover;
    position: relative;
    overflow: hidden;
}

.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('bg_pattern.png');
    background-size: cover;
    background-position: center;
    opacity: 0.05;
    z-index: 0;
    pointer-events: none;
    display: none; /* Removed pattern as background.png is now used */
}

.hero * {
    position: relative;
    z-index: 1;
}

.hero h1 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(4rem, 15vw, 8rem);
    font-weight: 700;
    color: var(--primary);
    line-height: 0.9;
    margin-bottom: 30px;
    letter-spacing: -1px;
    opacity: 0;
    transform: translateY(40px);
    animation: fadeInUp 1.2s cubic-bezier(0.165, 0.84, 0.44, 1) forwards 0.3s;
}

.hero p {
    font-size: 1.2rem;
    font-weight: 300;
    color: #666;
    max-width: 700px;
    margin-bottom: 100px;
    letter-spacing: 1px;
    opacity: 0;
    transform: translateY(40px);
    animation: fadeInUp 1.2s cubic-bezier(0.165, 0.84, 0.44, 1) forwards 0.5s;
}

.btn {
    padding: 18px 45px;
    background: var(--primary);
    color: var(--text-light);
    text-decoration: none;
    border-radius: 100px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.9rem;
    transition: var(--transition);
    opacity: 0;
    transform: translateY(40px);
    animation: fadeInUp 1.2s cubic-bezier(0.165, 0.84, 0.44, 1) forwards 0.7s;
    box-shadow: 0 15px 30px rgba(255, 80, 80, 0.3);
}

.btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(255, 80, 80, 0.4);
    background: #ff3b3b;
}

/* Section Divider */
.section-divider {
    width: 100%;
    height: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    z-index: 100;
}

.section-divider img {
    max-width: 140px;
    height: auto;
    opacity: 1;
    /* Since the div has 0 height, the image will naturally center on it */
}

/* Sections */
section {
    padding: 120px 10%;
    position: relative;
    overflow: visible; /* Prevents dividers from being clipped */
}

.section-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 60px;
    color: var(--primary);
    letter-spacing: -1px;
}

/* About Section */
.about-content {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 60px;
    align-items: center;
}

.about-image {
    max-width: 420px;
    justify-self: center;
}

.about-image img {
    width: 100%;
    border-radius: 30px;
    box-shadow: 0 30px 60px rgba(0,0,0,0.1);
    transition: var(--transition);
}

.about-image img:hover {
    transform: scale(1.02);
}

.about-text p {
    font-size: 1.15rem;
    line-height: 1.8;
    color: #444;
}

@media (max-width: 992px) {
    .about-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

/* Portfolio Grid */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
}

.portfolio-item {
    position: relative;
    border-radius: 30px;
    overflow: hidden;
    height: 500px;
    background: #f0f0f0;
    transition: var(--transition);
    cursor: pointer;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    display: block;
    text-decoration: none;
}

.portfolio-item:hover {
    transform: translateY(-15px);
    box-shadow: 0 30px 60px rgba(0,0,0,0.1);
}

.portfolio-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8); /* 80% opacity black overlay */
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: var(--transition);
    padding: 20px;
}

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

.portfolio-overlay h3 {
    color: #fff;
    font-size: 1.5rem;
    text-align: center;
    transform: translateY(20px);
    transition: var(--transition);
}

.portfolio-item:hover .portfolio-overlay h3 {
    transform: translateY(0);
}

#services, #contact {
    background-color: var(--primary);
    color: var(--text-light);
}

#services .section-title, #contact .section-title {
    color: var(--secondary);
}

#contact-form input, #contact-form textarea {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

#contact-form input::placeholder, #contact-form textarea::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.btn-alt {
    background: var(--secondary) !important;
    color: var(--primary) !important;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1) !important;
}

.btn-alt:hover {
    background: #fff !important;
    transform: translateY(-5px);
}

/* Services Section */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
}

.service-card {
    padding: 40px;
    background: #fff;
    border-radius: 20px;
    transition: var(--transition);
    border: 1px solid rgba(255, 80, 80, 0.05);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(255, 80, 80, 0.05);
}

.service-card h3 {
    color: var(--primary);
    margin-bottom: 15px;
    font-size: 1.5rem;
}

.service-card p {
    color: #666;
    font-size: 0.95rem;
}

/* Footer */
footer {
    padding: 50px 10%;
    text-align: center;
    background: var(--secondary);
    border-top: 1px solid rgba(0,0,0,0.05);
}

footer p {
    font-size: 0.8rem;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* Contact */
.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

input, textarea, select {
    padding: 15px;
    border: 2px solid transparent;
    background: #fff;
    border-radius: 10px;
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
}

input:focus, textarea:focus, select:focus {
    outline: none;
    border-color: var(--primary);
}

select {
    cursor: pointer;
    color: #666;
}

select option {
    color: #333;
}

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

/* Responsive */
@media (max-width: 768px) {
    header {
        padding: 20px;
    }
    .contact-container {
        grid-template-columns: 1fr;
    }
}
