/* TechBros.Space - Complete Responsive CSS */

/* CSS Variables */
:root {
    --primary: #00f7ff;
    --secondary: #ff00c8;
    --accent: #00ff9d;
    --dark-bg: #0a0a0a;
    --darker-bg: #000000;
    --card-bg: rgba(255, 255, 255, 0.03);
    --light-text: #ffffff;
    --gray-text: #b3b3b3;
    --border-color: rgba(255, 255, 255, 0.05);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: "Space Grotesk", -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--dark-bg);
    color: var(--light-text);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Header & Navigation */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(10px);
    padding: 0.75rem 0;
    z-index: 1000;
    border-bottom: 1px solid var(--border-color);
}

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

/* Logo Text - Multicolor Gradient */
.logo {
    font-size: clamp(1rem, 3vw, 1.5rem);
    font-weight: 700;
    background: linear-gradient(90deg, var(--primary), var(--secondary), var(--accent), var(--primary));
    background-size: 300% 300%;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    letter-spacing: 1px;
    animation: gradient-shift 3s ease infinite;
    font-family: "Space Grotesk", sans-serif;
}

@keyframes gradient-shift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

/* Ensure logo is not clickable */
.logo-link {
    pointer-events: none;
}

/* Navigation Menu */
.nav-menu {
    display: flex;
    list-style: none;
    gap: clamp(1rem, 2vw, 2rem);
}

.nav-menu a {
    text-decoration: none;
    color: var(--light-text);
    font-weight: 500;
    font-size: clamp(0.85rem, 1.5vw, 1rem);
    transition: color 0.3s ease;
    position: relative;
    white-space: nowrap;
}

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

.nav-menu a::after {
    content: "";
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--primary);
    transition: width 0.3s ease;
}

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

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1001;
}

.menu-toggle span {
    width: 28px;
    height: 3px;
    background: var(--light-text);
    border-radius: 2px;
    transition: var(--transition);
}

.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: clamp(4rem, 10vh, 8rem) 1.5rem;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: "";
    position: absolute;
    width: 200%;
    height: 200%;
    background: conic-gradient(
        from 0deg at center center,
        var(--primary) 0deg,
        transparent 90deg,
        var(--secondary) 180deg,
        transparent 270deg
    );
    animation: rotate 20s linear infinite;
    z-index: -1;
    opacity: 0.15;
}

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

.hero-content {
    max-width: 900px;
    width: 100%;
}

.hero-title {
    font-size: clamp(2rem, 8vw, 5rem);
    font-weight: 700;
    margin-bottom: 1rem;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    line-height: 1.1;
    word-wrap: break-word;
}

.hero-subtitle {
    font-size: clamp(1rem, 3vw, 1.5rem);
    color: var(--gray-text);
    margin-bottom: 1.5rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

.hero-tagline {
    font-size: clamp(0.8rem, 2.5vw, 1.2rem);
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: clamp(2px, 1vw, 4px);
    margin-bottom: 2rem;
    font-weight: 600;
}

/* Buttons */
.cta-button,
.cta-button-large,
.contact-button,
.premium-button {
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    color: var(--darker-bg);
    border: none;
    padding: clamp(0.8rem, 2vw, 1.2rem) clamp(1.5rem, 4vw, 3rem);
    font-size: clamp(0.9rem, 2vw, 1.1rem);
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    transition: var(--transition);
    text-transform: uppercase;
    letter-spacing: 1px;
    white-space: nowrap;
}

.cta-button:hover,
.cta-button-large:hover,
.contact-button:hover,
.premium-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 247, 255, 0.4);
}

/* Sections General */
section {
    padding: clamp(3rem, 8vw, 6rem) clamp(1rem, 4vw, 2rem);
    max-width: 1200px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: clamp(2rem, 6vw, 4rem);
}

.section-header h2 {
    font-size: clamp(1.5rem, 5vw, 3rem);
    margin-bottom: 1rem;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.section-header p {
    color: var(--gray-text);
    font-size: clamp(0.9rem, 2vw, 1.2rem);
    max-width: 600px;
    margin: 0 auto;
}

/* Services Grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
    gap: clamp(1rem, 3vw, 2rem);
    width: 100%;
}

.service-card {
    background: linear-gradient(145deg, rgba(20, 20, 20, 0.8), rgba(10, 10, 10, 0.9));
    border: 1px solid rgba(0, 247, 255, 0.2);
    border-radius: 15px;
    padding: clamp(1.5rem, 4vw, 2.5rem);
    text-align: center;
    transition: var(--transition);
    backdrop-filter: blur(10px);
    width: 100%;
}

.service-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary);
    box-shadow: 0 15px 40px rgba(0, 247, 255, 0.15);
}

.service-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 1.5rem;
    color: var(--primary);
    stroke-width: 1.5;
}

.service-card h3 {
    font-size: clamp(1.1rem, 3vw, 1.5rem);
    margin-bottom: 1rem;
    color: var(--light-text);
}

.service-card p {
    color: var(--gray-text);
    font-size: clamp(0.85rem, 2vw, 1rem);
    line-height: 1.7;
}

/* About Section */
.about {
    background: rgba(15, 15, 15, 0.7);
}

.about-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.about-content p {
    margin-bottom: 1.5rem;
    font-size: clamp(0.95rem, 2.5vw, 1.2rem);
    color: var(--gray-text);
    line-height: 1.8;
}

.about-intro {
    font-size: clamp(1rem, 3vw, 1.3rem) !important;
    color: var(--light-text) !important;
    margin-bottom: 2rem !important;
}

.stats {
    display: flex;
    justify-content: center;
    gap: clamp(1.5rem, 5vw, 4rem);
    flex-wrap: wrap;
    margin-top: 2rem;
}

.stat-item {
    text-align: center;
    min-width: 100px;
}

.stat-number {
    display: block;
    font-size: clamp(2rem, 6vw, 3rem);
    font-weight: 700;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.stat-label {
    display: block;
    color: var(--gray-text);
    font-size: clamp(0.75rem, 2vw, 0.9rem);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 0.5rem;
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, #0a1929, #1a0a29);
    padding: clamp(3rem, 10vw, 6rem) clamp(1rem, 4vw, 2rem);
    text-align: center;
    border-top: 1px solid rgba(0, 247, 255, 0.2);
    border-bottom: 1px solid rgba(0, 247, 255, 0.2);
}

.cta-content {
    max-width: 800px;
    margin: 0 auto;
    padding: clamp(1.5rem, 4vw, 3rem);
    background: rgba(10, 10, 10, 0.7);
    border-radius: 20px;
    border: 1px solid rgba(0, 247, 255, 0.2);
}

.cta-title {
    font-size: clamp(1.5rem, 5vw, 2.5rem);
    margin-bottom: 1.5rem;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.cta-subtitle {
    font-size: clamp(0.9rem, 2.5vw, 1.2rem);
    color: var(--gray-text);
    margin-bottom: 2rem;
    line-height: 1.6;
}

/* Contact Section */
.contact-content {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.contact-info {
    margin-bottom: 2rem;
}

.contact-info p {
    margin-bottom: 1rem;
    font-size: clamp(0.9rem, 2.5vw, 1.2rem);
    color: var(--gray-text);
}

/* Footer */
.footer {
    background: var(--darker-bg);
    padding: clamp(2rem, 6vw, 4rem) 0;
    border-top: 1px solid var(--border-color);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 clamp(1rem, 4vw, 2rem);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: clamp(1.5rem, 4vw, 2rem);
}

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

.footer-section:first-child {
    text-align: left;
}

.footer-section p {
    color: var(--gray-text);
    font-size: clamp(0.85rem, 2vw, 1rem);
}

/* Footer Logo Text */
.logo-text {
    font-size: clamp(1.2rem, 3vw, 1.8rem);
    font-weight: 700;
    display: block;
    margin-bottom: 0.75rem;
    background: linear-gradient(90deg, var(--primary), var(--secondary), var(--accent), var(--primary));
    background-size: 300% 300%;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: gradient-shift 3s ease infinite;
}

/* Loading Overlay */
.loading-overlay {
    position: fixed;
    inset: 0;
    background: rgba(10, 10, 10, 0.95);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 1;
    transition: opacity 0.5s ease;
}

.loading-overlay.hidden {
    opacity: 0;
    pointer-events: none;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(0, 247, 255, 0.2);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* Utility Classes */
button {
    cursor: pointer;
    user-select: none;
}

a {
    cursor: pointer;
    text-decoration: none;
}

/* ===========================================
   RESPONSIVE BREAKPOINTS
   =========================================== */

/* Tablet Portrait (768px and below) */
@media screen and (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        flex-direction: column;
        background: rgba(10, 10, 10, 0.98);
        width: 80%;
        max-width: 300px;
        height: 100vh;
        padding: 5rem 2rem 2rem;
        border-radius: 20px 0 0 20px;
        box-shadow: -10px 0 40px rgba(0, 0, 0, 0.5);
    }

    .nav-menu.active {
        right: 0;
    }

    .nav-menu li {
        margin: 1rem 0;
    }

    .nav-menu a {
        font-size: 1.1rem;
    }

    .hero-title {
        font-size: clamp(1.8rem, 10vw, 3rem);
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .stats {
        flex-direction: column;
        align-items: center;
        gap: 2rem;
    }

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

    .footer-section:first-child {
        text-align: center;
    }
}

/* Mobile Landscape (480px and below) */
@media screen and (max-width: 480px) {
    html {
        font-size: 14px;
    }

    .header-container {
        padding: 0 1rem;
    }

    .logo-image {
        height: 35px;
    }

    .hero {
        padding: 4rem 1rem 6rem;
    }

    .hero-title {
        font-size: clamp(1.5rem, 8vw, 2.5rem);
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .cta-button,
    .cta-button-large {
        width: 100%;
        padding: 1rem 2rem;
    }

    .services-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .service-card {
        padding: 1.5rem;
    }

    .section-header h2 {
        font-size: 1.8rem;
    }
}

/* Small Mobile (360px and below) */
@media screen and (max-width: 360px) {
    .logo-image {
        height: 28px;
    }

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

    .hero-subtitle {
        font-size: 0.85rem;
    }

    .stat-number {
        font-size: 1.5rem;
    }

    .stat-label {
        font-size: 0.7rem;
    }
}

/* Large Tablet (1024px) */
@media screen and (min-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Desktop (1200px and up) */
@media screen and (min-width: 1200px) {
    .services-grid {
        grid-template-columns: repeat(5, 1fr);
    }
}

/* Touch Device Optimizations */
@media (hover: none) and (pointer: coarse) {
    .service-card:hover {
        transform: none;
    }

    .cta-button:active,
    .cta-button-large:active,
    .contact-button:active {
        transform: scale(0.98);
    }
}

/* Landscape Orientation */
@media screen and (max-width: 896px) and (orientation: landscape) {
    .hero {
        min-height: auto;
        padding: 4rem 2rem;
    }

    .hero-content {
        max-width: 600px;
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    html {
        scroll-behavior: auto;
    }
}

/* Print Styles */
@media print {
    .header,
    .cta-section,
    .loading-overlay {
        display: none;
    }

    body {
        background: white;
        color: black;
    }
}

