/* Base & Typography */
/* General Sans */
@font-face {
    font-family: 'ArsenicaTrial';
    src: url('../fonts/ArsenicaTrial-Bold.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'ArsenicaTrial';
    src: url('../fonts/ArsenicaTrial-Medium.ttf') format('truetype');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

/* Recia */
@font-face {
    font-family: 'Recia';
    src: url('../fonts/Recia-Regular.woff2') format('woff2'),
         url('../fonts/Recia-Regular.woff') format('woff'),
         url('../fonts/Recia-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Recia';
    src: url('../fonts/Recia-Medium.woff2') format('woff2'),
         url('../fonts/Recia-Medium.woff') format('woff'),
         url('../fonts/Recia-Medium.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

/* Basic Styles */
:root {
    --background: #000000;
    --foreground: #ffffff;
    --text-color: #e0e0e0;
    --text-secondary: #999999;
    --accent: #EA1821;
    --border: #333333;
    --card-bg: #1d1d1d;
    --hover-bg: #252525;
    --overlay-bg: rgba(0,0,0,0.5);
}

body {
    font-family: "Recia", sans-serif;
    margin: 0;
    padding: 0;
    line-height: 1.4;
    color: var(--text-color);
    background-color: var(--background);
    -webkit-font-smoothing: antialiased;
    position: relative;
}

* {
    box-sizing: border-box;
}

h1, h2, h3, h4, h5, h6, p {
    margin: 0;
    padding: 0;
}

h1, h2, h3, h4, h5, h6 {
    font-family: "ArsenicaTrial", serif;
    font-style: normal;
}

h1 {
    font-size: 2.8rem;
    font-weight: normal;
    letter-spacing: -0.04em;
    line-height: 1.15;
    color: var(--foreground);
    margin-bottom: 1.5rem;
}

h2 {
    font-size: 2rem;
    font-weight: normal;
    letter-spacing: -0.03em;
    line-height: 1.2;
    color: var(--foreground);
    margin-bottom: 1.2rem;
}

h3 {
    font-size: 1.4rem;
    font-weight: normal;
    letter-spacing: -0.02em;
    line-height: 1.3;
    color: var(--foreground);
}

p {
    font-size: 1.12rem;
    line-height: 1.5;
    margin-bottom: 1.5rem;
    max-width: 800px;
}

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

a:hover {
    opacity: 0.8;
}

.container {
    max-width: 100%;
    width: 100%;
    margin: 0;
    padding: 0;
}

/* Layout */
header, section {
    padding: 80px 20px;
    max-width: 95%;
    margin: 0 auto;
}

.divider {
    height: 1px;
    background-color: var(--border);
    width: 100%;
    margin: 0 auto;
}

/* Page Overlay - for darkening effect */
.page-overlay {
    display: none;
	position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0,0,0,0);
    pointer-events: none;
    z-index: 90;
    transition: background-color 0.8s ease-out;
}

/* Navigation */
nav {
    position: fixed;
    top: 20px;
    left: 0;
    width: 100%;
    z-index: 100;
    mix-blend-mode: difference;
    padding: 0 20px;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 100%;
    margin: 0 auto;
}

/* Logo styling */
.nav-logo {
    font-size: 1.1rem;
    font-weight: 500;
    letter-spacing: -0.02em;
}

.nav-logo a {
    color: var(--foreground);
    text-decoration: none;
    position: relative;
    overflow: hidden;
    display: block;
    height: 20px;
}

.nav-logo a span {
    display: block;
    position: relative;
    transition: transform 0.3s ease-out;
}

.nav-logo a span:nth-child(1) {
    top: 0;
}

.nav-logo a span:nth-child(2) {
    position: absolute;
    top: 20px;
    left: 0;
}

.nav-logo a:hover span:nth-child(1) {
    transform: translateY(-20px);
}

.nav-logo a:hover span:nth-child(2) {
    transform: translateY(-20px);
}

/* Navigation links */
.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a {
    font-size: 1rem;
    font-weight: 500;
    color: var(--foreground);
    opacity: 0.9;
    position: relative;
    overflow: hidden;
    display: block;
    height: 20px;
}

.nav-links a span {
    display: block;
    position: relative;
    transition: transform 0.3s ease-out;
}

.nav-links a span:nth-child(1) {
    top: 0;
}

.nav-links a span:nth-child(2) {
    position: absolute;
    top: 20px;
    left: 0;
}

.nav-links a:hover span:nth-child(1) {
    transform: translateY(-20px);
}

.nav-links a:hover span:nth-child(2) {
    transform: translateY(-20px);
}

.nav-links a.active {
    color: var(--accent);
}

/* Hamburger Menu */
.hamburger-menu {
    display: none;
    cursor: pointer;
    z-index: 102;
}

.hamburger-icon {
    width: 30px;
    height: 20px;
    position: relative;
}

.hamburger-icon span {
    display: block;
    position: absolute;
    height: 2px;
    width: 100%;
    background: var(--foreground);
    border-radius: 9px;
    opacity: 1;
    transform: rotate(0deg);
    transition: .25s ease-in-out;
}

.hamburger-icon span:nth-child(1) {
    top: 0px;
}

.hamburger-icon span:nth-child(2) {
    top: 9px;
}

.hamburger-icon span:nth-child(3) {
    top: 18px;
}

.hamburger-icon.active span:nth-child(1) {
    top: 9px;
    transform: rotate(135deg);
}

.hamburger-icon.active span:nth-child(2) {
    opacity: 0;
    left: -60px;
}

.hamburger-icon.active span:nth-child(3) {
    top: 9px;
    transform: rotate(-135deg);
}

/* Hero Section - Home */
.hero {
    height: 100vh;
    width: 100%;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: flex-end; /* Changed from center to flex-end */
    align-items: flex-start;
    padding: 80px 20px 140px; /* Increased bottom padding to move content lower */
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
}

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

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 900px;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(18,18,18,0.2) 0%, rgba(18,18,18,0.3) 100%); /* Made much lighter */
    z-index: -1;
}

/* Increased font sizes for hero text */
.hero h1 {
    font-size: 4rem; /* Increased from 2.8rem */
    font-weight: normal;
    letter-spacing: -0.04em;
    line-height: 1.15;
    color: var(--foreground);
    margin-bottom: 1.5rem;
    animation: fadeUp 1s ease-out forwards;
    text-shadow: 2px 2px 10px rgba(0,0,0,0.5); /* Added shadow for better readability */
}

.hero p {
    font-size: 1.5rem; /* Increased from 1.12rem */
    line-height: 1.5;
    max-width: 600px;
    opacity: 0;
    animation: fadeUp 1s ease-out 0.2s forwards;
    text-shadow: 1px 1px 8px rgba(0,0,0,0.5); /* Added shadow for better readability */
}

/* Page Header - Inner pages */
.page-header {
    height: 50vh;
    min-height: 300px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding-top: 80px;
    position: relative;
    background-color: var(--card-bg);
}

.page-header-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
}

.page-header h1 {
    margin-bottom: 1rem;
    animation: fadeUp 1s ease-out forwards;
}

.page-header p {
    margin: 0 auto;
    opacity: 0;
    animation: fadeUp 1s ease-out 0.2s forwards;
}

/* Project Header - Project detail pages */
.project-header {
    height: 70vh;
    min-height: 400px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: flex-start;
    padding: 120px 20px 80px;
    position: relative;
    overflow: hidden;
}

.project-hero-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
}

.project-hero-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.project-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(18,18,18,1) 0%, rgba(18,18,18,0) 100%);
    z-index: -1;
}

.project-header-content {
    position: relative;
    z-index: 1;
    max-width: 100%;
    width: 100%;
    margin: 0 auto;
}

.project-header h1 {
    font-size: 3.5rem;
    margin-bottom: 0.5rem;
}

.project-subtitle {
    font-size: 1.5rem;
    color: var(--accent);
    margin-bottom: 0;
}

/* Call to Action */
.cta-button {
    display: inline-block;
    background-color: var(--foreground);
    color: var(--background);
    padding: 15px 55px; /* Made button slightly larger */
    border-radius: 48px;
    font-weight: 500;
    font-size: 1.2rem;
    margin-top: 1rem;
    transition: all 0.3s ease;
    opacity: 0;
    animation: fadeUp 1s ease-out 0.4s forwards;
}

.cta-button:hover {
    background-color: var(--accent);
    color: var(--foreground);
    transform: translateY(-2px);
}

/* Work Grid */
.work-grid, .more-projects-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* Creates exactly 2 columns */
    gap: 30px; /* Increased gap for more spacing */
    margin-top: 2rem;
}

/* Make the images/projects larger */
.work-grid > *, .more-projects-grid > * {
    height: 400px; /* Set a fixed height or adjust as needed */
    width: 100%; /* Take full width of grid cell */
}

.work-item {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    aspect-ratio: 16 / 10;
    background-color: var(--card-bg);
    transition: transform 0.3s ease;
}

.work-item:hover {
    transform: translateY(-5px);
}

.work-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.5s ease;
}

.work-item:hover img {
    transform: scale(1.03);
}

.work-info {
    position: absolute;
    bottom: 20px;
    left: 20px;
    right: 20px;
    color: var(--foreground);
    z-index: 2;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.work-item:hover .work-info {
    opacity: 1;
}

.work-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0) 50%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.bento-item:hover .bento-title,
.work-item:hover .work-title {
    color: var(--accent);
    transition: color 0.3s ease;
}

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

.work-title {
    font-size: 1.4rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
	  color: var(--accent);
    transition: color 0.3s ease;
}

.work-desc {
    font-size: 1rem;
    opacity: 0.8;
    margin: 0;
}

/* Services(What we Do) - Bento Box Layout */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 2rem;
    margin-bottom: 3rem;
}

/* Work-style hover animation for bento items */
.bento-item {
    background-color: var(--card-bg);
    border-radius: 15px;
    padding: 30px;
    position: relative;
    overflow: hidden;
    min-height: 180px;
    transition: transform 0.3s ease;
}

.bento-item:hover {
    transform: translateY(-5px);
}

.bento-title {
    font-size: 1.4rem;
    font-weight: 500;
    margin-bottom: 1rem;
    color: var(--accent);
    position: relative;
    z-index: 2;
}

.bento-desc {
    font-size: 0.9rem;
	  color: var(--text-color);
    line-height: 1.5;
    margin: 0;
    position: relative;
    z-index: 2;
}

.bento-icon {
    position: absolute;
    bottom: 20px;
    right: 20px;
    font-size: 3rem;
    color: var(--foreground);
    opacity: 0.1;
    
}

.bento-item:hover .bento-icon {
    opacity: 0.2;
}

/* Pricing info - Services Section */
.pricing-info {
    margin-top: 6rem; /* Increased margin to create space */
    padding-top: 1rem;
}

/* Team Section */
.team-section {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    margin-top: 2rem;
}

.team-member {
    flex: 1;
    min-width: 300px;
}

.team-image {
    width: 100%;
    aspect-ratio: 1/1;
    border-radius: 15px;
    object-fit: cover;
    margin-bottom: 1rem;
}

.team-name {
    font-size: 1.4rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.team-role {
    font-size: 1rem;
    color: var(--accent);
    margin-bottom: 1rem;
}

.team-social {
    display: flex;
    gap: 10px;
} 

.team-social a {
    color: var(--text-secondary);
}

.team-social a:hover {
    color: var(--accent);
}

/* Process Section */
.process-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 2rem;
}

.process-item {
    background-color: var(--card-bg);
    padding: 30px;
    border-radius: 10px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    min-height: 100px;
    z-index: 1;
}

.process-item:hover {
    background-color: var(--hover-bg);
    transform: translateY(-5px);
    z-index: 91; /* Above the overlay when hovered */
}

.process-item:hover ~ .page-overlay {
    background-color: var(--overlay-bg);
}

.process-item h3 {
    color: var(--accent);
    margin-bottom: 1rem;
    position: relative;
    z-index: 2;
}

.process-desc {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-height 0.5s ease, opacity 0.3s ease;
    position: relative;
    z-index: 2;
    margin: 0;
}

.process-item:hover .process-desc {
    max-height: 500px;
    opacity: 1;
}

.process-number {
    position: absolute;
    bottom: 20px;
    right: 20px;
    font-size: 3rem;
    font-weight: 700;
    color: var(--foreground);
    opacity: 0.1;
    transition: opacity 0.3s ease;
}

.process-item:hover .process-number {
    opacity: 0.2;
}

.section-intro {
    margin-bottom: 2rem;
    max-width: 900px;
}

/* Process Detail Section */
.process-detail-section {
    margin-top: 5rem;
}

.detail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 2rem;
}

.detail-item {
    padding: 20px 0;
}

.detail-item h3 {
    margin-bottom: 1rem;
    color: var(--accent);
}

/* Testimonials */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
    gap: 30px;
    margin-top: 2rem;
}

.testimonial {
    background-color: var(--card-bg);
    padding: 30px;
    border-radius: 10px;
}

.quote {
    font-size: 1.2rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.attribution {
    display: flex;
    flex-direction: column;
}

.client-name {
    font-weight: 600;
    margin-bottom: 0.3rem;
}

.client-role {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 0;
}

/* Project Details */
.project-details {
    padding: 40px 20px;
    max-width: 1200px;
    margin: 0 auto;
    border-bottom: 1px solid var(--border);
}

.project-info {
    display: flex;
    flex-wrap: wrap;
    gap: 60px;
}

.project-info-item h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
}

.project-info-item p {
    margin: 0;
    font-size: 1.2rem;
}

.project-overview, .project-approach, .project-results {
    padding: 80px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.project-goals {
    background-color: var(--card-bg);
    padding: 30px;
    border-radius: 10px;
    margin-top: 2rem;
}

.project-goals h3 {
    margin-bottom: 1rem;
}

.project-goals ul {
    padding-left: 20px;
}

.project-goals li {
    margin-bottom: 0.5rem;
}

.project-visual-full {
    width: 100%;
    margin: 0;
    overflow: hidden;
}

.project-visual-full img {
    width: 100%;
    height: auto;
    display: block;
}

.approach-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 2rem;
}

.approach-item {
    background-color: var(--card-bg);
    padding: 30px;
    border-radius: 10px;
}

.approach-item h3 {
    margin-bottom: 1rem;
    color: var(--accent);
}

.project-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    padding: 0 20px;
    max-width: 1200px;
    margin: 80px auto;
}

.gallery-item {
    overflow: hidden;
    border-radius: 10px;
}

.gallery-item img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
}

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

.video-container {
    margin-top: 2rem;
    width: 100%;
    aspect-ratio: 16 / 9;
    background-color: var(--card-bg);
    border-radius: 10px;
    overflow: hidden;
}

.video-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: var(--text-secondary);
}

.small {
    font-size: 0.8rem;
}

.results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 30px;
    margin: 2rem 0;
}

.result-item {
    background-color: var(--card-bg);
    padding: 30px;
    border-radius: 10px;
    text-align: center;
}

.result-item h3 {
    font-size: 2.5rem;
    color: var(--accent);
    margin-bottom: 1rem;
}

.project-testimonial {
    margin-top: 3rem;
}

#cta-section {
    text-align: center;
    padding: 80px 20px 100px;
}

#cta-section p {
    margin: 1rem auto;
}

/* Footer */
footer {
    padding: 60px 20px;
    max-width: 90%;
    margin: 0 auto;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
}

.footer-col h3 {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    color: var(--foreground);
}

.footer-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-col li {
    margin-bottom: 0.8rem;
}

.footer-col a {
    color: var(--text-secondary);
    transition: color 0.2s ease;
}

.footer-col a:hover {
    color: var(--accent);
}

.copyright {
    text-align: center;
    margin-top: 50px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Animations */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media (max-width: 1024px) {
    h1 {
        font-size: 2.5rem;
    }
    
    h2 {
        font-size: 1.8rem;
    }
    
    .work-grid, .more-projects-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    }
    
    .bento-grid {
        grid-template-columns: 1fr;
    }
    
    .project-gallery {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .hamburger-menu {
        display: block;
    }

    .nav-container {
        padding: 20px;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background-color: var(--background);
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 40px;
        transition: right 0.3s ease;
        z-index: 101;
        padding: 20px;
    }

    .nav-links.active {
        right: 0;
        box-shadow: -5px 0px 15px rgba(0,0,0,0.3);
    }

    /* Fix for mobile menu links */
    .nav-links a {
        font-size: 1.5rem;
        height: auto;
        padding: 10px;
        width: 100%;
        text-align: center;
    }
    
    .nav-links a span:nth-child(1) {
        position: relative;
        display: block;
    }
    
    .nav-links a span:nth-child(2) {
        display: none; /* Hide the second span in mobile view */
    }
    
    /* Make sure logo still looks good on mobile */
    .nav-logo a {
        height: auto;
    }
    
    .nav-logo a span:nth-child(1) {
        position: relative;
    }
    
    .nav-logo a span:nth-child(2) {
        display: none; /* Hide the second span for logo in mobile */
    }
    
    header, section {
        padding: 60px 20px;
    }
    
    h1 {
        font-size: 2.2rem;
    }
    
    h2 {
        font-size: 1.6rem;
    }
    
    .work-grid, .more-projects-grid {
        grid-template-columns: 1fr;
    }
    
    .process-grid {
        grid-template-columns: 1fr;
    }
    
    .project-gallery {
        grid-template-columns: 1fr;
    }
    
    .project-header h1 {
        font-size: 2.5rem;
    }
    
    .hero h1 {
        font-size: 3rem; /* Slightly reduced for mobile */
    }
    
    .hero p {
        font-size: 1.2rem; /* Slightly reduced for mobile */
    }
}

@media (max-width: 480px) {
    .project-info {
        gap: 30px;
    }
    
    .testimonials-grid {
        grid-template-columns: 1fr;
    }
    
    .cta-button {
        width: 100%;
        text-align: center;
        padding: 12px 20px;
    }
    
    .hero h1 {
        font-size: 2.5rem; /* Further reduced for small mobile */
    }
}
