/* CSS Reset and Base Styles */
:root {
    /* Monochromatic Minimalism Color Scheme */
    --primary-color: #6366f1;
    --primary-dark: #4f46e5;
    --secondary-color: #ec4899;
    --accent-color: #06b6d4;
    
    /* Text Colors - Refined Grays */
    --text-primary: #E0E0E0;        /* Light gray for primary text */
    --text-secondary: #B0B0B0;      /* Medium gray for secondary text */
    --text-light: #888888;          /* Darker gray for accents */
    --text-white: #F5F5F5;          /* Off-white for highlights */
    
    /* Background Colors - Soft Dark Grays */
    --bg-primary: #121212;          /* Soft dark gray instead of pure black */
    --bg-secondary: #1c1c1c;        /* Slightly lighter for cards */
    --bg-card: #282828;             /* Medium gray for elevated content */
    --bg-dark: #0a0a0a;             /* Deeper gray for contrast */
    
    /* Border and Accent Colors */
    --border-color: #333333;        /* Subtle borders */
    --border-light: #404040;        /* Lighter borders for emphasis */
    
    /* Shadows - Adjusted for gray backgrounds */
    --shadow-light: 0 1px 3px 0 rgba(0, 0, 0, 0.4);
    --shadow-medium: 0 4px 6px -1px rgba(0, 0, 0, 0.5);
    --shadow-large: 0 10px 15px -3px rgba(0, 0, 0, 0.6);
    
    /* Gradients - Maintained for brand accent */
    --gradient-primary: linear-gradient(135deg, #6366f1 0%, #ec4899 100%);
    --gradient-secondary: linear-gradient(135deg, #06b6d4 0%, #6366f1 100%);
    
    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-medium: 0.3s ease;
    --transition-slow: 0.5s ease;
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-primary);
    overflow-x: hidden;
}

/* Global text styling for monochromatic theme */
.text-muted {
    color: var(--text-secondary) !important;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 600;
    line-height: 1.2;
}

.text-gradient {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Navigation */
.navbar {
    background: rgba(28, 28, 28, 0.95) !important;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    transition: var(--transition-medium);
    padding: 1rem 0;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1030;
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-white) !important;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    text-decoration: none;
    transition: var(--transition-fast);
}

.navbar-brand:hover {
    color: var(--primary-color) !important;
    text-shadow: 0 0 10px rgba(99, 102, 241, 0.5);
    transform: scale(1.05);
}

.navbar-brand img {
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
    transition: var(--transition-fast);
}

.navbar-brand:hover img {
    filter: drop-shadow(0 0 8px rgba(99, 102, 241, 0.4));
}

.navbar-nav .nav-link {
    color: var(--text-secondary) !important;
    font-weight: 500;
    margin: 0 0.5rem;
    transition: var(--transition-fast);
}

.navbar-nav .nav-link:hover {
    color: var(--text-primary) !important;
    transform: translateY(-1px);
}

.navbar-nav .btn {
    background: var(--gradient-primary);
    border: none;
    border-radius: 50px;
    font-weight: 600;
    transition: var(--transition-medium);
}

.navbar-nav .btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-large);
}

/* Flash Messages */
.flash-messages {
    position: fixed;
    top: 80px;
    right: 20px;
    z-index: 1050;
    width: 400px;
}

.flash-messages .alert {
    margin-bottom: 10px;
    border-radius: 10px;
    box-shadow: var(--shadow-medium);
}

/* Hero Section */
.hero-section {
    min-height: 100vh;
    background: linear-gradient(135deg, #111827 0%, #1f2937 50%, #374151 100%);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    padding-top: 80px; /* Account for fixed navbar */
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000"><defs><radialGradient id="grad1" cx="50%" cy="50%" r="50%"><stop offset="0%" style="stop-color:%236366f1;stop-opacity:0.1" /><stop offset="100%" style="stop-color:%236366f1;stop-opacity:0" /></radialGradient></defs><circle cx="200" cy="200" r="100" fill="url(%23grad1)" /><circle cx="800" cy="300" r="150" fill="url(%23grad1)" /><circle cx="400" cy="700" r="120" fill="url(%23grad1)" /></svg>');
    opacity: 0.5;
    animation: float 20s ease-in-out infinite;
}

.hero-content {
    color: white;
    z-index: 2;
    position: relative;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    max-width: 500px;
}

.hero-cta .btn {
    padding: 12px 30px;
    font-weight: 600;
    border-radius: 50px;
    transition: var(--transition-medium);
}

.hero-cta .btn-primary {
    background: var(--gradient-primary);
    border: none;
}

.hero-cta .btn-outline-light {
    border: 2px solid var(--border-light);
    color: var(--text-primary);
}

.hero-cta .btn:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-large);
}

.hero-stats {
    margin-top: 3rem;
}

.stat-item {
    text-align: center;
    color: var(--text-primary);
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin: 0;
}

/* Hero Visual - Orbital Design */
.hero-visual {
    position: relative;
    height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.services-orbit {
    position: relative;
    width: 400px;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.orbit-center {
    position: absolute;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 40px rgba(99, 102, 241, 0.4);
    z-index: 10;
}

.central-logo {
    font-size: 2rem;
    color: var(--text-white);
    animation: rotate 20s linear infinite;
}

.pulse-ring {
    position: absolute;
    border: 2px solid rgba(99, 102, 241, 0.4);
    border-radius: 50%;
    animation: pulse 3s ease-in-out infinite;
}

.pulse-ring {
    width: 140px;
    height: 140px;
}

.pulse-ring-2 {
    width: 180px;
    height: 180px;
    animation-delay: 1.5s;
}

.service-node {
    position: absolute;
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: var(--bg-card);
    backdrop-filter: blur(10px);
    border: 2px solid var(--border-color);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-medium);
}

.service-node:hover {
    transform: scale(1.1);
    background: var(--bg-secondary);
    border-color: var(--primary-color);
    box-shadow: var(--shadow-large);
}

.node-icon {
    font-size: 1.2rem;
    margin-bottom: 4px;
}

.node-label {
    font-size: 0.7rem;
    font-weight: 600;
    text-align: center;
}

/* Position nodes in circular orbit */
.node-1 { top: 20px; left: 50%; transform: translateX(-50%); }
.node-2 { top: 35%; right: 20px; }
.node-3 { bottom: 35%; right: 20px; }
.node-4 { bottom: 20px; left: 50%; transform: translateX(-50%); }
.node-5 { bottom: 35%; left: 20px; }
.node-6 { top: 35%; left: 20px; }

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

@keyframes pulse {
    0%, 100% { 
        transform: scale(1);
        opacity: 0.6;
    }
    50% { 
        transform: scale(1.1);
        opacity: 0.3;
    }
}

/* Responsive adjustments for orbital design */
@media (max-width: 768px) {
    .hero-visual {
        height: 400px;
    }
    
    .services-orbit {
        width: 320px;
        height: 320px;
    }
    
    .orbit-center {
        width: 80px;
        height: 80px;
    }
    
    .central-logo {
        font-size: 1.5rem;
    }
    
    .service-node {
        width: 60px;
        height: 60px;
    }
    
    .node-icon {
        font-size: 1rem;
    }
    
    .node-label {
        font-size: 0.6rem;
    }
    
    .pulse-ring {
        width: 120px;
        height: 120px;
    }
    
    .pulse-ring-2 {
        width: 150px;
        height: 150px;
    }
}

@media (max-width: 576px) {
    .hero-visual {
        height: 350px;
    }
    
    .services-orbit {
        width: 280px;
        height: 280px;
    }
    
    .service-node {
        width: 50px;
        height: 50px;
    }
    
    .node-icon {
        font-size: 0.9rem;
    }
    
    .node-label {
        font-size: 0.55rem;
    }
}

/* Services Section */
.services-section {
    padding: 100px 0;
    background: var(--bg-secondary);
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

.service-card {
    background: var(--bg-card);
    border-radius: 20px;
    padding: 2rem;
    height: 100%;
    border: 1px solid var(--border-color);
    transition: var(--transition-medium);
    position: relative;
    overflow: hidden;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-large);
    border-color: var(--primary-color);
}

.service-card.featured-service {
    background: linear-gradient(135deg, #6366f1 0%, #ec4899 100%);
    color: white;
    border: none;
}

.service-card.featured-service:hover {
    transform: translateY(-10px) scale(1.02);
}

.service-icon {
    width: 60px;
    height: 60px;
    background: var(--gradient-primary);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    color: white;
}

.featured-service .service-icon {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
}

.service-card h4 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.featured-service h4 {
    color: white;
}

.service-card p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.featured-service p {
    color: rgba(255, 255, 255, 0.9);
}

.service-features {
    list-style: none;
    padding: 0;
}

.service-features li {
    padding: 0.5rem 0;
    position: relative;
    padding-left: 1.5rem;
    color: var(--text-secondary);
}

.featured-service .service-features li {
    color: rgba(255, 255, 255, 0.8);
}

.service-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
}

.featured-service .service-features li::before {
    color: white;
}

.service-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

/* Expertise Section */
.expertise-section {
    padding: 100px 0;
    background: var(--bg-primary);
}

.expertise-categories {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.expertise-category h5 {
    color: var(--text-primary);
    margin-bottom: 1rem;
    font-weight: 600;
}

.tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tech-tag {
    background: var(--bg-card);
    color: var(--text-primary);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    border: 1px solid var(--border-color);
    transition: var(--transition-fast);
}

.tech-tag:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

.process-steps {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.process-step {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.step-number {
    width: 40px;
    height: 40px;
    background: var(--gradient-primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    flex-shrink: 0;
}

.step-content h6 {
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.step-content p {
    color: var(--text-secondary);
    margin: 0;
}

/* Contact Section */
.contact-section {
    padding: 100px 0;
    background: var(--bg-secondary);
}

.contact-form-wrapper {
    background: var(--bg-card);
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: var(--shadow-medium);
}

.form-floating .form-control,
.form-floating .form-select {
    border: 2px solid var(--border-color);
    border-radius: 10px;
    padding-left: 3rem;
    padding-top: 1.625rem;
    padding-bottom: 0.625rem;
    transition: var(--transition-fast);
    background: var(--bg-secondary);
    color: var(--text-primary);
    height: calc(3.5rem + 2px);
}

.form-floating .form-control:focus,
.form-floating .form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(99, 102, 241, 0.1);
}

.form-floating label {
    padding-left: 3rem;
    color: var(--text-secondary);
    top: 0;
    height: 100%;
    padding-top: 1rem;
    transform-origin: 0 0;
    transition: opacity 0.1s ease-in-out, transform 0.1s ease-in-out;
}

.form-floating .form-control::placeholder,
.form-floating .form-select option {
    color: var(--text-light);
}

.form-floating .form-control:focus::placeholder {
    color: var(--text-light);
    opacity: 0.5;
}

.contact-form .btn {
    background: var(--gradient-primary);
    border: none;
    border-radius: 50px;
    padding: 12px 30px;
    font-weight: 600;
    transition: var(--transition-medium);
}

.contact-form .btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-large);
}

.contact-info-card {
    padding: 2rem;
    background: var(--bg-card);
    border-radius: 15px;
    box-shadow: var(--shadow-light);
    transition: var(--transition-medium);
}

.contact-info-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
}

.contact-icon {
    width: 60px;
    height: 60px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 1.5rem;
    color: white;
}

.contact-info-card h5 {
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.contact-info-card p {
    color: var(--text-secondary) !important;
    margin: 0;
    line-height: 1.4;
}

.contact-info-card .text-muted {
    color: var(--text-secondary) !important;
}

/* Footer */
.footer {
    background: var(--bg-dark);
    color: var(--text-primary);
    padding: 3rem 0 1rem;
}

.footer h5,
.footer h6 {
    color: var(--text-white);
}

.footer .text-muted {
    color: rgba(255, 255, 255, 0.7) !important;
}

.footer a {
    transition: var(--transition-fast);
}

.footer a:hover {
    color: var(--primary-color) !important;
}

.social-links a {
    display: inline-block;
    font-size: 1.2rem;
    transition: var(--transition-fast);
}

.social-links a:hover {
    transform: translateY(-2px);
}

/* Animations */
@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
}

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

/* Responsive Design */
@media (max-width: 768px) {
    /* Navigation adjustments */
    .navbar {
        padding: 0.5rem 0;
    }
    
    .navbar-brand {
        font-size: 1.25rem;
    }
    
    /* Hero section mobile fixes */
    .hero-section {
        padding-top: 100px; /* More space for mobile navbar */
        min-height: calc(100vh - 60px);
    }
    
    .hero-content {
        text-align: center;
        padding: 0 1rem;
    }
    
    .hero-title {
        font-size: 2.5rem;
        margin-bottom: 1rem;
        line-height: 1.2;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
        margin-bottom: 1.5rem;
        max-width: 100%;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .hero-visual {
        height: 300px;
        margin-top: 2rem;
    }
    
    .services-orbit {
        width: 300px;
        height: 300px;
    }
    
    .floating-card {
        position: relative;
        margin: 1rem;
        display: inline-flex;
    }
    
    .contact-form-wrapper {
        padding: 1.5rem;
    }
    
    .flash-messages {
        width: calc(100% - 40px);
        right: 20px;
        left: 20px;
        top: 120px; /* Account for fixed navbar */
    }
    
    /* Stats section mobile */
    .hero-stats {
        margin-top: 2rem;
    }
    
    .stat-item {
        margin-bottom: 1rem;
    }
}

@media (max-width: 576px) {
    /* Extra small mobile adjustments */
    .hero-section {
        padding-top: 120px; /* Even more space for collapsed navbar */
    }
    
    .hero-title {
        font-size: 2rem;
        line-height: 1.1;
        margin-bottom: 1rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }
    
    .hero-cta .btn {
        display: block;
        width: 100%;
        margin-bottom: 1rem;
        padding: 15px 20px;
        font-size: 1rem;
    }
    
    .hero-visual {
        height: 250px;
        margin-top: 1.5rem;
    }
    
    .services-orbit {
        width: 250px;
        height: 250px;
    }
    
    .orbit-center {
        width: 80px;
        height: 80px;
    }
    
    .central-logo {
        font-size: 1.5rem;
    }
    
    .orbit-node {
        width: 35px !important;
        height: 35px !important;
        font-size: 0.8rem;
    }
    
    .tech-tags {
        justify-content: center;
    }
    
    .stat-number {
        font-size: 1.5rem;
    }
    
    .stat-label {
        font-size: 0.8rem;
    }
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-secondary);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}
