:root {
    --primary-color: #2E7D32;
    --bg-color: #121212;
    --text-color: #e0e0e0;
    --card-bg: #1e1e1e;
    --white: #ffffff;
}

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

/* Header */
header {
    height: 80px;
    background-color: rgba(18, 18, 18, 0.95);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
    border-bottom: 1px solid rgba(46, 125, 50, 0.3); /* Subtle green border */
    backdrop-filter: blur(10px); /* Modern blur effect */
}

header .container {
    height: 100%;
    display: flex;
    align-items: center;
}

nav {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--white);
    letter-spacing: 2px;
    text-shadow: 0 0 10px rgba(46, 125, 50, 0.4); /* Subtle glow */
    transition: text-shadow 0.3s;
}

.logo:hover {
    text-shadow: 0 0 15px rgba(46, 125, 50, 0.8);
}

.nav-links {
    display: flex;
    align-items: center;
}

.nav-links li {
    position: relative;
    margin-left: 0;
}

/* Green divider between menu items */
.nav-links li:not(:last-child)::after {
    content: '';
    position: absolute;
    right: -15px;
    top: 50%;
    transform: translateY(-50%);
    width: 1px;
    height: 14px;
    background-color: var(--primary-color);
    opacity: 0.6;
    display: none; /* Hidden by default, shown if we change approach */
}

/* Alternative: Vertical line using border or pseudo element on the LI */
/* Let's try the requested style: dividers in between */
.nav-links li:not(:first-child) {
    margin-left: 25px;
    padding-left: 25px;
    border-left: 1px solid rgba(46, 125, 50, 0.5); /* Green vertical line */
}

.nav-links li a {
    color: var(--text-color);
    font-weight: 500;
    transition: color 0.3s, text-shadow 0.3s;
    font-size: 0.95rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.nav-links li a:hover,
.nav-links li a.active {
    color: var(--primary-color);
    text-shadow: 0 0 8px rgba(46, 125, 50, 0.4);
}

.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.bar {
    height: 3px;
    width: 25px;
    background-color: var(--white);
    margin: 3px 0;
    transition: 0.4s;
}

/* Responsive Navigation */
@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }

    .nav-links {
        display: none;
        flex-direction: column;
        width: 100%;
        position: absolute;
        top: 80px;
        left: 0;
        background-color: rgba(18, 18, 18, 0.98);
        text-align: center;
        padding: 20px 0;
        border-top: 1px solid #333;
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links li {
        margin: 15px 0;
    }

    .nav-links li:not(:first-child) {
        border-left: none;
        padding-left: 0;
        margin-left: 0;
    }
}

/* Hero Section */
.hero {
    height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}

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

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

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 20px;
}

.hero h1 {
    font-size: 3.5rem;
    color: var(--white);
    margin-bottom: 20px;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 30px;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    background-color: var(--primary-color);
    color: var(--white);
    border-radius: 5px;
    transition: background 0.3s;
}

.btn:hover {
    background-color: #1b5e20;
}

/* Page Header */
.page-header {
    margin-top: 80px;
    padding: 60px 0;
    text-align: center;
    background-color: #1a1a1a;
}

.page-header h1 {
    color: var(--white);
    font-size: 2.5rem;
}

/* Section Title */
.section-title {
    font-size: 2.5rem;
    color: var(--white);
    text-align: center;
    margin-bottom: 40px;
    position: relative;
    padding-bottom: 15px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: var(--primary-color);
}

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

/* References Section */
.references-section {
    padding: 40px 0;
    background-color: #000;
    overflow: hidden;
    position: relative;
}

.ref-title {
    color: #666;
    font-size: 0.9rem;
    letter-spacing: 2px;
    margin-bottom: 20px;
    text-transform: uppercase;
}

.marquee-wrapper {
    width: 100%;
    overflow: hidden;
    position: relative;
}

.marquee-content {
    display: flex;
    width: max-content;
    align-items: center;
    animation: scroll 40s linear infinite;
    gap: 60px;
    height: 100%;
}

.marquee-content:hover {
    animation-play-state: paused;
}

.ref-item {
    flex-shrink: 0;
    width: 120px;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.9;
    transition: all 0.3s ease;
    cursor: pointer;
    background: rgba(46, 125, 50, 0.1);
    border: 1px solid rgba(46, 125, 50, 0.3);
    border-radius: 8px;
    padding: 0;
    overflow: hidden;
}

.ref-item:hover {
    opacity: 1;
    transform: scale(1.1);
    background: rgba(46, 125, 50, 0.3);
    box-shadow: 0 0 15px rgba(46, 125, 50, 0.4);
}

.ref-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(100%);
    transition: filter 0.3s ease;
}

.ref-item:hover img {
    filter: grayscale(0%);
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

/* Portfolio Section */
.portfolio-section {
    padding: 60px 0;
}

.portfolio-section .container {
    max-width: 1400px; /* Wider container for portfolio */
}

/* Filter Buttons - Minimalist Style */
.portfolio-filter {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 30px;
    margin-bottom: 50px;
}

.filter-btn {
    background: transparent;
    border: none;
    color: #888;
    padding: 5px 0;
    cursor: pointer;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 600;
    position: relative;
}

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

.filter-btn:hover,
.filter-btn.active {
    background: transparent;
    color: var(--white);
}

.filter-btn:hover::after,
.filter-btn.active::after {
    width: 100%;
}

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

/* Card Style - Clean & Image Focused */
.card {
    background-color: transparent;
    border-radius: 0;
    overflow: hidden;
    transition: 0.3s;
    position: relative;
    display: block;
    box-shadow: none;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: none;
}

.card-img-wrapper {
    position: relative;
    padding-top: 56.25%; /* 16:9 Aspect Ratio */
    overflow: hidden;
    border-radius: 4px;
}

.card-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

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

.card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: 0.3s;
}

.card:hover .card-overlay {
    opacity: 1;
}

.play-icon {
    font-size: 3rem;
    color: var(--white);
    filter: drop-shadow(0 0 10px rgba(0,0,0,0.5));
}

.card-content {
    padding: 15px 5px;
}

.card-title {
    font-size: 1.1rem;
    color: var(--white);
    margin-bottom: 5px;
    font-weight: 500;
    letter-spacing: 0.5px;
}

.card-category {
    font-size: 0.85rem;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 500;
}

/* Mobile Responsive Portfolio */
@media (max-width: 768px) {
    .grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .portfolio-filter {
        gap: 15px;
        margin-bottom: 30px;
    }
    
    .filter-btn {
        font-size: 0.8rem;
    }

    .card-content {
        padding: 10px 0;
    }

    .card-title {
        font-size: 0.95rem;
    }

    .card-category {
        font-size: 0.75rem;
    }
}

/* About Split Layout */
.about-split-container {
    display: flex;
    width: 100%;
    height: calc(100vh - 80px);
    max-width: 100%;
    margin: 0;
}

.about-image-wrapper {
    flex: 1;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.about-image {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: top center; /* Fixes cropped head issue */
    }

.about-content-wrapper {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px;
    background-color: var(--bg-color);
}

.about-text-content {
    max-width: 600px;
}

.about-title {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.about-subtitle {
    font-size: 1.5rem;
    color: var(--white);
    margin-bottom: 30px;
    opacity: 0.9;
}

.about-description {
    font-size: 1.1rem;
    color: #ccc;
    line-height: 1.8;
}

@media (max-width: 768px) {
    .about-split-container {
        flex-direction: column;
        height: auto;
    }
    
    .about-image-wrapper {
        height: auto;
        min-height: 300px;
    }

    .about-image {
        height: auto;
        width: 100%;
        object-fit: contain;
    }
    
    .about-content-wrapper {
        padding: 40px 20px;
    }
}

/* Contact Section */
.contact-section {
    padding: 80px 0;
}

.contact-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 50px;
    background-color: var(--card-bg);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.contact-info-side {
    flex: 1;
    min-width: 300px;
    background-color: #163e18; /* Darker green background for info side */
    padding: 50px;
    color: var(--white);
    position: relative;
    overflow: hidden;
}

/* Decorative circle behind info */
.contact-info-side::before {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 200px;
    height: 200px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    pointer-events: none;
}

.contact-form-side {
    flex: 1.5;
    min-width: 300px;
    padding: 50px;
    background-color: var(--card-bg);
}

.contact-subtitle {
    font-size: 1.8rem;
    color: var(--white);
    margin-bottom: 20px;
    font-weight: 600;
}

.contact-desc {
    color: #e0e0e0;
    margin-bottom: 40px;
    line-height: 1.6;
    font-size: 1rem;
    opacity: 0.9;
}

/* Info Items */
.info-items {
    display: flex;
    flex-direction: column;
    gap: 30px;
    margin-bottom: 50px;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 20px;
}

.icon-box {
    width: 50px;
    height: 50px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--white);
    transition: 0.3s;
}

.info-item:hover .icon-box {
    background: var(--white);
    color: var(--primary-color);
}

.info-content {
    display: flex;
    flex-direction: column;
}

.info-content span {
    font-size: 0.9rem;
    opacity: 0.7;
    margin-bottom: 5px;
}

.info-content a {
    color: var(--white);
    font-size: 1.1rem;
    font-weight: 500;
}

/* Social Connect */
.social-connect h4 {
    color: var(--white);
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.sc-links {
    display: flex;
    gap: 15px;
}

.sc-links a {
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.1);
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    transition: 0.3s;
}

.sc-links a:hover {
    background: var(--white);
    color: var(--primary-color);
}

/* Contact Form */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-row {
    display: flex;
    gap: 20px;
}

.form-group {
    width: 100%;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 15px;
    background: #2a2a2a;
    border: 1px solid #444;
    border-radius: 5px;
    color: var(--white);
    font-family: inherit;
    font-size: 1rem;
    transition: 0.3s;
}

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

.btn-submit {
    align-self: flex-start;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

@media (max-width: 768px) {
    .contact-wrapper {
        flex-direction: column;
    }
    
    .form-row {
        flex-direction: column;
        gap: 20px;
    }
    
    .contact-info-side, .contact-form-side {
        padding: 30px;
    }
}

/* Footer */
footer {
    background-color: #000;
    padding: 40px 0;
    text-align: center;
    color: #888;
}

.social-links {
    margin-bottom: 20px;
}

.social-links a {
    color: var(--white);
    font-size: 1.5rem;
    margin: 0 10px;
    transition: 0.3s;
}

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

/* Process Section */
.process-section {
    background-color: #000;
    width: 100%;
}

.process-wrapper {
    display: flex;
    width: 100%;
    min-height: 600px;
}

.process-image-side {
    flex: 1;
    position: relative;
    overflow: hidden;
}

.process-image-side img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.process-content-side {
    flex: 1;
    background-color: #000;
    color: var(--white);
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 80px;
}

.process-title {
    font-size: 2.5rem;
    font-weight: 300;
    margin-bottom: 40px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--white);
}

.process-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #ccc;
    max-width: 600px;
}

.process-text p {
    margin-bottom: 20px;
}

@media (max-width: 992px) {
    .process-wrapper {
        flex-direction: column;
    }

    .process-image-side {
        height: 400px;
    }

    .process-content-side {
        padding: 40px;
    }
}

/* Section Divider */
.section-divider {
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
    margin: 0;
    opacity: 0.8;
    box-shadow: 0 0 15px rgba(46, 125, 50, 0.5);
    border: none;
}

/* Project Detail Page */
.project-detail-section {
    padding: 60px 0;
    min-height: 60vh;
}

.project-detail-wrapper {
    display: flex;
    flex-direction: column;
    gap: 40px;
    max-width: 900px;
    margin: 0 auto;
}

.project-category-badge {
    color: var(--primary-color);
    margin-top: 10px;
    font-weight: 500;
}

.project-detail-title {
    color: var(--white);
    margin-bottom: 20px;
    font-size: 1.8rem;
}

.project-description {
    color: #ccc;
    line-height: 1.8;
    font-size: 1.1rem;
}

.project-media {
    width: 100%;
}

.video-container {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 */
    height: 0;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.3);
    background: #000;
}

.video-container iframe,
.video-container video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.project-info {
    margin-top: 20px;
}

.project-link {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s;
}

.project-link:hover {
    color: var(--primary-color);
}

@media (min-width: 992px) {
    .project-detail-wrapper {
        flex-direction: row;
        align-items: flex-start;
    }
    
    .project-media {
        flex: 1.5;
    }
    
    .project-info {
        flex: 1;
        margin-top: 0 !important;
        padding-left: 40px;
        position: sticky;
        top: 100px;
    }
}

/* Language Switcher Styles */
.lang-switch {
    display: flex;
    align-items: center;
    margin-left: 15px;
    background: rgba(255, 255, 255, 0.1);
    padding: 5px 15px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.lang-switch a {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.9rem;
    font-weight: 600;
    color: #fff;
    text-decoration: none;
    transition: all 0.3s ease;
    opacity: 0.7;
}

.lang-switch a:hover {
    opacity: 1;
    color: var(--primary-color);
}

.lang-switch a.active {
    opacity: 1;
    color: var(--primary-color);
}

.lang-switch .separator {
    margin: 0 10px;
    color: rgba(255, 255, 255, 0.3);
    font-weight: 300;
}

/* Mobile adjustments for lang switch */
@media (max-width: 768px) {
    .lang-switch {
        margin: 15px 0;
        justify-content: center;
        background: transparent;
        border: none;
        width: 100%;
    }
    
    .lang-switch a {
        font-size: 1.1rem;
        color: #fff;
    }
    
    .lang-switch a.active {
        color: var(--primary-color);
    }
}
