/* ====================================
   C-IDR Website Styles
   ==================================== */

/* CSS Variables for Brand Colors */
:root {
    --color-red: #E31E24;
    --color-blue: #4A90E2;
    --color-green: #7CB342;
    --color-yellow: #FFC107;
    --color-orange: #FF9800;
    --color-white: #FFFFFF;
    --color-black: #1a1a1a;
    --color-gray-light: #f8f9fa;
    --color-gray-medium: #6c757d;
    --color-gray-dark: #343a40;
    
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Open Sans', sans-serif;
    
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.16);
    
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    color: var(--color-black);
    background-color: var(--color-white);
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ====================================
   Hexagon Background Decorations
   ==================================== */
.hexagon-bg {
    position: fixed;
    width: 600px;
    height: 600px;
    pointer-events: none;
    z-index: 0;
    opacity: 1;
}

.hexagon-bg-top {
    top: 0;
    right: 0;
    width: 500px;
    height: 800px;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="500" height="800"><defs><polygon id="hex" points="14,0 28,8 28,24 14,32 0,24 0,8" /></defs><use href="%23hex" x="350" y="30" fill="%234A90E2"/><use href="%23hex" x="380" y="47" fill="%235BA3F0"/><use href="%23hex" x="410" y="30" fill="%23357ABD"/><use href="%23hex" x="440" y="47" fill="%236BB6FF"/><use href="%23hex" x="335" y="75" fill="%234A90E2"/><use href="%23hex" x="365" y="92" fill="%235BA3F0"/><use href="%23hex" x="395" y="75" fill="%234A90E2"/><use href="%23hex" x="425" y="92" fill="%236BB6FF"/><use href="%23hex" x="455" y="75" fill="%235BA3F0"/><use href="%23hex" x="350" y="120" fill="%237CB342"/><use href="%23hex" x="380" y="137" fill="%238BC34A"/><use href="%23hex" x="410" y="120" fill="%239CCC65"/><use href="%23hex" x="440" y="137" fill="%23AED581"/><use href="%23hex" x="335" y="165" fill="%237CB342"/><use href="%23hex" x="365" y="182" fill="%238BC34A"/><use href="%23hex" x="395" y="165" fill="%239CCC65"/><use href="%23hex" x="425" y="182" fill="%23AED581"/><use href="%23hex" x="455" y="165" fill="%238BC34A"/><use href="%23hex" x="350" y="210" fill="%23FFC107"/><use href="%23hex" x="380" y="227" fill="%23FFD54F"/><use href="%23hex" x="410" y="210" fill="%23FFEB3B"/><use href="%23hex" x="440" y="227" fill="%23FFC107"/><use href="%23hex" x="335" y="255" fill="%23FFD54F"/><use href="%23hex" x="365" y="272" fill="%23FFEB3B"/><use href="%23hex" x="395" y="255" fill="%23FFC107"/><use href="%23hex" x="425" y="272" fill="%23FFD54F"/><use href="%23hex" x="455" y="255" fill="%23FFEB3B"/><use href="%23hex" x="350" y="300" fill="%23FF9800"/><use href="%23hex" x="380" y="317" fill="%23FFB74D"/><use href="%23hex" x="410" y="300" fill="%23FF9800"/><use href="%23hex" x="440" y="317" fill="%23FFB74D"/></svg>') no-repeat;
    background-position: top right;
    animation: none;
}

.hexagon-bg-bottom {
    bottom: 0;
    left: 0;
    opacity: 0;
    display: none;
}

@keyframes hexagonFloat {
    0%, 100% {
        transform: translate(0, 0);
    }
}

/* ====================================
   Header & Navigation
   ==================================== */
.header {
    position: sticky;
    top: 0;
    background: var(--color-white);
    box-shadow: var(--shadow-sm);
    z-index: 1000;
    padding: 16px 0;
}

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

.logo {
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-image {
    height: 45px;
    width: auto;
}

.logo-text {
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo-icon {
    font-size: 32px;
}

.logo-name {
    font-family: var(--font-heading);
    font-size: 28px;
    font-weight: 700;
    color: var(--color-black);
    letter-spacing: -0.5px;
}

.nav {
    display: flex;
    align-items: center;
    gap: 32px;
}

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

.nav-link {
    font-family: var(--font-body);
    font-size: 15px;
    font-weight: 400;
    color: var(--color-black);
    text-decoration: none;
    transition: var(--transition-smooth);
    padding: 8px 0;
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: var(--color-red);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-red);
    transition: width 0.3s ease;
}

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

/* Dropdown Menu */
.nav-dropdown {
    position: relative;
}

.dropdown-arrow {
    font-size: 10px;
    margin-left: 4px;
    transition: transform 0.3s ease;
}

.nav-dropdown:hover .dropdown-arrow {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--color-white);
    box-shadow: var(--shadow-md);
    border-radius: 8px;
    list-style: none;
    min-width: 280px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: var(--transition-smooth);
    padding: 8px 0;
    margin-top: 8px;
}

.nav-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-link {
    display: block;
    padding: 12px 20px;
    color: var(--color-black);
    text-decoration: none;
    font-size: 14px;
    transition: var(--transition-smooth);
}

.dropdown-link:hover {
    background: var(--color-gray-light);
    color: var(--color-red);
}

.btn-login {
    padding: 10px 24px;
    background: var(--color-red);
    color: var(--color-white);
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    font-size: 14px;
    transition: var(--transition-smooth);
    box-shadow: var(--shadow-sm);
}

.btn-login:hover {
    background: #c41e24;
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

/* ====================================
   Hero Section
   ==================================== */
.hero {
    position: relative;
    padding: 120px 0 100px;
    text-align: left;
    z-index: 1;
}

.hero-content {
    max-width: 650px;
    margin: 0;
}

.hero-subtitle {
    font-family: var(--font-body);
    font-size: 16px;
    font-weight: 400;
    color: #333333;
    margin-bottom: 24px;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: 52px;
    font-weight: 400;
    color: #E31E24;
    line-height: 1.3;
    margin-bottom: 28px;
}

.hero-description {
    font-size: 18px;
    color: #424242;
    margin-bottom: 40px;
    line-height: 1.7;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: flex-start;
    flex-wrap: wrap;
}

.btn {
    padding: 14px 32px;
    font-family: var(--font-body);
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 8px;
    transition: var(--transition-smooth);
    display: inline-block;
    box-shadow: var(--shadow-sm);
}

.btn-primary {
    background: #5DADE2;
    color: var(--color-white);
    border: none;
}

.btn-primary:hover {
    background: #4A90E2;
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.btn-secondary {
    background: var(--color-white);
    color: #666666;
    border: 2px solid #DDDDDD;
}

.btn-secondary:hover {
    background: #F5F5F5;
    color: #333333;
    border-color: #CCCCCC;
    transform: translateY(-2px);
}

/* ====================================
   Services Section
   ==================================== */
.services {
    padding: 80px 0;
    position: relative;
    z-index: 1;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 36px;
    font-weight: 400;
    color: var(--color-black);
    text-align: center;
    margin-bottom: 60px;
}

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

.service-card {
    background: var(--color-white);
    padding: 40px 32px;
    border-radius: 12px;
    border: 2px solid #e0e0e0;
    transition: var(--transition-smooth);
    text-align: center;
}

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

.service-icon {
    margin-bottom: 24px;
    display: flex;
    justify-content: center;
}

.service-icon-img {
    width: 80px;
    height: 80px;
    object-fit: contain;
}

.service-title {
    font-family: var(--font-heading);
    font-size: 22px;
    font-weight: 700;
    color: var(--color-black);
    margin-bottom: 16px;
}

.service-description {
    font-size: 16px;
    color: var(--color-gray-medium);
    line-height: 1.6;
    margin-bottom: 24px;
}

.service-link {
    color: var(--color-blue);
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    transition: var(--transition-smooth);
}

.service-link:hover {
    color: var(--color-red);
}

/* ====================================
   Why C-IDR Section
   ==================================== */
.why-cidr {
    padding: 80px 0;
    background: var(--color-gray-light);
    position: relative;
    z-index: 1;
}

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

.feature-card {
    background: var(--color-white);
    padding: 32px 24px;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-smooth);
}

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

.feature-icon {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.feature-icon-img {
    width: 80px;
    height: 80px;
    object-fit: contain;
}

.feature-title {
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 700;
    color: var(--color-black);
    margin-bottom: 12px;
    line-height: 1.4;
}

.feature-description {
    font-size: 15px;
    color: var(--color-gray-medium);
    line-height: 1.6;
}

/* ====================================
   Trust Section
   ==================================== */
.trust-section {
    padding: 60px 0;
    text-align: center;
    position: relative;
    z-index: 1;
}

.trust-text {
    font-size: 16px;
    color: var(--color-gray-dark);
    max-width: 800px;
    margin: 0 auto 40px;
    line-height: 1.6;
}

.certifications {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 60px;
    flex-wrap: wrap;
}

.cert-item {
    text-align: center;
}

.cert-badge {
    margin-bottom: 12px;
    transition: var(--transition-smooth);
}

.cert-badge:hover {
    transform: scale(1.1);
}

.cert-logo {
    height: 80px;
    width: auto;
    max-width: 150px;
    object-fit: contain;
}

.cert-label {
    font-size: 14px;
    font-weight: 600;
    color: var(--color-gray-medium);
}

/* ====================================
   Footer
   ==================================== */
.footer {
    background: #4DB8C4;
    color: var(--color-white);
    padding: 50px 0 30px;
    position: relative;
    z-index: 1;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
}

.footer-title {
    font-family: var(--font-heading);
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--color-white);
}

.footer-address,
.footer-contact {
    font-size: 13px;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.95);
}

.footer-contact {
    color: rgba(255, 255, 255, 0.95);
    font-weight: 400;
}

.footer-copyright {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.85);
    margin-top: 20px;
}

/* ====================================
   Responsive Design
   ==================================== */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 20px;
    }
    
    .nav {
        flex-direction: column;
        gap: 16px;
    }
    
    .nav-menu {
        flex-direction: column;
        gap: 16px;
    }
    
    .hero {
        text-align: center;
        padding: 80px 0 60px;
    }
    
    .hero-content {
        margin: 0 auto;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .hero-title {
        font-size: 36px;
    }
    
    .hero-description {
        font-size: 17px;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .hexagon-bg {
        width: 300px;
        height: 300px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 28px;
    }
    
    .hero-buttons {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
        text-align: center;
    }
}
