/* ============================================
   SPIN Technologies - Modern Design System
   ============================================ */

:root {
    --primary-dark: #071952;
    --primary-teal: #088395;
    --light-teal: #ACE2E1;
    --highlight-cyan: #41C9E2;
    --cream-light: #FAEDCE;
    --cream-lighter: #FEFAE0;
    --warm-white: #FFFEF7;
    --warm-bg: #FDFBF0;
    --dark-footer: #191911;
    --nav-bg: rgba(235, 244, 246, 0.95);
    --white: #FFFEF7;
    --text-dark: #01090a;
    --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 5px 20px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.15);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: "Montserrat", sans-serif;
    font-weight: 350;
    font-style: normal;
    background: linear-gradient(135deg, var(--cream-light) 0%, var(--cream-lighter) 50%, var(--warm-bg) 100%);
    color: var(--text-dark);
    line-height: 1.7;
    overflow-x: hidden;
}

::selection {
    background-color: var(--highlight-cyan);
    color: var(--primary-dark);
}

/* ============================================
   Navigation
   ============================================ */

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(235, 244, 246, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 1rem 0;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.navbar.scrolled {
    box-shadow: var(--shadow-md);
    padding: 0.75rem 0;
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    height: 60px;
    width: auto;
    transition: var(--transition);
}

.nav-logo:hover {
    transform: scale(1.05);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.nav-link {
    color: var(--primary-dark);
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    position: relative;
    padding: 0.5rem 0;
    transition: var(--transition);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-teal);
    transition: var(--transition);
}

.nav-link:hover {
    color: var(--primary-teal);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 5px;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--primary-dark);
    border-radius: 3px;
    transition: var(--transition);
}

/* ============================================
   Hero Section
   ============================================ */

.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(7, 25, 82, 0.9) 0%, rgba(8, 131, 149, 0.8) 100%),
                url('./assets/atom (1).jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: white;
    text-align: center;
    padding: 8rem 2rem 4rem;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at center, transparent 0%, rgba(0, 0, 0, 0.3) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    animation: fadeInUp 1s ease;
}

.hero-title {
    font-size: clamp(2.5rem, 8vw, 5rem);
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-shadow: 2px 4px 20px rgba(0, 0, 0, 0.3);
    line-height: 1.2;
}

.hero-subtitle {
    font-size: clamp(1.1rem, 3vw, 1.8rem);
    margin-bottom: 2rem;
    opacity: 0.95;
    line-height: 1.6;
}

.hero-highlight {
    color: var(--highlight-cyan);
    font-weight: 600;
}

.cta-button {
    display: inline-block;
    padding: 1rem 2.5rem;
    background: var(--primary-teal);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: var(--transition);
    box-shadow: var(--shadow-md);
    margin-top: 1rem;
}

.cta-button:hover {
    background: var(--highlight-cyan);
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

/* ============================================
   Section Styles
   ============================================ */

.section {
    padding: 5rem 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.section-title {
    text-align: center;
    font-size: clamp(2rem, 5vw, 3.5rem);
    color: var(--primary-dark);
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
    width: 100%;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--primary-teal);
    border-radius: 2px;
}

.section-subtitle {
    text-align: center;
    font-size: 1.2rem;
    color: var(--primary-teal);
    margin-bottom: 3rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* ============================================
   Card Components
   ============================================ */

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.card {
    background: var(--warm-white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.card-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: var(--transition);
}

.card:hover .card-image {
    transform: scale(1.05);
}

.card-content {
    padding: 2rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.card-title {
    font-size: 1.5rem;
    color: var(--primary-dark);
    margin-bottom: 1rem;
    line-height: 1.3;
}

.card-text {
    color: var(--text-dark);
    line-height: 1.7;
    flex-grow: 1;
}

/* ============================================
   Feature Box
   ============================================ */

.feature-box {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    margin-bottom: 4rem;
    background: var(--warm-white);
    border-radius: 25px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

.feature-box:hover {
    box-shadow: var(--shadow-lg);
}

.feature-box.reverse {
    direction: rtl;
}

.feature-box.reverse > * {
    direction: ltr;
}

.feature-image {
    width: 100%;
    height: 100%;
    min-height: 400px;
    object-fit: cover;
}

.feature-content {
    padding: 3rem;
    background: var(--light-teal);
}

.feature-title {
    font-size: clamp(1.5rem, 3vw, 2rem);
    color: var(--primary-dark);
    margin-bottom: 1.5rem;
    line-height: 1.3;
}

.feature-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-dark);
    white-space: pre-wrap;
}

.highlight {
    color: var(--highlight-cyan);
    font-weight: 600;
}

.highlight-dark {
    color: #022f91;
    font-weight: 600;
}

/* ============================================
   Footer
   ============================================ */

.footer {
    background: var(--dark-footer);
    color: white;
    padding: 4rem 2rem 2rem;
    margin-top: 5rem;
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-section h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--highlight-cyan);
}

.footer-section p,
.footer-section a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    display: block;
    margin-bottom: 0.8rem;
    transition: var(--transition);
}

.footer-section a:hover {
    color: var(--highlight-cyan);
    padding-left: 5px;
}

.footer-map {
    width: 100%;
    height: 300px;
    border: 0;
    border-radius: 15px;
    box-shadow: var(--shadow-md);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.7);
}

.footer-logo {
    max-width: 250px;
    width: 100%;
    height: auto;
    margin: 2rem auto;
    display: block;
    border-radius: 15px;
}

/* ============================================
   Contact Page Styles
   ============================================ */

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-top: 3rem;
}

.contact-card {
    background: var(--warm-white);
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

.contact-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.contact-icon {
    font-size: 2.5rem;
    color: var(--primary-teal);
    margin-bottom: 1rem;
}

.contact-card h3 {
    font-size: 1.5rem;
    color: var(--primary-dark);
    margin-bottom: 1rem;
}

.contact-card a {
    color: var(--primary-teal);
    text-decoration: none;
    font-size: 1.1rem;
    transition: var(--transition);
    display: block;
    margin: 0.5rem 0;
}

.contact-card a:hover {
    color: var(--highlight-cyan);
    padding-left: 5px;
}

/* ============================================
   Animations
   ============================================ */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.fade-in {
    animation: fadeInUp 0.8s ease;
}

/* ============================================
   Responsive Design
   ============================================ */

@media (max-width: 968px) {
    .feature-box {
        grid-template-columns: 1fr;
    }

    .feature-image {
        min-height: 300px;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

    .card-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
}

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        flex-direction: column;
        background: rgba(235, 244, 246, 0.98);
        width: 100%;
        text-align: center;
        transition: var(--transition);
        box-shadow: var(--shadow-md);
        padding: 2rem 0;
        gap: 1rem;
    }

    .nav-menu.active {
        left: 0;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .mobile-menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(8px, 8px);
    }

    .mobile-menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .mobile-menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -7px);
    }

    .section {
        padding: 3rem 1.5rem;
    }

    .hero {
        padding: 6rem 1.5rem 3rem;
        background-attachment: scroll;
    }

    .feature-content {
        padding: 2rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

@media (max-width: 480px) {
    .nav-container {
        padding: 0 1rem;
    }

    .nav-logo {
        height: 50px;
    }

    .card-grid {
        grid-template-columns: 1fr;
    }

    .section {
        padding: 2rem 1rem;
    }

    .hero {
        min-height: 80vh;
    }
}

/* ============================================
   Utility Classes
   ============================================ */

.text-center {
    text-align: center;
}

.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.mb-3 { margin-bottom: 3rem; }

