/* --- ROOT VARIABLES & GLOBAL STYLES --- */
:root {
    --primary-accent: #9b00ff;
    --background: #0f0f0f;
    --text: #ffffff;
    --grey: #888;
    --border-grey: #2a2a2a;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
    background-color: var(--background);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
}

body.no-scroll {
    overflow: hidden;
}

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

h1, h2, h3 {
    font-family: "Clash Display Semibold", sans-serif;
    font-weight: 600;
    line-height: 1.2;
}

p {
    color: var(--grey);
    margin-bottom: 1rem;
}

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

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

.section {
    padding: 100px 0;
}

.section-title {
    font-size: 3rem;
    text-align: center;
    margin-bottom: 50px;
}

.text-center {
    text-align: center;
}


/* --- HEADER & NAVIGATION --- */
.header {
    position: sticky;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 30px 0;
    transition: all 0.4s ease;
}

.header.scrolled {
    padding: 15px 0;
    background-color: rgba(15, 15, 15, 0.8);
    backdrop-filter: blur(10px);
}

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

.logo {
    font-family: "Clash Display Semibold", sans-serif;
    font-size: 1.8rem;
    font-weight: 600;
}

.logo img {
    height: 28px; /* Adjust this value to your preferred size */
    width: auto;
    display: block;
    transition: height 0.3s ease; /* Adds smooth transition on scroll */
}

/* Optional: Makes logo slightly smaller when header is scrolled */
.header.scrolled .logo img {
    height: 25px;
}

.burger-menu {
    width: 30px;
    height: 22px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    cursor: pointer;
    z-index: 1002;
}

.burger-line {
    width: 100%;
    height: 2px;
    background-color: var(--text);
    transition: all 0.3s ease;
}

/* Burger animation */
.burger-menu.active .burger-line:nth-child(1) {
    transform: translateY(10px) rotate(45deg);
}
.burger-menu.active .burger-line:nth-child(2) {
    opacity: 0;
}
.burger-menu.active .burger-line:nth-child(3) {
    transform: translateY(-10px) rotate(-45deg);
}

.nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--background);
    z-index: 1001;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

.nav-overlay.open {
    opacity: 1;
    visibility: visible;
}

.nav-links {
    text-align: center;
}

.nav-links a {
    display: block;
    font-family: "Clash Display Semibold", sans-serif;
    font-size: 3rem;
    margin: 20px 0;
    color: var(--text);
    transition: transform 0.3s ease, color 0.3s ease;
}

.nav-links a:hover {
    transform: scale(1.1);
    color: var(--primary-accent);
}

/* --- BUTTONS --- */
.btn {
    display: inline-block;
    padding: 12px 30px;
    font-family: "Clash Display Semibold", sans-serif;
    background-color: var(--primary-accent);
    /* border: 2px solid var(--primary-accent); */
    border-radius: 3px;
    color: var(--text);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.btn:hover {
    color: var(--text);
    background: transparent;
    border: 2px solid var(--primary-accent);
    border-radius: 3px;
    /* box-shadow: 0 0 15px var(--primary-accent), 0 0 25px var(--primary-accent); */
    transform: scale(1.05);
}

/* --- HERO SECTION --- */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    text-align: center; /* This property centers the content */
    position: relative;
    background-image: url('assets/images/portfolio-bg.jpg');
    background-size: cover;
    background-position: center;
}

/* Dark overlay for text readability */
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(15, 15, 15, 0.6); /* Semi-transparent black */
    z-index: 1;
}

/* Ensure hero content is above the overlay */
.hero .container {
    position: relative;
    z-index: 2;
}

.hero-headline {
    font-size: 5rem;
    margin-bottom: 0.8rem;
}

.hero-tagline {
    font-size: 1.5rem;
    max-width: 700px;
    margin: 0 auto 30px auto;
    color: var(--grey);
}

/* About Section Styles */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.about-image {
    /* Set a maximum height for the container */
    max-height: 450px; /* Adjust this value as needed */
    overflow: hidden; /* Hides any part of the image that overflows */
}

.about-image img {
    width: 100%;
    height: 100%;
    /* Prevents the image from stretching or squishing */
    object-fit: cover; 
}

.about-content .section-title {
    text-align: left;
    margin-bottom: 20px;
}

/* Responsive stacking for the about section */
@media (max-width: 992px) {
    .about-grid {
        grid-template-columns: 1fr;
    }
    
    .about-content .section-title {
        text-align: center;
    }
}

/* --- SERVICES SECTION --- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service-card {
    border: 1px solid var(--border-grey);
    padding: 40px;
    text-align: center;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.service-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary-accent);
}

.service-card i {
    font-size: 2.5rem;
    color: var(--primary-accent);
    margin-bottom: 20px;
}

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

/* --- PORTFOLIO PREVIEW & GRID --- */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.portfolio-item {
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.portfolio-item img {
    width: 100%;
    display: block;
    transition: transform 0.4s ease;
}

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

.portfolio-hover {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 15, 15, 0.8);
    color: var(--text);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.4s ease;
}

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

.portfolio-hover h3 {
    font-size: 1.5rem;
    margin-bottom: 5px;
}
.portfolio-hover p {
    color: var(--grey);
}

/* --- ABOUT INTRO --- */
.about-intro {
    background-color: #121212;
}
.about-intro .container {
    max-width: 800px;
    text-align: center;
}
.about-intro p {
    font-size: 1.2rem;
    color: var(--text);
}


/* --- FOOTER --- */
.footer {
    padding: 50px 0;
    border-top: 1px solid var(--border-grey);
    text-align: center;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.footer-links a {
    margin: 0 15px;
}

.social-icons a {
    font-size: 1.5rem;
    margin: 0 10px;
}

.footer p {
    font-size: 0.9rem;
    color: var(--grey);
}

/* --- MODAL --- */
.modal {
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.7);
    display: none; /* Hidden by default */
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.modal.show {
    display: flex;
}

.modal-content {
    background-color: #1a1a1a;
    padding: 40px;
    border: 1px solid var(--border-grey);
    width: 100%;
    max-width: 500px;
    position: relative;
    text-align: center;
}

.modal-content.large {
    max-width: 800px;
    text-align: left;
}

.modal-content.large img {
    width: 100%;
    margin-bottom: 20px;
}


.modal-close {
    color: var(--grey);
    position: absolute;
    top: 15px;
    right: 25px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
}

.modal-close:hover {
    color: var(--text);
}

.modal-form {
    display: flex;
    margin-top: 20px;
}

.modal-form input {
    flex-grow: 1;
    padding: 12px;
    border: 1px solid var(--border-grey);
    background: var(--background);
    color: var(--text);
    font-size: 1rem;
}

.modal-form .btn {
    border-radius: 0;
    border-left: none;
}

/* --- FAQ PAGE --- */
.page-header {
    text-align: center;
    padding: 120px 0 60px;
}

.page-header h1 {
    font-size: 4rem;
}
.page-header p {
    font-size: 1.2rem;
    max-width: 600px;
    margin: 10px auto 0;
}

.accordion {
    max-width: 800px;
    margin: 0 auto;
}

.accordion-item {
    border-bottom: 1px solid var(--border-grey);
}

.accordion-header {
    width: 100%;
    background: transparent;
    border: none;
    padding: 25px 0;
    text-align: left;
    font-size: 1.3rem;
    font-family: "Clash Display Semibold", sans-serif;
    color: var(--text);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.accordion-header i {
    transition: transform 0.3s ease;
}

.accordion-item.active .accordion-header i {
    transform: rotate(45deg);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out, padding 0.4s ease-out;
}
.accordion-content p {
    padding: 0 0 25px 0;
}

/* --- CONTACT PAGE --- */
.contact-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 50px;
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--grey);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    background: transparent;
    border: 1px solid var(--border-grey);
    color: var(--text);
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

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

.contact-details h3 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-grey);
}

.contact-details p {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    color: var(--text);
}

.contact-details p i {
    color: var(--primary-accent);
    font-size: 1.2rem;
}

.map-placeholder {
    height: 200px;
    background-color: #1a1a1a;
    border: 1px solid var(--border-grey);
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--grey);
    margin-top: 30px;
}

/* --- RESPONSIVENESS --- */
@media (max-width: 992px) {
    .hero .hero-headline { font-size: 4rem; }
    .hero-headline { font-size: 4rem; }
    .page-header h1 { font-size: 3rem; }
    .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .section { padding: 80px 0; }
    .section-title { font-size: 2.5rem; }
    .hero-headline { font-size: 3rem; }
    .hero-tagline { font-size: 1.2rem; }
    .nav-links a { font-size: 2.5rem; }
    .footer-content { flex-direction: column; gap: 30px; }
}

@media (max-width: 480px) {
    .hero-headline { font-size: 2.5rem; }
    .portfolio-grid { grid-template-columns: 1fr; }
    .service-card { padding: 30px; }
}