/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg-primary: #0a0a0a;
    --bg-secondary: #111111;
    --text-primary: #ffffff;
    --text-secondary: #888888;
    --accent: #510A94;
    --border: #222222;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Navigation */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 1.5rem 0;
    border-bottom: 1px solid var(--border);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo svg {
    height: 32px;
    width: 32px;
}

.logo-text {
    font-size: 1.25rem;
    font-weight: 600;
    letter-spacing: -0.5px;
    color: #ffffff;
}

.logo-text span {
    color: var(--accent);
}

/* Desktop Navigation */
.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.nav-links a:hover {
    color: var(--accent);
}

/* Mobile Menu Button - Hidden by default */
.mobile-menu-btn {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 10px;
    position: relative;
    z-index: 1002;
}

.hamburger-box {
    width: 30px;
    height: 24px;
    position: relative;
}

.hamburger-box span {
    display: block;
    position: absolute;
    height: 3px;
    width: 100%;
    background: var(--text-primary);
    border-radius: 3px;
    opacity: 1;
    left: 0;
    transform: rotate(0deg);
    transition: 0.25s ease-in-out;
}

.hamburger-box span:nth-child(1) {
    top: 0px;
}

.hamburger-box span:nth-child(2) {
    top: 10px;
}

.hamburger-box span:nth-child(3) {
    top: 20px;
}

/* Hamburger Animation */
.mobile-menu-btn.active .hamburger-box span:nth-child(1) {
    top: 10px;
    transform: rotate(135deg);
}

.mobile-menu-btn.active .hamburger-box span:nth-child(2) {
    opacity: 0;
    left: -60px;
}

.mobile-menu-btn.active .hamburger-box span:nth-child(3) {
    top: 10px;
    transform: rotate(-135deg);
}

/* Mobile Navigation Overlay */
.mobile-nav-overlay {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100vh;
    background: rgba(10, 10, 10, 0.98);
    transition: right 0.3s ease-in-out;
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mobile-nav-overlay.active {
    right: 0;
}

.mobile-nav-links {
    list-style: none;
    text-align: center;
}

.mobile-nav-links li {
    margin: 2rem 0;
}

.mobile-nav-links a {
    color: var(--text-primary);
    text-decoration: none;
    font-size: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: color 0.3s ease;
}

.mobile-nav-links a:hover {
    color: var(--accent);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    position: relative;
    background:
        linear-gradient(135deg, rgba(81, 10, 148, 0.1) 0%, transparent 50%),
        linear-gradient(225deg, rgba(0, 212, 255, 0.05) 0%, transparent 50%),
        linear-gradient(315deg, rgba(255, 107, 53, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 20% 80%, rgba(81, 10, 148, 0.2) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(0, 212, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(255, 107, 53, 0.1) 0%, transparent 50%),
        var(--bg-primary);
    overflow: hidden;
    width: 100%;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 4rem;
    position: relative;
    z-index: 2;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 400 400"><defs><pattern id="circuit" width="40" height="40" patternUnits="userSpaceOnUse"><path d="M10 10h20v20h-20z" fill="none" stroke="%23510a94" stroke-width="0.5" opacity="0.3"/><circle cx="20" cy="20" r="2" fill="%23510a94" opacity="0.2"/><path d="M0 20h40M20 0v40" stroke="%23510a94" stroke-width="0.3" opacity="0.2"/></pattern></defs><rect width="400" height="400" fill="url(%23circuit)"/></svg>');
    opacity: 0.4;
    z-index: 0;
    animation: circuitFlow 20s linear infinite;
}

.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 25% 25%, rgba(81, 10, 148, 0.8) 0%, transparent 2%),
        radial-gradient(circle at 75% 75%, rgba(0, 212, 255, 0.6) 0%, transparent 2%),
        radial-gradient(circle at 50% 90%, rgba(255, 107, 53, 0.6) 0%, transparent 2%),
        radial-gradient(circle at 10% 60%, rgba(81, 10, 148, 0.4) 0%, transparent 1%);
    animation: particleFloat 15s ease-in-out infinite;
    z-index: 1;
}

@keyframes circuitFlow {
    0% { transform: translateX(0) translateY(0); }
    25% { transform: translateX(-10px) translateY(-10px); }
    50% { transform: translateX(-20px) translateY(0); }
    75% { transform: translateX(-10px) translateY(10px); }
    100% { transform: translateX(0) translateY(0); }
}

@keyframes particleFloat {
    0%, 100% { opacity: 0.3; transform: scale(1); }
    50% { opacity: 0.8; transform: scale(1.2); }
}

.hero-content {
    text-align: left;
    padding: 2rem 0;
    animation: fadeInUp 1s ease;
    position: relative;
    z-index: 2;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.cta-primary, .cta-secondary {
    padding: 1rem 2rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-block;
}

.cta-primary {
    background: var(--accent);
    color: white;
}

.cta-primary:hover {
    background: #6b1bb8;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(81, 10, 148, 0.3);
}

.cta-secondary {
    background: transparent;
    color: var(--accent);
    border: 2px solid var(--accent);
}

.cta-secondary:hover {
    background: var(--accent);
    color: white;
    transform: translateY(-2px);
}

/* Hero Visual */
.hero-visual {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 2;
}

.convergence-animation {
    position: relative;
    width: 300px;
    height: 200px;
}

.security-sphere {
    position: absolute;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.9rem;
    animation: pulse 2s infinite;
}

.security-sphere.cyber {
    top: 20px;
    left: 20px;
    background: linear-gradient(135deg, #00d4ff 0%, #0099cc 100%);
    color: white;
}

.security-sphere.physical {
    bottom: 20px;
    right: 20px;
    background: linear-gradient(135deg, #ff6b35 0%, #cc5529 100%);
    color: white;
}

.bridge-line {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 2px;
    height: 120px;
    background: linear-gradient(180deg, var(--accent) 0%, transparent 100%);
    transform: translate(-50%, -50%) rotate(45deg);
    animation: bridgeGlow 3s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

@keyframes bridgeGlow {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; box-shadow: 0 0 20px var(--accent); }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    margin-bottom: 1.5rem;
    letter-spacing: -2px;
    line-height: 1.1;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    font-weight: 300;
}

/* Section Styles */
section {
    padding: 6rem 0;
}

h2 {
    font-size: 2.5rem;
    margin-bottom: 3rem;
    letter-spacing: -1px;
    text-align: center;
}

/* Mission Section */
.mission {
    background: linear-gradient(135deg, #111111 0%, #0a0a0a 100%);
    border-top: 1px solid var(--border);
}

.mission-content {
    display: grid;
    gap: 4rem;
}

.mission-statement {
    font-size: 1.4rem;
    color: #e0e0e0;
    line-height: 1.8;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    background: linear-gradient(135deg, var(--accent) 0%, #7a1db8 100%);
    padding: 2rem;
    border-radius: 12px;
    font-weight: 500;
}

.mission-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.stat-item {
    text-align: center;
    padding: 2rem;
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    border-radius: 12px;
    border: 1px solid var(--border);
    transition: transform 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-5px);
    border-color: var(--accent);
}

.stat-icon {
    width: 48px;
    height: 48px;
    margin-bottom: 1rem;
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: auto;
    margin-right: auto;
}

.stat-icon svg {
    width: 100%;
    height: 100%;
}

.stat-item h3 {
    color: var(--accent);
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.stat-item p {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Solutions Section */
.solutions {
    background: var(--bg-secondary);
}

.solutions-intro {
    text-align: center;
    margin-bottom: 3rem;
}

.solutions-intro p {
    font-size: 1.2rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

.solutions-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-top: 4rem;
}

.solution-card {
    padding: 2.5rem;
    border: 1px solid var(--border);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #1a1a1a 0%, #111111 100%);
    border-radius: 12px;
}

.solution-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--accent);
    transform: translateX(-100%);
    transition: transform 0.3s ease;
}

.solution-card:hover::before {
    transform: translateX(0);
}

.solution-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent);
    box-shadow: 0 15px 35px rgba(81, 10, 148, 0.2);
}

.solution-icon {
    width: 48px;
    height: 48px;
    color: var(--accent);
    margin-bottom: 1.5rem;
}

.solution-icon svg {
    width: 100%;
    height: 100%;
}

.solution-link {
    display: inline-block;
    margin-top: 1rem;
    color: var(--accent);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.solution-link:hover {
    color: #7a1db8;
    transform: translateX(5px);
}

.solution-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.solution-card p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1rem;
}

/* Contact Section */
.contact {
    text-align: center;
}

.contact-content {
    max-width: 600px;
    margin: 0 auto;
}

.contact-intro {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.contact-info {
    margin-top: 3rem;
}

.contact-info p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.contact-info a {
    color: var(--accent);
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.contact-info a:hover {
    opacity: 0.8;
}

/* Footer */
footer {
    text-align: center;
    padding: 3rem 0;
    border-top: 1px solid var(--border);
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Animations */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeIn 0.8s ease forwards;
    animation-play-state: paused;
}

@keyframes fadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Navigation Dropdown Styles */
.dropdown {
    position: relative;
}

.dropdown-toggle::after {
    content: '▼';
    font-size: 0.7rem;
    margin-left: 0.5rem;
    transition: transform 0.3s ease;
}

.dropdown:hover .dropdown-toggle::after {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: rgba(10, 10, 10, 0.98);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(81, 10, 148, 0.3);
    list-style: none;
    padding: 0.5rem 0;
    min-width: 150px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1001;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li {
    padding: 0;
}

.dropdown-menu a {
    display: block;
    padding: 0.5rem 1rem;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.3s ease;
}

.dropdown-menu a:hover,
.dropdown-menu a.active {
    background: rgba(81, 10, 148, 0.2);
    color: var(--accent);
    padding-left: 1.5rem;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    /* Show mobile menu button */
    .mobile-menu-btn {
        display: block;
    }
    
    /* Hide desktop nav */
    .desktop-nav {
        display: none;
    }
    
    /* Hide dropdown menus on mobile */
    .dropdown-menu {
        display: none;
    }
    
    /* Stack logo text on mobile */
    .logo {
        flex-direction: column;
        align-items: center;
        gap: 0.25rem;
    }

    .logo-text {
        font-size: 0.8rem;
        font-weight: 600;
        text-align: center;
        line-height: 1;
        letter-spacing: 0.5px;
    }

    .logo svg {
        height: 24px;
        width: 24px;
    }
}

/* Very small mobile - stack company name words */
@media (max-width: 480px) {
    .logo-text {
        font-size: 0.7rem;
        display: flex;
        flex-direction: column;
        line-height: 0.9;
    }

    .logo-text span {
        display: block;
    }
    
    /* Adjust container padding */
    .container {
        padding: 0 1.5rem;
    }
    
    .nav-container {
        padding: 0 1.5rem;
    }
    
    /* Typography adjustments */
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.75rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    /* Section padding */
    section {
        padding: 4rem 0;
    }
    
    /* Services grid to single column */
    .services-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .service-card {
        padding: 2rem;
    }
    
    /* About text */
    .about-text {
        font-size: 1rem;
    }
}

/* Why Choose Us Section */
.why-choose {
    background: linear-gradient(135deg, #0a0a0a 0%, #111111 100%);
    border-top: 1px solid var(--border);
}

.challenges-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 3rem;
    margin-bottom: 4rem;
}

.challenge-card {
    padding: 2.5rem;
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    border-radius: 12px;
    border: 1px solid var(--border);
    transition: transform 0.3s ease;
}

.challenge-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent);
}

.challenge-icon {
    width: 60px;
    height: 60px;
    margin-bottom: 1.5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.physical-challenge {
    background: linear-gradient(135deg, #ff6b35 0%, #cc5529 100%);
    color: white;
}

.cyber-challenge {
    background: linear-gradient(135deg, #00d4ff 0%, #0099cc 100%);
    color: white;
}

.challenge-icon svg {
    width: 24px;
    height: 24px;
}

.challenge-card h3 {
    color: var(--text-primary);
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.challenge-card p {
    color: var(--text-secondary);
    line-height: 1.6;
}

.solution-statement {
    text-align: center;
    background: linear-gradient(135deg, var(--accent) 0%, #7a1db8 100%);
    padding: 3rem;
    border-radius: 12px;
    color: white;
}

.solution-statement h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: white;
}

.solution-statement p {
    font-size: 1.1rem;
    line-height: 1.8;
    max-width: 800px;
    margin: 0 auto;
}

/* Contact Section */
.contact {
    padding: 8rem 0;
    background: linear-gradient(135deg, var(--accent) 0%, #2a0845 100%);
    color: white;
    text-align: center;
}

.contact h2 {
    color: white;
    margin-bottom: 2rem;
    font-size: 2.5rem;
}

.contact-intro {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.contact-info {
    margin-bottom: 2rem;
}

.contact-info p {
    font-size: 1.1rem;
}

.contact-info a {
    color: white;
    text-decoration: none;
    border-bottom: 2px solid rgba(255, 255, 255, 0.3);
    transition: border-color 0.3s ease;
}

.contact-info a:hover {
    border-color: white;
}

.contact-cta {
    margin-top: 2rem;
}

.cta-button {
    display: inline-block;
    background: white;
    color: var(--accent);
    padding: 1rem 2rem;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.cta-button:hover {
    background: #f0f0f0;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

/* Mobile Responsiveness for Enhanced Hero */
@media (max-width: 768px) {
    .hero {
        min-height: 80vh;
    }

    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        min-height: 80vh;
        gap: 2rem;
        padding: 2rem 1rem;
    }

    .hero::before {
        animation: circuitFlow 30s linear infinite;
        opacity: 0.2;
    }

    .hero::after {
        animation: particleFloat 20s ease-in-out infinite;
        opacity: 0.4;
    }

    .hero-content {
        text-align: center;
        order: 2;
    }

    .hero-visual {
        order: 1;
    }

    .solutions-grid {
        grid-template-columns: 1fr;
    }

    .solution-card {
        padding: 2rem;
    }
}