/* =========================================
   CSS Reset & Variables
========================================= */
:root {
    /* Brand Colors based on Logo */
    --color-primary: #001f5b; /* Deep Navy Blue */
    --color-primary-light: #003399;
    --color-secondary: #8b0000; /* Deep Red / Maroon */
    --color-secondary-light: #b30000;
    
    /* Neutral Colors */
    --color-bg-dark: #0f172a;
    --color-bg-light: #f8fafc;
    --color-text-dark: #1e293b;
    --color-text-muted: #64748b;
    --color-white: #ffffff;
    
    /* Typography */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    /* Layout & Effects */
    --transition: all 0.3s ease;
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--color-text-dark);
    line-height: 1.6;
    overflow-x: hidden;
    background-color: var(--color-white);
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.text-center { text-align: center; }
.bg-light { background-color: var(--color-bg-light); }

/* =========================================
   Typography & Utilities
========================================= */
.text-gradient {
    background: linear-gradient(90deg, #60a5fa, #f87171); /* Lighter Blue to Lighter Red for dark bg */
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

/* Override for transparent navbar on dark background */
.navbar:not(.scrolled) .highlight-blue {
    color: var(--color-white);
}
.navbar:not(.scrolled) .highlight-red {
    color: #ff6b6b; /* Brighter red for visibility */
}

.section-subtitle {
    color: var(--color-secondary);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.section-title {
    font-size: 2.5rem;
    color: var(--color-primary);
    margin-bottom: 1.5rem;
}

/* Buttons */
.btn-primary, .btn-primary-sm, .btn-outline {
    display: inline-block;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
}

.btn-primary {
    background-color: var(--color-secondary);
    color: var(--color-white);
    padding: 1rem 2rem;
    border: 2px solid var(--color-secondary);
    box-shadow: 0 4px 14px rgba(139, 0, 0, 0.39);
}

.btn-primary:hover {
    background-color: transparent;
    color: var(--color-secondary);
    box-shadow: none;
}

.btn-primary-sm {
    background-color: var(--color-secondary);
    color: var(--color-white);
    padding: 0.6rem 1.5rem;
    border: 2px solid var(--color-secondary);
}

.btn-primary-sm:hover {
    background-color: transparent;
    color: var(--color-secondary);
}

.btn-outline {
    background-color: transparent;
    color: var(--color-white);
    padding: 1rem 2rem;
    border: 2px solid var(--color-white);
}

.btn-outline:hover {
    background-color: var(--color-white);
    color: var(--color-primary);
}

.btn-large {
    font-size: 1.1rem;
    padding: 1.2rem 2.5rem;
}

/* =========================================
   Navbar
========================================= */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1.5rem 0;
    z-index: 1000;
    transition: var(--transition);
    background-color: transparent;
}

.navbar.scrolled {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 1rem 0;
    box-shadow: var(--shadow-sm);
}

.navbar.scrolled .nav-links a:not(.btn-primary-sm) {
    color: var(--color-primary);
}

.navbar.scrolled .logo-text {
    color: var(--color-primary);
}

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

/* Logo Link */
.logo-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
}

.logo-img {
    width: 44px;
    height: 44px;
    object-fit: contain;
    border-radius: 8px;
    transition: var(--transition);
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.logo-link:hover .logo-img {
    transform: scale(1.08);
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
}

.logo-text {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--color-white);
    transition: var(--transition);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-links a {
    color: var(--color-white);
    font-weight: 500;
    font-size: 1rem;
}

.nav-links a:not(.btn-primary-sm):hover {
    color: var(--color-secondary-light);
}

.hamburger {
    display: none;
    font-size: 1.5rem;
    color: var(--color-primary);
    cursor: pointer;
}

.navbar:not(.scrolled) .hamburger {
    color: var(--color-white);
}

/* =========================================
   Hero Section
========================================= */
.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    background: url('../assets/hero_bg.png') center/cover no-repeat;
    background-color: var(--color-primary); /* Fallback */
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 31, 91, 0.85) 0%, rgba(15, 23, 42, 0.9) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    color: var(--color-white);
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
}

.hero p {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 2.5rem;
    max-width: 650px;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.hero-buttons .fas {
    margin-left: 0.5rem;
}

/* Animations */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s forwards ease-out;
}

.delay-1 { animation-delay: 0.3s; }
.delay-2 { animation-delay: 0.6s; }

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

/* =========================================
   About Section
========================================= */
.about {
    padding: 6rem 0;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-text p {
    margin-bottom: 1.5rem;
    color: var(--color-text-muted);
}

.about-features {
    margin-top: 2rem;
}

.about-features li {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    font-weight: 500;
    color: var(--color-primary);
}

.about-features i {
    color: var(--color-secondary);
    margin-right: 1rem;
    font-size: 1.2rem;
}

.about-image-wrapper {
    position: relative;
    height: 100%;
    min-height: 400px;
    background: radial-gradient(circle at center, var(--color-bg-light) 0%, white 100%);
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 2rem;
    padding: 2rem;
}

.glass-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    padding: 2rem;
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
    transform: translateX(-30px);
    transition: var(--transition);
}

.glass-card.card-2 {
    transform: translateX(30px);
}

.glass-card:hover {
    transform: translateY(-5px) scale(1.02);
}

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

.glass-card h3 {
    color: var(--color-primary);
    margin-bottom: 0.5rem;
}

.glass-card p {
    color: var(--color-text-muted);
    font-size: 0.9rem;
    margin-bottom: 0;
}

/* =========================================
   Services Section
========================================= */
.services {
    padding: 6rem 0;
}

.section-header p {
    color: var(--color-text-muted);
    max-width: 600px;
    margin: 0 auto;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 4rem;
}

.service-card {
    background: var(--color-white);
    padding: 2.5rem 2rem;
    border-radius: 16px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border-bottom: 4px solid transparent;
}

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

.service-icon {
    width: 70px;
    height: 70px;
    background: rgba(139, 0, 0, 0.05);
    color: var(--color-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 2rem;
    margin-bottom: 1.5rem;
    transition: var(--transition);
}

.service-card:hover .service-icon {
    background: var(--color-secondary);
    color: var(--color-white);
}

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

.service-card p {
    color: var(--color-text-muted);
    font-size: 0.95rem;
}

/* =========================================
   Portfolio Section
========================================= */
.portfolio {
    padding: 6rem 0;
    background-color: var(--color-white);
}

.client-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.client-card {
    background: var(--color-bg-light);
    border-radius: 16px;
    padding: 2rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid rgba(0,0,0,0.05);
}

.client-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-5px);
}

.client-logo-placeholder {
    width: 80px;
    height: 80px;
    background: var(--color-white);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--color-primary-light);
    box-shadow: var(--shadow-sm);
    flex-shrink: 0;
}

.client-info h3 {
    font-size: 1.2rem;
    color: var(--color-primary);
    margin-bottom: 0.5rem;
}

.client-info p {
    font-size: 0.95rem;
    color: var(--color-text-muted);
}

.client-info strong {
    color: var(--color-text-dark);
}

/* =========================================
   Team Section
========================================= */
.team {
    padding: 6rem 0;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
    margin-top: 4rem;
    justify-items: center;
}

.team-card {
    text-align: center;
    padding: 2.5rem 2rem;
    border-radius: 20px;
    background: var(--color-white);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    width: 100%;
    max-width: 320px;
}

.team-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.team-avatar {
    position: relative;
    width: 150px;
    height: 150px;
    margin: 0 auto 1.5rem;
}

.team-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    border: 4px solid var(--color-bg-light);
    transition: var(--transition);
    position: relative;
    z-index: 2;
}

.team-avatar-ring {
    position: absolute;
    top: -4px;
    left: -4px;
    right: -4px;
    bottom: -4px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--color-primary-light), var(--color-secondary));
    z-index: 1;
    opacity: 0;
    transition: var(--transition);
}

.team-card:hover .team-avatar-ring {
    opacity: 1;
}

.team-card:hover .team-avatar img {
    border-color: transparent;
    transform: scale(1.03);
}

.team-name {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    color: var(--color-primary);
    margin-bottom: 0.3rem;
    font-weight: 700;
}

.team-role {
    font-size: 0.95rem;
    color: var(--color-secondary);
    font-weight: 500;
    margin-bottom: 1.2rem;
    letter-spacing: 0.5px;
}

.team-socials {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
}

.team-socials a {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--color-bg-light);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-primary);
    font-size: 0.9rem;
    transition: var(--transition);
}

.team-socials a:hover {
    background: var(--color-primary);
    color: var(--color-white);
    transform: translateY(-3px);
}

/* =========================================
   Partners / Technology Section
========================================= */
.partners {
    padding: 4rem 0 5rem;
    background-color: var(--color-white);
}

.partners-title {
    font-size: 2rem;
    color: var(--color-primary);
    margin-bottom: 0.5rem;
}

.partners-grid {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 3rem;
    margin-top: 3rem;
}

.partner-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    transition: var(--transition);
    filter: grayscale(100%);
    opacity: 0.5;
    cursor: pointer;
}

.partner-item:hover {
    filter: grayscale(0%);
    opacity: 1;
    transform: translateY(-5px);
}

.partner-icon {
    font-size: 3rem;
    transition: var(--transition);
}

.partner-item span {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-text-muted);
    letter-spacing: 0.5px;
}

.partner-item:hover span {
    color: var(--color-text-dark);
}

/* Dikserver logo image */
.partner-item-img {
    filter: grayscale(100%);
}

.partner-item-img:hover {
    filter: grayscale(0%);
}

.partner-logo-img {
    width: 52px;
    height: 52px;
    object-fit: contain;
    border-radius: 10px;
}

/* =========================================
   CTA Section
========================================= */
.cta-section {
    padding: 5rem 0;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
    color: var(--color-white);
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -10%;
    width: 50%;
    height: 200%;
    background: rgba(255, 255, 255, 0.05);
    transform: rotate(30deg);
}

.cta-content {
    position: relative;
    z-index: 2;
}

.cta-content h2 {
    font-size: 2.5rem;
}

.cta-content p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.cta-content .btn-primary {
    background-color: var(--color-white);
    color: var(--color-primary);
    border-color: var(--color-white);
}

.cta-content .btn-primary:hover {
    background-color: transparent;
    color: var(--color-white);
}

/* =========================================
   Footer
========================================= */
.footer {
    background-color: var(--color-bg-dark);
    color: var(--color-white);
    padding: 5rem 0 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-logo {
    margin-bottom: 1.5rem;
}

/* Footer logo image */
.logo-img-footer {
    width: 50px;
    height: 50px;
    border-radius: 10px;
    filter: drop-shadow(0 2px 8px rgba(255, 255, 255, 0.15));
}

/* Footer logo text - brighter colors for dark background */
.footer-logo-text {
    color: var(--color-white) !important;
    font-size: 1.6rem;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.footer-blue {
    color: #60a5fa !important; /* Bright blue for dark bg */
}

.footer-red {
    color: #ff6b6b !important; /* Bright red for dark bg */
}

.footer-info p {
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 1.5rem;
    max-width: 300px;
}

.social-links {
    display: flex;
    gap: 1rem;
}

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

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

.footer h3 {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.footer h3::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 40px;
    height: 2px;
    background: var(--color-secondary);
}

.contact-list li {
    display: flex;
    margin-bottom: 1rem;
    color: rgba(255, 255, 255, 0.7);
}

.contact-list i {
    color: var(--color-secondary);
    margin-right: 1rem;
    margin-top: 0.3rem;
}

.footer-links li {
    margin-bottom: 0.8rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
}

.footer-links a:hover {
    color: var(--color-white);
    padding-left: 5px;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
}

/* =========================================
   Responsive Design
========================================= */
@media (max-width: 992px) {
    .about-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .glass-card {
        transform: translateX(0) !important;
        margin-bottom: 1rem;
    }
    
    .team-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
    
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--color-white);
        flex-direction: column;
        padding: 2rem 0;
        box-shadow: var(--shadow-md);
        clip-path: polygon(0 0, 100% 0, 100% 0, 0 0);
        transition: clip-path 0.4s ease-in-out;
    }
    
    .nav-links.active {
        clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
    }
    
    .nav-links a {
        color: var(--color-primary) !important;
    }
    
    .hamburger {
        display: block;
    }
    
    .team-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}
