/* ==========================================================================
   JSC Nova - Corporate Theme
   ========================================================================== */

:root {
    /* Color Palette */
    --color-petroleum-dark: #0f1517; /* Backgrounds, shadows - Extra dark */
    --color-greenish-dark: #18262a;  /* Cards, secondary bg - Extra dark */
    --color-teal-deep: #30575E;      /* Borders, dark accents */
    --color-teal-mid: #43676F;       /* Muted text, secondary elements */
    --color-turquoise-dark: #2A7885; /* Interactive elements (hover) */
    --color-turquoise-mid: #2E8E9C;  /* Primary brand color, buttons */
    --color-turquoise-gray: #4B7984; /* Soft text */
    --color-cyan-soft: #528F99;      /* Glows, highlights, energetic elements */
    
    --color-anthracite: #1a1e20;     /* Extra dark for some headers/JSC text in contexts */
    --color-white: #ffffff;
    --color-text: #e0ecef;
    --color-text-muted: #aabdc1;

    /* Typography */
    --font-primary: 'Inter', sans-serif;
    --font-heading: 'Outfit', sans-serif;

    /* Layout & Effects */
    --transition-fast: 0.2s ease;
    --transition-mid: 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --shadow-soft: 0 10px 30px rgba(34, 48, 51, 0.5);
    --shadow-glow: 0 0 20px rgba(82, 143, 153, 0.4);
    --border-radius: 8px;
    --glass-bg: rgba(39, 61, 66, 0.6);
    --glass-border: rgba(82, 143, 153, 0.2);
}

/* ==========================================================================
   Base & Reset
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body.dark-theme {
    background-color: var(--color-petroleum-dark);
    color: var(--color-text);
    font-family: var(--font-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--color-white);
    font-weight: 700;
    line-height: 1.2;
}

a {
    color: var(--color-cyan-soft);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--color-white);
}

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

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

/* ==========================================================================
   Typography & Utilities
   ========================================================================== */
.section-title {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.subsection-title {
    font-size: 1.5rem;
    color: var(--color-cyan-soft);
    margin-bottom: 1rem;
}

.mt-2 { margin-top: 2rem; }

.accent-line {
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--color-turquoise-mid), var(--color-cyan-soft));
    margin-bottom: 1.5rem;
    border-radius: 2px;
}

.accent-line.center {
    margin: 0 auto 1.5rem;
}

.w-100 { width: 100%; }

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    border-radius: var(--border-radius);
    font-family: var(--font-heading);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all var(--transition-mid);
    border: none;
    text-align: center;
}

.btn-primary {
    background: linear-gradient(135deg, var(--color-turquoise-dark), var(--color-turquoise-mid));
    color: var(--color-white);
    box-shadow: 0 4px 15px rgba(46, 142, 156, 0.3);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--color-turquoise-mid), var(--color-cyan-soft));
    box-shadow: var(--shadow-glow);
    transform: translateY(-2px);
    color: var(--color-white);
}

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

.btn-secondary:hover {
    background: rgba(82, 143, 153, 0.1);
    box-shadow: 0 0 15px rgba(82, 143, 153, 0.2) inset;
    transform: translateY(-2px);
}

.btn-glow {
    background: var(--color-cyan-soft);
    color: var(--color-petroleum-dark);
    box-shadow: var(--shadow-glow);
}

.btn-glow:hover {
    background: #fff;
    box-shadow: 0 0 25px rgba(255, 255, 255, 0.6);
    color: var(--color-petroleum-dark);
}

/* ==========================================================================
   Background Particles
   ========================================================================== */
.particle-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: radial-gradient(circle at 50% 0%, rgba(48, 87, 94, 0.3) 0%, rgba(15, 21, 23, 1) 70%);
}

/* ==========================================================================
   Navigation
   ========================================================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1.5rem 0;
    z-index: 1000;
    transition: all var(--transition-fast);
}

.navbar.scrolled {
    background: rgba(34, 48, 51, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 1rem 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    border-bottom: 1px solid var(--glass-border);
}

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

.logo-img {
    height: 85px;
    transition: height var(--transition-fast);
}

.navbar.scrolled .logo-img {
    height: 55px;
}

.logo-text {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 900;
    color: var(--color-text-muted); /* text JSC */
    letter-spacing: 2px;
}

.nova-glow {
    color: var(--color-cyan-soft);
    text-shadow: 0 0 10px rgba(82, 143, 153, 0.5);
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    color: var(--color-text);
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-cyan-soft);
    transition: width var(--transition-fast);
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--color-cyan-soft);
    font-size: 1.5rem;
    cursor: pointer;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: 80px;
}

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

.hero h1 {
    font-size: 4rem;
    font-weight: 900;
    margin-bottom: 1rem;
    background: linear-gradient(to right, #fff, var(--color-cyan-soft));
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 30px rgba(82, 143, 153, 0.2);
}

.hero .tagline {
    font-size: 1.5rem;
    color: var(--color-text-muted);
    margin-bottom: 2.5rem;
    font-weight: 300;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

/* ==========================================================================
   Stats Bar
   ========================================================================== */
.stats-bar {
    background: rgba(39, 61, 66, 0.4);
    border-top: 1px solid var(--glass-border);
    border-bottom: 1px solid var(--glass-border);
    padding: 3rem 0;
    backdrop-filter: blur(5px);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    text-align: center;
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-value {
    font-size: 3rem;
    font-family: var(--font-heading);
    font-weight: 900;
    color: var(--color-cyan-soft);
    text-shadow: 0 0 15px rgba(82, 143, 153, 0.3);
}

.stat-label {
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.85rem;
    color: var(--color-text-muted);
    margin-top: 0.5rem;
}

/* ==========================================================================
   About Section
   ========================================================================== */
.about {
    padding: 8rem 0;
    position: relative;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-text p {
    font-size: 1.1rem;
    color: var(--color-text-muted);
}

/* Tech Circle Animation for About section */
.about-visual {
    position: relative;
    height: 400px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.tech-circle {
    width: 300px;
    height: 300px;
    border-radius: 50%;
    border: 2px dashed var(--color-turquoise-gray);
    position: relative;
    animation: rotate 30s linear infinite;
    display: flex;
    justify-content: center;
    align-items: center;
}

.tech-circle::before {
    content: '';
    position: absolute;
    width: 340px;
    height: 340px;
    border-radius: 50%;
    border: 1px solid rgba(82, 143, 153, 0.3);
    border-top-color: var(--color-cyan-soft);
    animation: rotate 15s linear infinite reverse;
}

.inner-circle {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(46, 142, 156, 0.2) 0%, transparent 70%);
    box-shadow: 0 0 40px rgba(82, 143, 153, 0.2) inset;
    animation: pulse 4s ease-in-out infinite;
}

.core-icon {
    position: absolute;
    font-size: 4rem;
    color: var(--color-cyan-soft);
    text-shadow: var(--shadow-glow);
    animation: counter-rotate 30s linear infinite; /* keep icon upright while parent rotates */
}

@keyframes rotate { 100% { transform: rotate(360deg); } }
@keyframes counter-rotate { 100% { transform: rotate(-360deg); } }
@keyframes pulse { 50% { transform: scale(1.1); box-shadow: 0 0 60px rgba(82, 143, 153, 0.4) inset; } }

/* ==========================================================================
   Services Section
   ========================================================================== */
.services {
    padding: 6rem 0;
    background: radial-gradient(ellipse at center, rgba(39, 61, 66, 0.3) 0%, transparent 80%);
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-subtitle {
    color: var(--color-text-muted);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2.5rem;
}

.service-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius);
    overflow: hidden;
    transition: all var(--transition-mid);
    position: relative;
    backdrop-filter: blur(10px);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-soft);
    border-color: var(--color-cyan-soft);
}

.service-img {
    height: 200px;
    position: relative;
    overflow: hidden;
}

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

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

.service-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(34, 48, 51, 0.6);
    display: flex;
    justify-content: center;
    align-items: center;
}

.service-icon {
    font-size: 3rem;
    color: var(--color-cyan-soft);
    text-shadow: var(--shadow-glow);
}

.service-content {
    padding: 2rem;
}

.service-content h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--color-white);
}

.service-content p {
    color: var(--color-text-muted);
    font-size: 0.95rem;
}

/* ==========================================================================
   Contact Section
   ========================================================================== */
.contact {
    padding: 8rem 0;
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.contact-list {
    list-style: none;
    margin: 2rem 0;
}

.contact-list li {
    display: flex;
    align-items: center;
    margin-bottom: 1.2rem;
    font-size: 1.1rem;
}

.contact-list i {
    color: var(--color-cyan-soft);
    font-size: 1.3rem;
    width: 30px;
    margin-right: 1rem;
}

.locations-grid {
    display: grid;
    gap: 1.5rem;
}

.location-item {
    display: flex;
    align-items: flex-start;
    background: rgba(39, 61, 66, 0.4);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    border-left: 3px solid var(--color-cyan-soft);
}

.location-item i {
    color: var(--color-cyan-soft);
    font-size: 1.5rem;
    margin-right: 1.5rem;
    margin-top: 0.2rem;
}

.location-item strong {
    display: block;
    color: var(--color-white);
    margin-bottom: 0.2rem;
}

.location-item span {
    color: var(--color-text-muted);
    font-size: 0.9rem;
}

/* Form */
.contact-form-container {
    perspective: 1000px;
}

.secure-form {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    padding: 3rem;
    border-radius: var(--border-radius);
    backdrop-filter: blur(15px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
    position: relative;
    overflow: hidden;
}

.secure-form::before {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 50%; height: 2px;
    background: linear-gradient(90deg, transparent, var(--color-cyan-soft), transparent);
    animation: scanline 3s linear infinite;
}

@keyframes scanline {
    100% { left: 200%; }
}

.form-header {
    text-align: center;
    color: var(--color-cyan-soft);
    font-family: var(--font-heading);
    font-weight: 700;
    margin-bottom: 2rem;
    font-size: 1.2rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
}

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

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--color-text-muted);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.glass-input {
    width: 100%;
    padding: 1rem;
    background: rgba(34, 48, 51, 0.5);
    border: 1px solid var(--color-teal-deep);
    border-radius: 4px;
    color: var(--color-white);
    font-family: var(--font-primary);
    transition: all var(--transition-fast);
}

.glass-input:focus {
    outline: none;
    border-color: var(--color-cyan-soft);
    box-shadow: 0 0 10px rgba(82, 143, 153, 0.2) inset;
    background: rgba(34, 48, 51, 0.8);
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
    background: #111a1c;
    padding: 4rem 0 2rem;
    border-top: 1px solid var(--color-teal-deep);
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.footer-brand {
    margin-bottom: 2rem;
}

.footer-brand p {
    color: var(--color-text-muted);
    margin-top: 0.5rem;
    font-size: 0.9rem;
}

.footer-links {
    width: 100%;
    border-top: 1px solid rgba(255,255,255,0.05);
    padding-top: 2rem;
    color: var(--color-text-muted);
    font-size: 0.85rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.legal-links a {
    color: var(--color-text-muted);
    margin: 0 0.5rem;
}

.legal-links a:hover {
    color: var(--color-cyan-soft);
}

/* ==========================================================================
   Animations & Reveal Classes
   ========================================================================== */
.fade-up {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-left {
    opacity: 0;
    transform: translateX(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

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

.delay-1 { transition-delay: 0.2s; }
.delay-2 { transition-delay: 0.4s; }

/* Responsive */
@media (max-width: 992px) {
    .about-grid, .contact-wrapper {
        grid-template-columns: 1fr;
    }
    
    .about-visual { margin-top: 3rem; }
    
    .hero h1 { font-size: 3rem; }
}

@media (max-width: 768px) {
    .nav-links {
        display: none; /* simple mobile menu hack using JS, or hide */
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: rgba(34, 48, 51, 0.98);
        flex-direction: column;
        padding: 2rem 0;
        text-align: center;
        border-bottom: 1px solid var(--color-cyan-soft);
    }
    
    .nav-links.show {
        display: flex;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-links {
        flex-direction: column;
        justify-content: center;
        text-align: center;
    }
}

/* ==========================================================================
   Form Feedback Messages
   ========================================================================== */
.form-feedback {
    padding: 0.9rem 1.2rem;
    border-radius: 6px;
    margin-bottom: 1.2rem;
    font-size: 0.9rem;
    font-weight: 500;
    line-height: 1.5;
    animation: fadeInDown 0.3s ease;
}

.form-feedback--success {
    background: rgba(0, 212, 170, 0.12);
    border: 1px solid rgba(0, 212, 170, 0.35);
    color: #00d4aa;
}

.form-feedback--error {
    background: rgba(255, 107, 107, 0.12);
    border: 1px solid rgba(255, 107, 107, 0.35);
    color: #ff6b6b;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Button loader state */
.btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important;
}

.btn-loader .fa-spinner {
    margin-right: 0.4rem;
}

/* ==========================================================================
   CAPTCHA
   ========================================================================== */
.captcha-group {
    margin-bottom: 1.5rem;
}

.captcha-row {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 0.6rem;
}

.captcha-question {
    flex: 1;
    background: rgba(34, 48, 51, 0.6);
    border: 1px solid var(--color-teal-deep);
    border-radius: 4px;
    padding: 0.7rem 1rem;
    color: var(--color-cyan-soft);
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-align: center;
    user-select: none;
}

.captcha-refresh {
    background: rgba(82, 143, 153, 0.15);
    border: 1px solid var(--color-teal-deep);
    border-radius: 4px;
    color: var(--color-cyan-soft);
    padding: 0.7rem 0.9rem;
    cursor: pointer;
    transition: all var(--transition-fast);
    font-size: 1rem;
}

.captcha-refresh:hover {
    background: rgba(82, 143, 153, 0.3);
    border-color: var(--color-cyan-soft);
}

.captcha-input {
    text-align: center;
    font-size: 1rem;
    letter-spacing: 1px;
}
