/* Design System & Core Styles */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@400;500;700&display=swap');

:root {
    /* HSL Tailored Colors */
    --bg-dark: #0a0f1c;
    /* Deep Midnight Blue */
    --bg-paper: #0f1623;
    --primary-cyan: #00f0ff;
    /* Neon Cyan */
    --primary-blue: #0088ff;
    /* Electric Blue */
    --text-main: #ffffff;
    --text-muted: #94a3b8;

    /* Helpers */
    --transition-base: all 0.3s ease;

    /* Glassmorphism */
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);

    /* Spacing */
    --section-spacing: 120px;

    /* Fonts */
    --font-body: 'Inter', sans-serif;
    --font-heading: 'Outfit', sans-serif;
}

.hover-opacity-100:hover {
    opacity: 1 !important;
}

.transition-all {
    transition: var(--transition-base);
}

.font-heading {
    font-family: var(--font-heading) !important;
}

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

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* Navigation Scroll Fix */
section[id] {
    scroll-margin-top: 100px;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    letter-spacing: -0.02em;
}

/* Utilities - Bootstrap Overrides & Custom */
/* We keep .container for semantic reasons if needed, but usually Bootstrap handles max-width */
/* .container { max-width: 1280px; margin: 0 auto; padding: 0 24px; } - Removed to let Bootstrap handle it */

.gradient-text {
    background: linear-gradient(135deg, var(--text-main) 0%, var(--primary-cyan) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Extend Bootstrap Buttons */
.btn {
    display: inline-flex;
    /* Use flex for perfect centering */
    justify-content: center;
    align-items: center;
    padding: 12px 32px;
    /* Equidistant-feeling padding */
    border-radius: 50px;
    /* Pillow shape */
    font-weight: 600;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-family: var(--font-heading);
    /* Match heading font for buttons */
    line-height: 1;
    /* Prevent line-height from offsetting text */
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-cyan) 100%);
    border: none;
    color: var(--bg-dark);
    box-shadow: 0 4px 20px rgba(0, 240, 255, 0.3);
}

.btn-primary:hover,
.btn-primary:active,
.btn-primary:focus {
    background: linear-gradient(135deg, var(--primary-cyan) 0%, var(--primary-blue) 100%);
    color: var(--bg-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 240, 255, 0.5);
}

/* Ensure form controls use the same font */
.form-control,
.form-select,
input,
textarea,
select {
    font-family: var(--font-body) !important;
}

/* Glass Card */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    box-shadow: var(--glass-shadow);
}

/* Header */
header {
    position: absolute;
    /* Not fixed, scrolls away */
    top: 0;
    left: 0;
    width: 100%;
    padding: 20px 0;
    z-index: 1000;
    background: transparent;
    /* Clean overlay */
    backdrop-filter: none;
    border-bottom: none;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-main);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo span {
    color: var(--primary-cyan);
}

.nav-links {
    display: flex;
    gap: 32px;
    list-style: none;
    align-items: center;
}

.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

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

/* Language Flags */
.lang-container {
    display: flex;
    gap: 12px;
    align-items: center;
}

.lang-flag {
    width: 24px;
    height: 18px;
    object-fit: cover;
    border-radius: 4px;
    cursor: pointer;
    filter: grayscale(1);
    opacity: 0.6;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.lang-flag:hover {
    filter: grayscale(0);
    opacity: 1;
    transform: scale(1.1);
}

.lang-flag.active {
    filter: grayscale(0);
    opacity: 1;
    box-shadow: 0 0 10px rgba(0, 240, 255, 0.5);
    border-color: var(--primary-cyan);
}

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

.hero-bg {
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    background-image: url('./assets/hero.png');
    background-size: cover;
    background-position: center;
    z-index: -1;
    mask-image: linear-gradient(to right, transparent, black 20%);
    -webkit-mask-image: linear-gradient(to right, transparent, black 20%);
    opacity: 0.8;
}

.hero-content {
    width: 100%;
    max-width: 600px;
    position: relative;
    z-index: 1;
}

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

.hero p {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 40px;
    max-width: 480px;
}

/* Services Section */
.services {
    padding: var(--section-spacing) 0;
    position: relative;
}

.section-header {
    text-align: center;
    margin-bottom: 80px;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 16px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
}

/* Flip Card Styles */
.service-card {
    background-color: transparent;
    perspective: 1000px;
    /* Depth for 3D flip */
    min-height: 320px;
    /* Ensure consistent height for flip */
    cursor: pointer;
}

.service-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.6s;
    transform-style: preserve-3d;
}

.service-card:hover .service-card-inner,
.service-card.flipped .service-card-inner {
    transform: rotateY(180deg);
}

.service-front,
.service-back {
    position: absolute;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    border-radius: 20px;
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

/* Front Side */
.service-front {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
}

/* Back Side */
.service-back {
    background: linear-gradient(135deg, rgba(0, 240, 255, 0.1), rgba(0, 136, 255, 0.1));
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--primary-cyan);
    color: white;
    transform: rotateY(180deg);
}

.service-icon {
    font-size: 3rem;
    color: var(--primary-cyan);
    margin-bottom: 24px;
}

.service-card h3 {
    font-size: 1.5rem;
    margin: 0;
}

.service-back p {
    color: var(--text-main);
    font-size: 1rem;
    line-height: 1.5;
}

/* Contact Section */
.contact {
    padding: var(--section-spacing) 0;
    background: linear-gradient(180deg, transparent, rgba(0, 240, 255, 0.02));
}

/* Premium Cyber Form */
.contact-container {
    max-width: 680px;
    margin: 0 auto;
    padding: 60px;
    background: rgba(10, 15, 28, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    position: relative;
    overflow: hidden;
}

/* Subtle gradient glow at the top */
.contact-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary-cyan), transparent);
    opacity: 0.5;
}

.form-group {
    margin-bottom: 24px;
    position: relative;
}

/* Label removed as we rely on placeholders now for a cleaner look */

.form-control {
    width: 100%;
    padding: 16px 20px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    color: white;
    font-family: 'Outfit', sans-serif;
    /* Using heading font for modern tech feel */
    font-size: 1rem;
    font-weight: 300;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

.form-control::placeholder {
    color: rgba(255, 255, 255, 0.2);
    font-weight: 300;
}

.form-control:focus {
    outline: none;
    background: rgba(0, 240, 255, 0.02);
    border-color: var(--primary-cyan);
    box-shadow: 0 0 20px rgba(0, 240, 255, 0.1);
    transform: translateY(-2px);
}

.form-control:focus+label,
.form-group:focus-within label {
    text-shadow: 0 0 8px rgba(0, 240, 255, 0.6);
}

/* Custom Select Styling to match inputs */
select.form-control {
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2300f0ff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 20px center;
    background-size: 14px;
    padding-right: 40px;
}

select.form-control option {
    background-color: var(--bg-dark);
    /* Darker background for dropdown items */
    color: white;
    padding: 12px;
}

/* Cyber Button */
.contact-container .btn-primary {
    width: 100%;
    margin-top: 10px;
    padding: 18px;
    background: linear-gradient(45deg, rgba(0, 240, 255, 0.1), transparent);
    border: 1px solid var(--primary-cyan);
    color: var(--primary-cyan);
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    z-index: 1;
}

.contact-container .btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--primary-cyan);
    z-index: -1;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.contact-container .btn-primary:hover {
    color: var(--bg-dark);
    box-shadow: 0 0 40px rgba(0, 240, 255, 0.4);
    border-color: transparent;
    text-shadow: none;
}

.contact-container .btn-primary:hover::before {
    left: 0;
}

/* Footer */
footer {
    padding: 40px 0;
    border-top: 1px solid var(--glass-border);
    text-align: center;
    color: var(--text-muted);
}

/* Responsive */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
    }

    .hero-bg {
        width: 100%;
        opacity: 0.3;
        mask-image: none;
        -webkit-mask-image: none;
    }

    .nav-links {
        display: none;
        /* Mobile menu implementation later if needed */
    }
}