/* ============================================
   ALLTECHNICS - MAIN STYLESHEET
   ============================================ */

:root {
    --primary: #0066cc;
    --primary-dark: #0052a3;
    --secondary: #1a1a2e;
    --secondary-light: #2d3e50;
    --accent: #00a8ff;
    --bg-dark: #0f1419;
    --bg-light: #f8f9fa;
    --text-dark: #1a1a2e;
    --text-light: #666666;
    --text-lighter: #999999;
    --border: #e0e0e0;
    --border-dark: #2d3e50;
    --white: #ffffff;
    --success: #10b981;
    --error: #ef4444;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Rajdhani', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--text-dark);
    background: var(--white);
    line-height: 1.6;
    overflow-x: hidden;
}

/* ============================================
   TYPOGRAPHY
   ============================================ */

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 1rem;
}

h1 {
    font-size: 3.5rem;
}

h2 {
    font-size: 2.5rem;
}

h3 {
    font-size: 1.75rem;
}

h4 {
    font-size: 1.35rem;
}

p {
    margin-bottom: 1rem;
    color: var(--text-light);
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--primary-dark);
}

/* ============================================
   NAVIGATION
   ============================================ */

/* Only the main header nav gets fixed positioning */
body > nav,
header nav {
    position: fixed;
    top: 0;
    width: 100%;
    background: var(--secondary);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid var(--border-dark);
    transition: all 0.3s ease;
}

body > nav.sticky,
header nav.sticky {
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

/* Footer nav elements must NOT be fixed */
footer nav {
    position: static;
    background: none;
    z-index: auto;
    border: none;
    padding: 0;
    margin: 0;
    width: auto;
    backdrop-filter: none;
}

.nav-container {
    max-width: 1400px;
    max-height: 90px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.2rem 4%;
}

.logo-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    transition: transform 0.3s ease;
}

.logo-link:hover {
    transform: translateY(-2px);
}

.logo-img {
    height: 100px;
    width: auto;
    display: block;
}

.logo-text {
    font-family: 'Rajdhani', sans-serif;
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--white);
    letter-spacing: 2px;
}

.logo-text span {
    color: var(--accent);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 0;
    align-items: center;
}

.nav-menu li {
    margin: 0;
}

.nav-menu a {
    display: block;
    padding: 0.8rem 1.8rem;
    color: rgba(255, 255, 255, 0.85);
    font-weight: 500;
    letter-spacing: 0.5px;
    position: relative;
    transition: color 0.3s ease;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--accent);
}

.nav-menu a:hover::after,
.nav-menu a.active::after {
    width: 80%;
}

.nav-cta {
    background: var(--accent);
    color: var(--white);
    padding: 0.75rem 2rem;
    border-radius: 4px;
    margin-left: 1.5rem;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid var(--accent);
}

.nav-cta:hover {
    background: transparent;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 168, 255, 0.3);
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--white);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
}

/* ============================================
   HERO SECTION
   ============================================ */

.hero {
    min-height: 100vh;
    background: linear-gradient(135deg, var(--secondary-light) 0%, var(--secondary) 100%);
    position: relative;
    display: flex;
    align-items: center;
    overflow: hidden;
    padding-top: 70px;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(0, 168, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(0, 102, 204, 0.08) 0%, transparent 50%);
}

.hero-label {
    display: inline-block;
    color:  var(--white);
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 4px;
    text-transform: uppercase;
    margin-bottom: 2rem;
    padding: 0.7rem 2rem;
    border: 2px solid var(--white);
    border-radius: 50px;
    animation: fadeSlideUp 0.8s ease;
}

.hero-content {
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
    padding: 4rem 4%;
    position: relative;
    z-index: 2;
}

.hero-text h1 {
    color: var(--white);
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.hero-text .highlight {
    color: var(--accent);
}

.hero-text p {
    color: rgba(255, 255, 255, 0.85);
    font-size: 1.2rem;
    margin-bottom: 2rem;
    max-width: 600px;
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.btn {
    padding: 1rem 2.5rem;
    border-radius: 4px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    text-decoration: none;
    display: inline-block;
    text-align: center;
    letter-spacing: 0.5px;
}

.btn-primary {
    background: var(--accent);
    color: var(--white);
}

.btn-primary:hover {
    background: #0092e0;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 168, 255, 0.4);
}

.btn-secondary {
    background: transparent;
    color: var(--white);
    border: 2px solid var(--accent);
}

.btn-secondary:hover {
    background: var(--accent);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 168, 255, 0.3);
}

/* ============================================
   SECTIONS
   ============================================ */

section {
    padding: 5rem 4%;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.section-header h2 {
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.section-header p {
    font-size: 1.1rem;
    color: var(--text-light);
}

/* ============================================
   CARDS
   ============================================ */

.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 2rem;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
    border-color: var(--accent);
}

.card-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: var(--white);
    margin-bottom: 1.5rem;
}

.card h3 {
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.card p {
    color: var(--text-light);
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.card a {
    color: var(--primary);
    font-weight: 600;
    transition: all 0.3s ease;
}

.card a:hover {
    color: var(--accent);
    transform: translateX(5px);
}

/* ============================================
   BACKGROUND SECTIONS
   ============================================ */

.section-light {
    background: var(--bg-light);
}

.section-dark {
    background: var(--secondary);
    color: var(--white);
}

.section-dark h2 {
    color: var(--white);
}

.section-dark p {
    color: rgba(255, 255, 255, 0.85);
}

/* ============================================
   FOOTER
   ============================================ */

footer {
    background: var(--secondary);
    color: var(--white);
    padding: 3rem 4%;
    margin-top: 0;
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-col h4 {
    color: var(--white);
    margin-bottom: 1.5rem;
}

.footer-col p {
    color: rgba(255, 255, 255, 0.75);
    margin-bottom: 1rem;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 0.8rem;
}

.footer-col ul li a {
    color: rgba(255, 255, 255, 0.75);
    transition: color 0.3s ease;
}

.footer-col ul li a:hover {
    color: var(--accent);
}

.footer-divider {
    border-top: 1px solid var(--border-dark);
    padding-top: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-copyright {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
}

.footer-social {
    display: flex;
    gap: 1.5rem;
}

.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: var(--white);
    transition: all 0.3s ease;
}

.social-link:hover {
    background: var(--accent);
    transform: translateY(-3px);
}

/* ============================================
   FORMS
   ============================================ */

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-dark);
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.9rem 1rem;
    border: 1px solid var(--border);
    border-radius: 4px;
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 150px;
}

/* ============================================
   UTILITIES
   ============================================ */

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 4%;
}

.text-center {
    text-align: center;
}

.text-primary {
    color: var(--primary);
}

.text-accent {
    color: var(--accent);
}

.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; }

.flex {
    display: flex;
}

.flex-center {
    display: flex;
    align-items: center;
    justify-content: center;
}

.gap-1 { gap: 1rem; }
.gap-2 { gap: 2rem; }
.gap-3 { gap: 3rem; }
/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

@media (max-width: 1024px) {
    h1 {
        font-size: 2.8rem;
    }

    h2 {
        font-size: 2rem;
    }

    h3 {
        font-size: 1.5rem;
    }

    .nav-container {
        padding: 1rem 4%;
    }

    .logo-text {
        font-size: 1.2rem;
    }

    .logo-img {
        height: 80px;
    }

    .hero-text h1 {
        font-size: 2.8rem;
    }

    .hero-text p {
        font-size: 1.1rem;
    }

    section {
        padding: 4rem 4%;
    }
}

@media (max-width: 820px) {
    .hero-label {
        font-size: 20px;
        padding: 0.6rem 1.5rem;
    }
    h1 {
        font-size: 2.2rem;
    }

    h2 {
        font-size: 1.6rem;
    }

    h3 {
        font-size: 1.2rem;
    }

    .menu-toggle {
        display: block;
        z-index: 1001;
    }

    /* Mobile dropdown — header nav only */
    body > nav .nav-menu {
        position: fixed;
        left: 0;
        top: 60px;
        width: 100%;
        flex-direction: column;
        background: var(--secondary);
        gap: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }

    body > nav .nav-menu li {
        margin: 0;
        width: stretch;
    }

    /* Footer navs must stay static & visible at all breakpoints */
    footer nav,
    footer nav ul {
        position: static !important;
        max-height: none !important;
        overflow: visible !important;
        width: auto !important;
        background: none !important;
    }
    
    .logo-img {
        height: 70px;
    }

    body > nav .nav-menu.active {
        max-height: 500px;
    }

    body > nav .nav-menu a {
        padding: 1rem 4%;
        border-bottom: 1px solid var(--border-dark);
    }

    .nav-cta {
        margin-left: 0;
        margin: 1rem 4%;
        display: block;
        text-align: center;
    }

    .hero {
        padding-top: 60px;
    }

    .hero-label {
        font-size: 12px;
        padding: 0.5rem 1.2rem;
        max-width: auto;
    }
    .hero-text h1 {
        font-size: 2rem;
    }

    .hero-text p {
        font-size: 1rem;
    }

    .hero-buttons {
        flex-direction: column;
    }
    

    .btn {
        width: 100%;
    }

    .hero-content {
        padding: 3rem 4%;
    }

    .cards-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .footer-container {
        grid-template-columns: 1fr;
    }

    section {
        padding: 3rem 4%;
    }

    .section-header {
        margin-bottom: 3rem;
    }

    .footer-divider {
        flex-direction: column-reverse;
        align-items: flex-start;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 1.8rem;
    }

    h2 {
        font-size: 1.3rem;
    }

    h3 {
        font-size: 1.1rem;
    }

    .hero-label {
        font-size: 10px;
        padding: 0.5rem 1.2rem;
        max-width: auto;
    }
    
    .logo-text {
        font-size: 1rem;
    }

    .logo-img {
        height: 70px;
    }

    .nav-container {
        padding: 0.8rem 4%;
    }

    .hero-text h1 {
        font-size: 1.6rem;
        margin-bottom: 1rem;
    }

    .hero-text p {
        font-size: 0.95rem;
        margin-bottom: 1.5rem;
    }

    .btn {
        padding: 0.8rem 1.5rem;
        font-size: 0.9rem;
    }

    section {
        padding: 2.5rem 4%;
    }

    .cards-grid {
        gap: 1rem;
    }

    .card {
        padding: 1.5rem;
    }

    .section-header {
        margin-bottom: 2rem;
    }

    .section-header h2 {
        font-size: 1.5rem;
    }

    .hero-content {
        padding: 2rem 4%;
    }
}

/* ============================================
   ANIMATIONS
   ============================================ */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease forwards;
}

@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}
