/* CSS Reset and Variables */
:root {
    /* Font family */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Plus Jakarta Sans', sans-serif;

    /* Theme colors (Light mode defaults) */
    --primary: #10B981; /* Emerald green */
    --primary-hover: #059669;
    --primary-rgb: 16, 185, 129;
    --secondary: #F59E0B; /* Golden yellow */
    --secondary-hover: #D97706;
    
    --bg-main: #f8faf9;
    --bg-card: #ffffff;
    --bg-nav: rgba(248, 250, 249, 0.8);
    --border-color: rgba(16, 185, 129, 0.1);
    
    --text-main: #1f2937;
    --text-muted: #4b5563;
    --text-white: #ffffff;
    
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.02);
    --shadow-md: 0 10px 25px -5px rgba(16, 185, 129, 0.05), 0 8px 10px -6px rgba(16, 185, 129, 0.05);
    --shadow-lg: 0 20px 40px -5px rgba(16, 185, 129, 0.08);
    
    --transition-fast: 0.2s ease;
    --transition-normal: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-slow: 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-full: 9999px;
}

/* Dark mode overrides */
body.dark-theme {
    --bg-main: #060b07; /* Deep forest black */
    --bg-card: #0d150f; /* Slate forest green */
    --bg-nav: rgba(6, 11, 7, 0.8);
    --border-color: rgba(16, 185, 129, 0.15);
    
    --text-main: #f3f4f6;
    --text-muted: #9ca3af;
    
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.2);
    --shadow-md: 0 10px 25px -5px rgba(0, 0, 0, 0.3), 0 8px 10px -6px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 20px 40px -5px rgba(0, 0, 0, 0.4);
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
    box-sizing: border-box;
}

*, *:before, *:after {
    box-sizing: inherit;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-main);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    transition: background-color var(--transition-normal), color var(--transition-normal);
}

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

/* Grid & Layout Containers */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Header & Navigation */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: var(--bg-nav);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    transition: background-color var(--transition-normal), border-color var(--transition-normal);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-heading);
    font-size: 24px;
    font-weight: 800;
    color: var(--text-main);
}

.logo-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
}

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

.nav-menu {
    display: flex;
    gap: 32px;
}

.nav-link {
    font-family: var(--font-heading);
    font-size: 15px;
    font-weight: 500;
    color: var(--text-muted);
    position: relative;
    padding: 8px 0;
    transition: color var(--transition-fast);
}

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

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary);
    transition: width var(--transition-fast);
}

.nav-link:hover::after {
    width: 100%;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.theme-btn {
    background: none;
    border: 1px solid var(--border-color);
    padding: 8px;
    border-radius: var(--radius-sm);
    color: var(--text-main);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    width: 40px;
    height: 40px;
    overflow: hidden;
    transition: border-color var(--transition-fast), background-color var(--transition-fast);
}

.theme-btn:hover {
    background-color: rgba(16, 185, 129, 0.05);
    border-color: var(--primary);
}

.theme-icon-light, .theme-icon-dark {
    position: absolute;
    transition: transform var(--transition-normal), opacity var(--transition-normal);
}

/* Toggle light/dark button display */
body.light-theme .theme-icon-dark {
    transform: translateY(40px);
    opacity: 0;
}
body.light-theme .theme-icon-light {
    transform: translateY(0);
    opacity: 1;
}

body.dark-theme .theme-icon-light {
    transform: translateY(-40px);
    opacity: 0;
}
body.dark-theme .theme-icon-dark {
    transform: translateY(0);
    opacity: 1;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: 1px solid var(--border-color);
    padding: 8px;
    border-radius: var(--radius-sm);
    color: var(--text-main);
    cursor: pointer;
}

/* Button UI Components */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-heading);
    font-size: 15px;
    font-weight: 600;
    padding: 12px 28px;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: transform var(--transition-fast), background-color var(--transition-fast), border-color var(--transition-fast), box-shadow var(--transition-fast);
    border: none;
}

.btn:active {
    transform: scale(0.98);
}

.btn-primary {
    background-color: var(--primary);
    color: var(--text-white);
    box-shadow: 0 4px 14px rgba(16, 185, 129, 0.3);
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4);
}

.btn-secondary {
    background-color: transparent;
    color: var(--text-main);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background-color: rgba(16, 185, 129, 0.05);
    border-color: var(--primary);
}

.btn-block {
    width: 100%;
    justify-content: center;
}

/* Hero Section */
.hero {
    position: relative;
    padding: 160px 0 100px 0;
    overflow: hidden;
}

.hero-image-wrapper {
    position: relative;
}

.hero-bg-glow {
    position: absolute;
    top: -10%;
    right: -10%;
    width: 120%;
    height: 120%;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.15) 0%, rgba(16, 185, 129, 0) 70%);
    border-radius: var(--radius-full);
    pointer-events: none;
    z-index: -1;
}

.hero-container {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    align-items: center;
    gap: 48px;
    position: relative;
    z-index: 1;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: rgba(16, 185, 129, 0.1);
    color: var(--primary);
    padding: 6px 16px;
    border-radius: var(--radius-full);
    font-family: var(--font-heading);
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 24px;
    border: 1px solid rgba(16, 185, 129, 0.15);
}

.hero-title {
    font-family: var(--font-heading);
    font-size: 52px;
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 20px;
    letter-spacing: -0.02em;
}

.hero-subtitle {
    font-size: 17px;
    color: var(--text-muted);
    margin-bottom: 32px;
    max-width: 540px;
}

.hero-buttons {
    display: flex;
    gap: 16px;
}

.hero-svg {
    width: 100%;
    height: auto;
}

/* Animations for Hero SVG elements */
.rot-sun {
    transform-origin: 480px 120px;
    animation: rotateSun 25s linear infinite;
}

@keyframes rotateSun {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.dash-ray {
    animation: dashRay 2s linear infinite;
    stroke-dashoffset: 20;
}

@keyframes dashRay {
    to {
        stroke-dashoffset: 0;
    }
}

.pulse-charge {
    animation: pulseCharge 1.5s ease-in-out infinite alternate;
}

@keyframes pulseCharge {
    from { opacity: 0.4; }
    to { opacity: 1; }
}

/* Reveal / Intersection Observer animations */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity var(--transition-slow), transform var(--transition-slow);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Section Common Header Styling */
.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 64px auto;
}

.subtitle {
    display: inline-block;
    color: var(--primary);
    font-family: var(--font-heading);
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 12px;
}

.title {
    font-family: var(--font-heading);
    font-size: 38px;
    font-weight: 800;
    margin-bottom: 16px;
    letter-spacing: -0.01em;
}

.description {
    color: var(--text-muted);
    font-size: 16px;
}

/* Benefits Section */
.benefits {
    padding: 100px 0;
    position: relative;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 32px;
}

.benefit-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 40px 32px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition-normal), border-color var(--transition-normal), box-shadow var(--transition-normal), background-color var(--transition-normal);
}

.benefit-card:hover {
    transform: translateY(-8px);
    border-color: var(--primary);
    box-shadow: var(--shadow-md);
}

.card-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    background-color: rgba(16, 185, 129, 0.1);
    color: var(--primary);
    border-radius: var(--radius-sm);
    margin-bottom: 24px;
    transition: background-color var(--transition-fast), color var(--transition-fast);
}

.benefit-card:hover .card-icon {
    background-color: var(--primary);
    color: var(--text-white);
}

.benefit-card h3 {
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 12px;
}

.benefit-card p {
    color: var(--text-muted);
    font-size: 15px;
}

/* About Section */
.about {
    padding: 100px 0;
    position: relative;
}

.about-image {
    position: relative;
}

.about-bg-glow {
    position: absolute;
    bottom: -10%;
    left: -10%;
    width: 120%;
    height: 120%;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.12) 0%, rgba(16, 185, 129, 0) 70%);
    border-radius: var(--radius-full);
    pointer-events: none;
    z-index: -1;
}

.about-container {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    align-items: center;
    gap: 64px;
}

.blueprint-card {
    background-color: rgba(16, 185, 129, 0.02);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    padding: 16px;
    box-shadow: var(--shadow-md);
    background-image: radial-gradient(var(--bg-card) 60%, transparent 100%);
}

.blueprint-svg {
    width: 100%;
    height: auto;
}

.about-content h2 {
    margin-bottom: 20px;
}

.about-content p {
    color: var(--text-muted);
    margin-bottom: 24px;
    font-size: 16px;
}

.about-content p strong {
    color: var(--primary);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin-top: 36px;
}

.stat-item {
    border-left: 3px solid var(--primary);
    padding-left: 16px;
}

.stat-num {
    display: block;
    font-family: var(--font-heading);
    font-size: 36px;
    font-weight: 800;
    color: var(--text-main);
    line-height: 1.2;
}

.stat-label {
    font-size: 14px;
    color: var(--text-muted);
}

/* Works Section (Our Works Grid) */
.works {
    padding: 100px 0;
}

.works-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
    margin-top: 40px;
}

/* Card style for works */
.work-item {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    aspect-ratio: 4 / 3;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    cursor: pointer;
    background-color: var(--bg-card);
}

.work-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.work-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(6, 11, 7, 0.9) 0%, rgba(6, 11, 7, 0.4) 50%, rgba(6, 11, 7, 0.1) 100%);
    display: flex;
    align-items: flex-end;
    padding: 24px;
    opacity: 0;
    transition: opacity var(--transition-normal);
}

.work-comment {
    color: var(--text-white);
    font-size: 15px;
    font-weight: 500;
    transform: translateY(20px);
    transition: transform var(--transition-normal);
}

/* Hover effects for works */
.work-item:hover .work-img {
    transform: scale(1.05);
}

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

.work-item:hover .work-comment {
    transform: translateY(0);
}

/* Loading & Empty states */
.loading-state, .empty-state {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 24px;
    text-align: center;
    border: 2px dashed var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-muted);
}

.empty-icon {
    font-size: 40px;
    color: var(--primary);
    margin-bottom: 16px;
    opacity: 0.7;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(16, 185, 129, 0.1);
    border-radius: 50%;
    border-top-color: var(--primary);
    animation: spin 1s ease-in-out infinite;
    margin-bottom: 16px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Timelapses Section */
.timelapses {
    padding: 100px 0;
    position: relative;
}

.timelapses-bg-glow {
    position: absolute;
    top: 50%;
    right: -10%;
    width: 40%;
    height: 50%;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.1) 0%, rgba(16, 185, 129, 0) 70%);
    border-radius: var(--radius-full);
    pointer-events: none;
}

.videos-list {
    display: flex;
    flex-direction: column;
    gap: 48px;
    margin-top: 40px;
}

.video-item {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 40px;
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 24px;
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    align-items: center;
}

.video-item:nth-child(even) {
    grid-template-columns: 0.8fr 1.2fr;
}

.video-item:nth-child(even) .video-player-wrapper {
    order: 2;
}

.video-player-wrapper {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    aspect-ratio: 16 / 9;
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(16, 185, 129, 0.05);
}

.video-player-wrapper video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.video-details {
    padding: 16px;
}

.video-meta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--primary);
    font-family: var(--font-heading);
    font-weight: 600;
    margin-bottom: 12px;
}

.video-comment {
    font-size: 16px;
    color: var(--text-main);
    font-weight: 500;
    line-height: 1.6;
}

/* Contact Section & Form */
.contact {
    padding: 100px 0;
    position: relative;
}

.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}

.contact-details {
    margin-top: 40px;
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.contact-detail-item {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.detail-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background-color: rgba(16, 185, 129, 0.08);
    color: var(--primary);
    border-radius: var(--radius-sm);
    flex-shrink: 0;
}

.contact-detail-item h4 {
    font-family: var(--font-heading);
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 4px;
}

.contact-detail-item p, .contact-detail-item a {
    color: var(--text-muted);
    font-size: 15px;
    transition: color var(--transition-fast);
}

.contact-detail-item a:hover {
    color: var(--primary);
}

.contact-form-wrapper {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 48px;
    box-shadow: var(--shadow-lg);
}

.form-title {
    font-family: var(--font-heading);
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 28px;
}

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

.form-group label {
    display: block;
    font-family: var(--font-heading);
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-main);
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-icon {
    position: absolute;
    left: 16px;
    color: var(--text-muted);
    width: 18px;
    height: 18px;
    pointer-events: none;
    transition: color var(--transition-fast);
}

.textarea-icon {
    top: 16px;
}

.input-wrapper input, .input-wrapper textarea {
    width: 100%;
    padding: 14px 16px 14px 48px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    background-color: var(--bg-main);
    color: var(--text-main);
    font-family: var(--font-body);
    font-size: 15px;
    outline: none;
    transition: border-color var(--transition-fast), background-color var(--transition-fast), box-shadow var(--transition-fast);
}

.input-wrapper input::placeholder, .input-wrapper textarea::placeholder {
    color: #9ca3af;
}

.input-wrapper input:focus, .input-wrapper textarea:focus {
    border-color: var(--primary);
    background-color: var(--bg-card);
    box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.08);
}

.input-wrapper input:focus + .input-icon, .input-wrapper textarea:focus + .input-icon {
    color: var(--primary);
}

/* Alert Styling */
.form-alert {
    margin-top: 16px;
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 500;
    transition: opacity var(--transition-fast);
}

.form-alert.success {
    background-color: rgba(16, 185, 129, 0.1);
    color: #065f46;
    border: 1px solid rgba(16, 185, 129, 0.2);
}

body.dark-theme .form-alert.success {
    background-color: rgba(16, 185, 129, 0.15);
    color: #34d399;
}

.form-alert.error {
    background-color: rgba(239, 68, 68, 0.1);
    color: #991b1b;
    border: 1px solid rgba(239, 68, 68, 0.2);
}

body.dark-theme .form-alert.error {
    background-color: rgba(239, 68, 68, 0.15);
    color: #fca5a5;
}

.hide {
    display: none !important;
}

/* Footer styling */
.footer {
    border-top: 1px solid var(--border-color);
    padding: 40px 0;
    background-color: var(--bg-card);
    transition: background-color var(--transition-normal);
}

.footer-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    text-align: center;
}

.footer-copy {
    font-size: 14px;
    color: var(--text-muted);
}

.footer-socials {
    display: flex;
    gap: 16px;
}

.footer-socials a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    transition: color var(--transition-fast), border-color var(--transition-fast), background-color var(--transition-fast);
}

.footer-socials a:hover {
    color: var(--primary);
    border-color: var(--primary);
    background-color: rgba(16, 185, 129, 0.05);
}

/* Responsive styles */
@media (max-width: 992px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 32px;
    }
    
    .hero-subtitle {
        margin-left: auto;
        margin-right: auto;
    }
    
    .hero-buttons {
        justify-content: center;
    }

    .hero-image-wrapper {
        max-width: 500px;
        margin: 0 auto;
    }

    .about-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .about-image {
        max-width: 450px;
        margin: 0 auto;
    }

    .contact-container {
        grid-template-columns: 1fr;
        gap: 48px;
    }
}

@media (max-width: 768px) {
    .title {
        font-size: 32px;
    }
    
    .hero-title {
        font-size: 40px;
    }

    .nav-menu {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background-color: var(--bg-card);
        flex-direction: column;
        align-items: center;
        padding-top: 60px;
        gap: 40px;
        transition: left var(--transition-normal);
        z-index: 999;
        border-top: 1px solid var(--border-color);
    }

    .nav-menu.open {
        left: 0;
    }

    .mobile-menu-btn {
        display: flex;
    }

    .video-item, .video-item:nth-child(even) {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .video-item:nth-child(even) .video-player-wrapper {
        order: unset;
    }

    .contact-form-wrapper {
        padding: 32px 24px;
    }
}

@media (max-width: 480px) {
    .hero-buttons {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
        justify-content: center;
    }
}
