@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;600;700;800&display=swap');

:root {
    --primary-dark: #1F1F23;
    --primary-blue: #004a99;
    --accent-blue: #00aaff;
    --accent-gold: #d4af37;
    --text-white: #FFFFFF;
    --text-dark: #1F1F23;
    --bg-light: #f9f9fb;
    --bg-white: #ffffff;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Montserrat', sans-serif;
    color: var(--text-dark);
    background-color: var(--bg-white);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Typography */
h1,
h2,
h3,
h4 {
    font-weight: 700;
    line-height: 1.2;
}

.text-gradient {
    background: linear-gradient(90deg, var(--accent-blue), var(--accent-gold));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Layout */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

section {
    padding: 100px 0;
}

/* Header */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100px;
    /* Fixed height */
    background: rgba(31, 31, 35, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    display: flex;
    align-items: center;
    transition: var(--transition);
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 180px;
    /* Much larger */
    transform: translateY(15px);
    /* Let it hang slightly below and pop out */
    transition: var(--transition);
    filter: drop-shadow(0 5px 15px rgba(0, 0, 0, 0.3));
}

nav ul {
    display: flex;
    list-style: none;
    gap: 30px;
}

nav a {
    color: var(--text-white);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    transition: var(--transition);
}

nav a:hover {
    color: var(--accent-blue);
}

/* Hero Section */
.hero {
    height: 100vh;
    background: linear-gradient(rgba(13, 13, 15, 0.8), rgba(13, 13, 15, 0.9)), url('../img/hero_bg.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    color: var(--text-white);
    position: relative;
    padding-top: 120px;
    /* Increased to account for larger header and prevent cropping */
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(circle at 70% 30%, rgba(0, 170, 255, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.hero h1 {
    font-size: 4rem;
    margin: -10px 0 5px;
    /* Negative top margin to bring it closer to logo */
    animation: fadeInUp 1s ease;
}

.hero p {
    font-size: 1.2rem;
    color: #cbd5e0;
    max-width: 600px;
    margin-bottom: 40px;
    animation: fadeInUp 1s ease 0.2s both;
}

/* Logo Symbol Isolation */
.hero-logo-special {
    margin-bottom: 0px;
    /* Removed margin completely */
}

.hero-logo-special img {
    /* Transparent PNG from user */
    height: auto;
    animation: fadeInUp 1s ease 0.2s both;
}

.btn {
    display: inline-block;
    padding: 15px 35px;
    background-color: var(--primary-blue);
    color: var(--text-white);
    text-decoration: none;
    font-weight: 700;
    border-radius: 5px;
    transition: var(--transition);
    border: 2px solid transparent;
}

.btn:hover {
    background-color: transparent;
    border-color: var(--accent-gold);
    color: var(--accent-gold);
    transform: translateY(-3px);
}

/* About Section */
.about {
    background-color: var(--bg-white);
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 50px;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 0;
    width: 60px;
    height: 4px;
    background-color: var(--primary-blue);
}

.about-content {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 60px;
    align-items: center;
}

.about-text p {
    margin-bottom: 20px;
    color: #4a5568;
}

/* Services Section */
.services {
    background-image: linear-gradient(rgba(244, 247, 250, 0.9), rgba(244, 247, 250, 0.95)), url('../img/sap_services_bg.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.service-card {
    background: var(--bg-white);
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
    border-bottom: 4px solid transparent;
}

.service-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary-blue);
}

.service-video-card {
    padding: 0;
    overflow: hidden;
    position: relative;
    border: none !important;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #000;
    height: 100%;
    min-height: 400px;
    /* Reduced to match standard card height */
    animation: spatial-glow 4s infinite alternate;
}

.service-video-card .video-container {
    width: 100%;
    height: 100%;
    display: flex;
}

.service-video-card video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
}

@keyframes spatial-glow {
    0% {
        box-shadow: 0 0 15px rgba(0, 170, 255, 0.3), 0 0 30px rgba(0, 74, 153, 0.2);
    }

    50% {
        box-shadow: 0 0 25px rgba(0, 170, 255, 0.6), 0 0 50px rgba(0, 170, 255, 0.4), 0 0 70px rgba(212, 175, 55, 0.2);
    }

    100% {
        box-shadow: 0 0 15px rgba(0, 170, 255, 0.3), 0 0 30px rgba(0, 74, 153, 0.2);
    }
}

.service-card h3 {
    margin: 20px 0 15px;
}

.service-card ul {
    list-style: none;
    margin-top: 15px;
}

.service-card ul li {
    font-size: 0.85rem;
    color: #718096;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.service-card ul li::before {
    content: '→';
    color: var(--accent-blue);
}

/* IA Section */
.ia-section {
    position: relative;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: var(--text-white);
    overflow: hidden;
}

.ia-section::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 30% 70%, rgba(0, 170, 255, 0.15) 0%, transparent 50%);
    pointer-events: none;
}

.ia-section .section-title::after {
    background-color: var(--accent-blue);
}

.ia-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 40px;
}

.ia-card {
    background: #000000 !important;
    /* Fallback */
    background: linear-gradient(145deg, #1e1e24 0%, #000000 100%) !important;
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    padding: 25px 30px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    gap: 20px;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.6);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    color: #ffffff !important;
    font-weight: 500;
    letter-spacing: 0.5px;
    text-align: left;
}

.ia-card img {
    flex-shrink: 0;
    margin-right: 12px;
}

.ia-card:hover {
    background: linear-gradient(145deg, #2a2a32 0%, #050505 100%) !important;
    transform: translateY(-5px);
    border-color: var(--accent-blue) !important;
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.7);
}

/* Contact */
.contact {
    background-color: var(--primary-dark);
    color: var(--text-white);
}

.contact-flex {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.contact-form {
    background: #2c2c31;
    padding: 40px;
    border-radius: 10px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.9rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    background: #1F1F23;
    border: 1px solid #444;
    color: white;
    border-radius: 5px;
    font-family: inherit;
}

/* Footer */
footer {
    padding: 50px 0;
    background: #17171a;
    color: #718096;
    text-align: center;
}

.footer-logo img {
    height: 40px;
    margin-bottom: 20px;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 768px) {

    .about-content,
    .contact-flex,
    .ia-grid {
        grid-template-columns: 1fr;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    nav ul {
        display: none;
    }

    /* Could add burger menu later if needed */
}