:root {
    --primary-color: #e50914; /* Cinema Red */
    --bg-dark: #0f0f0f;
    --text-light: #ffffff;
    --accent: #b3b3b3;
}

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

body {
    /* This is the exact font stack Apple and modern tech companies use */
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-light);
    line-height: 1.6;
    scroll-behavior: smooth;
    /* This makes the font render much smoother and thinner on screens */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Make headings look a bit bolder and tighter */
h1, h2, h3 {
    letter-spacing: -0.5px;
    font-weight: 700;
}

/* Navigation */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 10%;
    position: fixed;
    width: 100%;
    z-index: 1000;
    background: rgba(0,0,0,0.8);
    backdrop-filter: blur(10px);
}

.logo {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    font-weight: bold;
    letter-spacing: 2px;
}

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

.nav-links { display: flex; list-style: none; }
.nav-links li { margin-left: 2rem; }
.nav-links a { 
    text-decoration: none; 
    color: var(--text-light); 
    font-size: 0.9rem;
    text-transform: uppercase;
    transition: 0.3s;
}

/* Hero Section */
.hero {
    height: 100vh;
    background: url('hero-bg.jpg') center/cover; /* Use a high-quality still here */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
}

.hero-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0.4), #0f0f0f);
}

.hero-content { position: relative; z-index: 1; }
.hero-content h1 { 
    font-family: 'Playfair Display', serif; 
    font-size: 4rem; 
    margin-bottom: 1rem;
}

.btn {
    padding: 0.8rem 2rem;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    margin: 0 10px;
    display: inline-block;
}

.primary { background: var(--primary-color); color: white; }
.secondary { border: 1px solid white; color: white; }

/* Project Grid */
.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    padding: 2rem 0;
}

/* Container for the projects */
.projects-section {
    padding: 80px 10%;
}

.section-title {
    margin-bottom: 40px;
    font-size: 2.5rem;
}

/* The Grid System */
.project-grid {
    display: grid;
    /* This creates 3 equal columns on desktop */
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); 
    gap: 30px; 
}

/* Making the card Square */
.project-card {
    position: relative;
    width: 100%;
    /* This trick ensures a perfect square 1:1 ratio */
    aspect-ratio: 1 / 1; 
    overflow: hidden;
    border-radius: 8px; /* Slightly rounded for a modern look */
    background-color: #222;
    transition: transform 0.4s ease;
}

.project-card:hover {
    transform: translateY(-10px);
}

.card-img {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: transform 0.6s ease;
}

.project-card:hover .card-img {
    transform: scale(1.1); /* Subtle zoom effect on hover */
}

/* Text Overlay */
.card-info {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 20px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.9));
    z-index: 2;
}

.card-info h3 {
    font-size: 1.2rem;
    margin-bottom: 5px;
}

.card-info p {
    font-size: 0.8rem;
    color: var(--accent);
    text-transform: uppercase;
}
/* Contact Section Styling */
.contact-section {
    padding: 100px 10%;
    background-color: #1a1a1a; /* Slightly lighter than the background for contrast */
}

.contact-intro {
    text-align: center;
    margin-bottom: 3rem;
    color: var(--accent);
}

.contact-container {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 4rem;
}

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

.contact-form input, 
.contact-form textarea {
    padding: 1rem;
    background: #0f0f0f;
    border: 1px solid #333;
    color: white;
    border-radius: 5px;
    font-family: inherit;
}

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

.contact-info h3 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
}

.contact-info p {
    margin-bottom: 2rem;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .contact-container {
        grid-template-columns: 1fr;
    }
/* Animation Base */
.reveal {
    opacity: 0;
    transition: all 1.2s cubic-bezier(0.215, 0.61, 0.355, 1); /* Apple-style smooth curve */
}

/* Slide from Left */
.reveal-left {
    transform: translateX(-50px);
}

/* Slide from Right */
.reveal-right {
    transform: translateX(50px);
}

/* Slide from Bottom (Good for grids) */
.reveal-bottom {
    transform: translateY(30px);
}

/* The Active State (Triggered by JS) */
.reveal.active {
    opacity: 1;
    transform: translateX(0) translateY(0);
}}
/* This centers the content and adds space on the sides */
.about-section {
    padding: 80px 10%; 
}

/* Optional: Make the stats look like a neat row instead of stacking tightly */
.about-text .stats {
    display: flex;
    gap: 40px;
    margin-top: 30px;
}
