/* Base Styles */
:root {
    --primary-color: #00f0ff;
    --secondary-color: #0066cc;
    --dark-bg: #0a0e17;
    --darker-bg: #06090f;
    --light-bg: rgba(255, 255, 255, 0.05);
    --text-color: #ffffff;
    --text-secondary: #8892b0;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Roboto', sans-serif;
    background-color: var(--dark-bg);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Orbitron', sans-serif;
    font-weight: 700;
}

.highlight {
    color: var(--primary-color);
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    font-family: 'Orbitron', sans-serif;
}

.btn.primary {
    background: var(--primary-color);
    color: var(--dark-bg);
}

.btn.secondary {
    background: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 240, 255, 0.3);
}

/* Navigation */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 20px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    background: rgba(10, 14, 23, 0.9);
    backdrop-filter: blur(10px);
    transition: var(--transition);
}

.nav.scrolled {
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

.logo {
    display: flex;
    flex-direction: column;
    line-height: 1;
}

.logo-text {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.8rem;
    font-weight: 800;
    background: linear-gradient(90deg, #00f0ff, #0066cc);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 10px rgba(0, 240, 255, 0.3);
}

.logo-subtext {
    font-size: 0.7rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--text-secondary);
}

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li {
    margin-left: 30px;
}

.nav-links a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    position: relative;
    transition: var(--transition);
}

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

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

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

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 100px 5% 50px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(0, 102, 204, 0.1) 0%, rgba(10, 14, 23, 0.9) 70%);
    z-index: -1;
}

.hero-content {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.hero-text {
    flex: 1;
    min-width: 300px;
    padding-right: 50px;
}

.hero h1 {
    font-size: 4rem;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 40px;
    color: var(--text-secondary);
    max-width: 500px;
}

.cta-buttons {
    display: flex;
    gap: 20px;
    margin-bottom: 50px;
}

.hero-stats {
    display: flex;
    gap: 40px;
    margin-top: 50px;
}

.stat {
    text-align: center;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    font-family: 'Orbitron', sans-serif;
    background: linear-gradient(90deg, #00f0ff, #0066cc);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 5px;
}

.stat-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-secondary);
}

/* Tech Sphere with JARVIS Visualizer */
.tech-sphere {
    position: relative;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, rgba(0, 102, 204, 0.2), transparent 50%);
    box-shadow: 0 0 100px rgba(0, 240, 255, 0.2);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.jarvis-ring {
    position: absolute;
    width: 100%;
    height: 100%;
    border: 2px solid rgba(0, 240, 255, 0.3);
    border-radius: 50%;
    animation: pulse-ring 3s infinite;
}

.jarvis-core {
    width: 120px;
    height: 120px;
    background: radial-gradient(circle, #00f0ff, #0066cc);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 50px rgba(0, 240, 255, 0.5);
    position: relative;
    z-index: 2;
}

.jarvis-core-inner {
    width: 40px;
    height: 40px;
    background-color: #0a0e17;
    border-radius: 50%;
    animation: pulse-core 3s infinite;
}

.frequency-bars {
    position: absolute;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    z-index: 1;
}

.frequency-bars .bar {
    width: 8px;
    height: 20px;
    background: linear-gradient(to top, #00f0ff, #0066cc);
    border-radius: 4px;
    animation: equalize 1.5s infinite ease-in-out;
    transform-origin: bottom;
}

/* Animation for frequency bars */
@keyframes equalize {
    0%, 100% { transform: scaleY(0.3); }
    50% { transform: scaleY(1.5); }
}

.frequency-bars .bar:nth-child(1) { animation-delay: 0.1s; }
.frequency-bars .bar:nth-child(2) { animation-delay: 0.2s; }
.frequency-bars .bar:nth-child(3) { animation-delay: 0.3s; }
.frequency-bars .bar:nth-child(4) { animation-delay: 0.4s; }
.frequency-bars .bar:nth-child(5) { animation-delay: 0.5s; }
.frequency-bars .bar:nth-child(6) { animation-delay: 0.6s; }
.frequency-bars .bar:nth-child(7) { animation-delay: 0.7s; }
.frequency-bars .bar:nth-child(8) { animation-delay: 0.8s; }

/* Active state for when Jarvis is speaking */
.jarvis-speaking .frequency-bars .bar {
    animation: equalize 0.8s infinite ease-in-out;
}

@keyframes pulse-ring {
    0% { transform: scale(0.95); opacity: 0.7; }
    50% { transform: scale(1.05); opacity: 0.3; }
    100% { transform: scale(0.95); opacity: 0.7; }
}

@keyframes pulse-core {
    0% { transform: scale(0.9); }
    50% { transform: scale(1.1); }
    100% { transform: scale(0.9); }
}

/* Services Section */
.services {
    padding: 100px 5%;
    background: var(--darker-bg);
    position: relative;
}

.services h2, .solutions h2, .contact h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 70px;
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
}

.services h2::after, .solutions h2::after, .contact h2::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background: var(--primary-color);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.service-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 40px 30px;
    text-align: center;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--primary-color);
    transform: scaleX(0);
    transform-origin: left;
    transition: var(--transition);
}

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

.service-card:hover::before {
    transform: scaleX(1);
}

.service-icon {
    width: 80px;
    height: 80px;
    background: rgba(0, 240, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    font-size: 30px;
    color: var(--primary-color);
    transition: var(--transition);
}

.service-card:hover .service-icon {
    background: var(--primary-color);
    color: var(--dark-bg);
    transform: rotateY(180deg);
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.service-card p {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.6;
}

/* Solutions Section */
.solutions {
    padding: 100px 5%;
    background: var(--dark-bg);
    position: relative;
}

.solutions::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
}

.solutions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.solution-card {
    border-radius: 10px;
    overflow: hidden;
    position: relative;
    height: 300px;
    transition: var(--transition);
}

.solution-image {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: var(--transition);
}

.solution-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    padding: 30px;
    transform: translateY(100%);
    transition: var(--transition);
}

.solution-card:hover .solution-overlay {
    transform: translateY(0);
}

.solution-card:hover .solution-image {
    transform: scale(1.1);
}

.solution-overlay h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.solution-overlay p {
    color: var(--text-secondary);
}

/* Contact Section */
.contact {
    padding: 100px 5%;
    background: var(--darker-bg);
    position: relative;
}

.contact::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
}

.contact-container {
    display: flex;
    max-width: 1200px;
    margin: 0 auto;
    gap: 50px;
    flex-wrap: wrap;
}

.contact-info {
    flex: 1;
    min-width: 300px;
}

.info-item {
    display: flex;
    align-items: center;
    margin-bottom: 25px;
}

.info-item i {
    font-size: 20px;
    color: var(--primary-color);
    margin-right: 15px;
    width: 30px;
}

.contact-form {
    flex: 2;
    min-width: 300px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 40px;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 15px;
    margin-bottom: 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 5px;
    color: var(--text-color);
    font-family: 'Roboto', sans-serif;
    font-size: 1rem;
    transition: var(--transition);
}

.contact-form textarea {
    min-height: 150px;
    resize: vertical;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(0, 240, 255, 0.2);
}

.contact-form button {
    width: 100%;
}

/* Footer */
footer {
    background: #05090f;
    padding: 70px 5% 30px;
    text-align: center;
    position: relative;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-logo {
    margin-bottom: 20px;
}

.footer-logo .logo-text {
    font-size: 2rem;
}

.footer-logo .logo-subtext {
    font-size: 0.8rem;
}

footer p {
    color: var(--text-secondary);
    margin-bottom: 30px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 30px;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-color);
    font-size: 18px;
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--primary-color);
    color: var(--dark-bg);
    transform: translateY(-3px);
}

.footer-bottom {
    margin-top: 50px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-bottom p {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* JARVIS Assistant Styles */
#jarvis-assistant {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1000;
}

#jarvis-button {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #00f0ff, #0066cc);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

#jarvis-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, #00f0ff, #0066cc, #00f0ff);
    background-size: 200% 200%;
    animation: gradientPulse 3s ease infinite;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

#jarvis-button:hover::before {
    opacity: 1;
}

#jarvis-button i {
    font-size: 24px;
    color: white;
    transition: transform 0.3s ease;
}

#jarvis-button:hover i {
    transform: scale(1.1);
}

#jarvis-chat {
    position: absolute;
    bottom: 80px;
    right: 0;
    width: 350px;
    background: rgba(10, 14, 23, 0.95);
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(0, 240, 255, 0.2);
    backdrop-filter: blur(10px);
    overflow: hidden;
    transform: translateY(20px);
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s ease;
}

#jarvis-chat.visible {
    transform: translateY(0);
    opacity: 1;
    pointer-events: all;
}

.jarvis-header {
    padding: 15px 20px;
    background: rgba(0, 0, 0, 0.3);
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.jarvis-header h3 {
    margin: 0;
    color: var(--primary-color);
    font-family: 'Orbitron', sans-serif;
    font-size: 1.1rem;
    text-shadow: 0 0 10px rgba(0, 240, 255, 0.5);
}

#close-jarvis {
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 1.2rem;
    transition: color 0.3s ease;
}

#close-jarvis:hover {
    color: var(--primary-color);
}

#jarvis-messages {
    height: 300px;
    overflow-y: auto;
    padding: 15px;
    background: rgba(0, 0, 0, 0.2);
}

.jarvis-message {
    margin-bottom: 15px;
    padding: 12px 15px;
    border-radius: 15px;
    max-width: 80%;
    font-size: 0.9rem;
    line-height: 1.4;
    position: relative;
    animation: messageAppear 0.3s ease-out;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

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

.jarvis-message.user {
    background: rgba(0, 240, 255, 0.1);
    margin-left: auto;
    border-bottom-right-radius: 5px;
    border: 1px solid rgba(0, 240, 255, 0.2);
    color: white;
}

.jarvis-message.assistant {
    background: rgba(255, 255, 255, 0.05);
    margin-right: auto;
    border-bottom-left-radius: 5px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
}

.jarvis-message.assistant::before {
    content: 'JARVIS: ';
    color: var(--primary-color);
    font-weight: bold;
    font-size: 0.8em;
    margin-right: 5px;
    font-family: 'Orbitron', sans-serif;
}

.jarvis-input {
    display: flex;
    padding: 15px;
    background: rgba(0, 0, 0, 0.3);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

#jarvis-question {
    flex: 1;
    padding: 12px 15px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 25px;
    color: white;
    font-family: 'Roboto', sans-serif;
    font-size: 0.9rem;
    margin-right: 10px;
    transition: all 0.3s ease;
}

#jarvis-question:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(0, 240, 255, 0.2);
}

#jarvis-listen, #jarvis-send {
    width: 45px;
    height: 45px;
    border: none;
    border-radius: 50%;
    background: var(--primary-color);
    color: var(--dark-bg);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    margin-left: 8px;
    position: relative;
    overflow: hidden;
}

#jarvis-listen::before, #jarvis-send::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, #00f0ff, #0066cc);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}

#jarvis-listen i, #jarvis-send i {
    position: relative;
    z-index: 2;
}

#jarvis-listen:hover, #jarvis-send:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 5px 15px rgba(0, 240, 255, 0.3);
}

#jarvis-listen:hover::before, #jarvis-send:hover::before {
    opacity: 1;
}

#jarvis-listen.listening {
    animation: pulse 1.5s infinite;
    background: #ff3e3e;
    position: relative;
}

#jarvis-listen.listening::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: rgba(255, 62, 62, 0.3);
    animation: pulse-ring 1.5s infinite;
}

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

/* Responsive Design */
@media (max-width: 1200px) {
    .hero-content {
        flex-direction: column;
        text-align: center;
    }
    
    .hero-text {
        padding-right: 0;
        margin-bottom: 50px;
    }
    
    .hero h1 {
        font-size: 3.5rem;
    }
    
    .hero p {
        margin-left: auto;
        margin-right: auto;
    }
    
    .cta-buttons {
        justify-content: center;
    }
    
    .tech-sphere {
        width: 400px;
        height: 400px;
        margin: 0 auto;
    }
    
    .solutions-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .nav {
        padding: 15px 5%;
    }
    
    .nav-links {
        display: none;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero p {
        font-size: 1.1rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        gap: 15px;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 30px;
    }
    
    .tech-sphere {
        width: 300px;
        height: 300px;
    }
    
    .solutions-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-container {
        flex-direction: column;
    }
    
    #jarvis-chat {
        width: 300px;
        right: -20px;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .services-grid, .solutions-grid {
        grid-template-columns: 1fr;
    }
    
    .solution-card {
        height: 250px;
    }
    
    #jarvis-chat {
        width: 280px;
        right: -30px;
    }
}

/* Utility Classes */
.hidden {
    display: none !important;
}
