/* ================================
   GLOBAL STYLES & RESET
================================ */

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

:root {
    --green-primary: #4ADE80;
    --bg-dark: #111111;
    --bg-darker: #0a0a0a;
    --bg-card: #1e1e1e;
    --bg-lighter: #1a1a1a;
    --text-light: #d1d5db;
    --text-white: #ffffff;
    --text-gray: #9ca3af;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background: linear-gradient(to bottom, var(--bg-dark), var(--bg-lighter));
    color: var(--text-light);
    line-height: 1.6;
    min-height: 100vh;
}

h1, h2, h3, h4, h5, h6 {
    color: var(--text-white);
}

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

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    outline: none;
}

img {
    max-width: 100%;
    height: auto;
}

/* ================================
   UTILITIES
================================ */

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

.section-heading {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-weight: 700;
    font-size: 2.5rem;
    color: var(--green-primary);
    text-align: center;
    margin-bottom: 1rem;
}

.page-heading {
    margin-top: 6rem;
}

.divider {
    width: 60px;
    height: 2px;
    background: var(--green-primary);
    margin: 0 auto 3rem;
}

.cta-btn {
    background: var(--green-primary);
    color: var(--bg-dark);
    padding: 0.875rem 2.5rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.875rem;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    display: inline-block;
}

.cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(74, 222, 128, 0.3);
}

.cta-btn:active {
    transform: translateY(0);
}

/* Loading spinner */
.loading-spinner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 4rem 2rem;
    color: var(--text-gray);
}

.spinner {
    width: 50px;
    height: 50px;
    border: 3px solid var(--bg-card);
    border-top-color: var(--green-primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin-bottom: 1rem;
}

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

/* Fade-in animation */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ================================
   HEADER & NAVIGATION
================================ */

.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(17, 17, 17, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(74, 222, 128, 0.1);
    z-index: 1000;
    transition: background 0.3s ease;
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 3rem;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-white);
    transition: opacity 0.3s ease;
}

.logo:hover {
    opacity: 0.8;
}

.logo-icon {
    width: 30px;
    height: 30px;
    background: white;
    border-radius: 4px;
    padding: 2px;
}

.logo-text {
    letter-spacing: 0.5px;
}

.nav-left, .nav-right {
    display: flex;
    gap: 2rem;
}

.nav-link {
    font-size: 0.875rem;
    font-weight: 500;
    letter-spacing: 0.5px;
    color: var(--text-light);
    position: relative;
    padding-bottom: 0.25rem;
    transition: color 0.3s ease;
}

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

.nav-link.active {
    color: var(--text-white);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--green-primary);
}

.login-btn {
    color: var(--text-light);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.login-btn:hover {
    color: var(--green-primary);
    background: rgba(74, 222, 128, 0.1);
}

/* Mobile menu */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: transparent;
    padding: 0.5rem;
}

.mobile-menu-btn span {
    display: block;
    width: 25px;
    height: 2px;
    background: var(--text-white);
    transition: all 0.3s ease;
}

.mobile-nav {
    display: none;
    flex-direction: column;
    gap: 0;
    background: var(--bg-darker);
    border-top: 1px solid rgba(74, 222, 128, 0.1);
    padding: 1rem 0;
}

.mobile-nav .nav-link {
    padding: 1rem 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

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

/* ================================
   MAIN CONTENT
================================ */

.main-content {
    padding-top: 70px;
}

.page {
    display: none;
    min-height: calc(100vh - 70px);
}

.page.active {
    display: block;
}

/* ================================
   HOME PAGE - HERO SECTION
================================ */

.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--bg-darker) 0%, var(--bg-dark) 100%);
    padding: 2rem;
}

.hero-content {
    text-align: center;
    max-width: 900px;
}

.hero-title {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-weight: 700;
    font-size: clamp(2.5rem, 5vw, 4rem);
    line-height: 1.3;
    margin-bottom: 2rem;
    color: var(--text-white);
}

/* ================================
   HOME PAGE - QUOTE BANNER
================================ */

.quote-banner {
    position: relative;
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #1a1a1a;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 4rem 2rem;
}

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

.quote-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 900px;
}

.quote-text {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-weight: 700;
    font-size: clamp(1.75rem, 4vw, 3rem);
    line-height: 1.5;
    color: var(--text-white);
    margin-bottom: 1.5rem;
}

.quote-author {
    font-size: 1.125rem;
    color: var(--green-primary);
    font-weight: 500;
}

/* ================================
   HOME PAGE - PURSUIT SECTION
================================ */

.pursuit-section {
    padding: 6rem 2rem;
    background: var(--bg-dark);
}

.pursuit-section .container {
    max-width: 800px;
    text-align: center;
}

.pursuit-content {
    margin: 2rem 0 3rem;
}

.pursuit-content p {
    margin-bottom: 1.5rem;
    font-size: 1.125rem;
    line-height: 1.8;
}

/* ================================
   ABOUT PAGE
================================ */

.about-block {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    margin: 4rem 0;
    align-items: start;
}

.about-block-reverse {
    direction: rtl;
}

.about-block-reverse > * {
    direction: ltr;
}

.about-text {
    padding: 1rem 0;
}

.about-subheading {
    font-size: 1.75rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: var(--text-white);
}

.about-text p {
    margin-bottom: 1.25rem;
    font-size: 1.0625rem;
    line-height: 1.8;
}

.about-media {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding-top: 4.5rem;
}

.about-block-reverse .about-media {
    padding-top: 0;
}

.image-placeholder {
    width: 100%;
    aspect-ratio: 16 / 9;
    background: linear-gradient(135deg, #2a2a2a, #1a1a1a);
    border-radius: 8px;
    overflow: hidden;
    position: relative;
}

.image-placeholder-square {
    aspect-ratio: 1 / 1;
}

.about-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.image-caption {
    font-size: 0.875rem;
    color: var(--text-gray);
    font-style: italic;
    text-align: center;
}

.image-quote {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-weight: 700;
    font-size: 1.125rem;
    color: var(--green-primary);
    text-align: center;
    padding: 1rem;
    border-left: 3px solid var(--green-primary);
    margin: 1rem 0;
}

/* ================================
   PORTFOLIO PAGE
================================ */

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

.portfolio-card {
    background: var(--bg-card);
    border-radius: 12px;
    padding: 2rem;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    border: 1px solid transparent;
}

.portfolio-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(74, 222, 128, 0.15);
    border-color: rgba(74, 222, 128, 0.3);
}

.portfolio-logo {
    width: 60px;
    height: 60px;
    object-fit: contain;
    margin-bottom: 1.5rem;
    border-radius: 8px;
}

.portfolio-name {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--text-white);
}

.portfolio-tagline {
    font-size: 0.875rem;
    color: var(--green-primary);
    font-weight: 600;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.portfolio-description-wrap {
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.portfolio-description-wrap.collapsed {
    max-height: 4.8em; /* ~3 lines at 1.6 line-height */
}

.portfolio-description-wrap:not(.collapsed) {
    max-height: 50em;
}

.portfolio-description {
    font-size: 0.9375rem;
    line-height: 1.6;
    color: var(--text-light);
    margin: 0;
}

.read-more-btn {
    display: inline-block;
    margin-top: 0.5rem;
    color: #4ADE80 !important;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    border: none;
    background: none;
    padding: 0;
    transition: color 0.2s;
}

.read-more-btn:hover {
    color: #22C55E !important;
    text-decoration: underline;
}

.portfolio-empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 4rem 2rem;
    color: var(--text-gray);
    font-size: 1.125rem;
}

/* ================================
   NEWS PAGE
================================ */

.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

.news-card {
    background: var(--bg-card);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    border: 1px solid transparent;
}

.news-card:hover {
    transform: translateY(-5px);
    border-color: rgba(74, 222, 128, 0.3);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.news-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    background: linear-gradient(135deg, #2a2a2a, #1a1a1a);
    border-radius: 8px 8px 0 0;
}

.news-image-placeholder {
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, #2a2a2a, #1a1a1a);
    border-radius: 8px 8px 0 0;
}

.news-content {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.news-company {
    font-size: 0.75rem;
    color: var(--green-primary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.5rem;
}

.news-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--text-white);
    line-height: 1.4;
}

.news-date {
    font-size: 0.8125rem;
    color: var(--text-gray);
    margin-bottom: 1rem;
}

.news-summary {
    font-size: 0.9375rem;
    line-height: 1.6;
    color: var(--text-light);
    margin-bottom: 1.5rem;
    flex: 1;
}

.news-link {
    align-self: flex-start;
}

.news-link .cta-btn {
    padding: 0.625rem 1.5rem;
    font-size: 0.8125rem;
}

.news-load-more {
    text-align: center;
    margin-top: 3rem;
    padding-bottom: 3rem;
}

.news-empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 4rem 2rem;
    color: var(--text-gray);
    font-size: 1.125rem;
}

/* ================================
   CONTACT PAGE
================================ */

.contact-subtitle {
    text-align: center;
    font-size: 1.25rem;
    color: var(--text-light);
    margin-bottom: 3rem;
}

.contact-form {
    max-width: 600px;
    margin: 0 auto;
    padding-bottom: 4rem;
}

.form-group {
    margin-bottom: 1.75rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-white);
    font-weight: 500;
    font-size: 0.9375rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.875rem 1.25rem;
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: var(--text-white);
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--green-primary);
    box-shadow: 0 0 0 3px rgba(74, 222, 128, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.form-message {
    margin-bottom: 1.5rem;
    padding: 1rem;
    border-radius: 8px;
    font-size: 0.9375rem;
    display: none;
}

.form-message.success {
    display: block;
    background: rgba(74, 222, 128, 0.1);
    color: var(--green-primary);
    border: 1px solid rgba(74, 222, 128, 0.3);
}

.form-message.error {
    display: block;
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.contact-form .cta-btn {
    width: 100%;
}

/* ================================
   LOGIN PAGE
================================ */

.login-container {
    min-height: calc(100vh - 70px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.login-card {
    background: var(--bg-card);
    border: 1px solid rgba(74, 222, 128, 0.15);
    border-radius: 16px;
    padding: 3rem;
    width: 100%;
    max-width: 400px;
    text-align: center;
}

.login-logo {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
}

.login-logo-icon {
    width: 36px;
    height: 36px;
    background: white;
    border-radius: 6px;
    padding: 2px;
}

.login-logo-text {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-white);
    letter-spacing: 0.5px;
}

.login-subtitle {
    font-size: 0.9375rem;
    color: var(--text-gray);
    margin-bottom: 2rem;
}

.login-form {
    text-align: left;
}

.login-form .form-group {
    margin-bottom: 1.25rem;
}

.login-form .cta-btn {
    width: 100%;
    margin-top: 0.5rem;
}

.login-form .cta-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* ================================
   FOOTER
================================ */

.footer {
    background: var(--bg-darker);
    border-top: 1px solid rgba(74, 222, 128, 0.1);
    padding: 3rem 0 0;
}

.footer-content {
    padding-bottom: 2rem;
}

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

.footer-heading {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-white);
}

.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    color: var(--text-light);
    transition: all 0.3s ease;
}

.social-link:hover {
    color: var(--green-primary);
    transform: translateY(-3px);
}

.footer-bar {
    background: var(--green-primary);
    padding: 1rem 0;
    text-align: center;
}

.footer-bar p {
    color: var(--bg-dark);
    font-size: 0.875rem;
    font-weight: 500;
}

/* ================================
   RESPONSIVE DESIGN
================================ */

@media (max-width: 1024px) {
    .nav-left, .nav-right {
        gap: 1.5rem;
    }

    .header-left {
        gap: 2rem;
    }

    .portfolio-grid,
    .news-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .about-block {
        gap: 3rem;
    }
}

@media (max-width: 768px) {
    .header-container {
        padding: 1rem 1.5rem;
    }

    .header-right {
        display: none;
    }

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

    .section-heading {
        font-size: 2rem;
    }

    .page-heading {
        margin-top: 4rem;
    }

    .hero-title {
        font-size: 2rem;
    }

    .quote-text {
        font-size: 1.5rem;
    }

    .pursuit-section {
        padding: 4rem 1.5rem;
    }

    .about-block,
    .about-block-reverse {
        grid-template-columns: 1fr;
        gap: 2rem;
        direction: ltr;
    }

    .about-media {
        padding-top: 0;
    }

    .portfolio-grid,
    .news-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .container {
        padding: 0 1.5rem;
    }

    .contact-form {
        padding: 0 1rem 3rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }

    .hero-section {
        padding: 1.5rem;
    }

    .quote-banner {
        padding: 3rem 1.5rem;
    }

    .section-heading {
        font-size: 1.75rem;
    }

    .cta-btn {
        padding: 0.75rem 2rem;
        font-size: 0.8125rem;
    }

    .portfolio-card,
    .news-content {
        padding: 1.25rem;
    }
}
