/* Reset and base styles */
:root {
    --primary-color: #003366;  /* Navy blue from logo */
    --secondary-color: #C6A962; /* Gold from logo */
    --text-color: #000000;     /* Black from logo */
    --white: #ffffff;
    --light-bg: #f7fafc;
    --gray-100: #f7fafc;
    --gray-200: #edf2f7;
    --gray-300: #e2e8f0;
    --gray-700: #2d3748;
}

html {
    scroll-padding-top: 180px; /* Desktop header height */
    scroll-behavior: smooth;
}

@media (max-width: 768px) {
    html {
        scroll-padding-top: 340px; /* Tablet header height + extra padding for content */
    }
}

@media (max-width: 480px) {
    html {
        scroll-padding-top: 320px; /* Mobile header height + extra padding for content */
    }
}

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

body {
    font-family: 'Montserrat', 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--light-bg);
}

/* Header styles */
header {
    background: var(--white);
    color: var(--text-color);
    padding: 0.25rem 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: fixed;
    width: 100%;
    z-index: 1000;
}

.container {
    width: 90%;
    margin: 0 auto;
    max-width: 1200px;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 4rem;
    padding: 0.125rem 0;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    text-decoration: none;
    transition: transform 0.3s ease;
    padding: 0.5rem;
    margin: -0.5rem;
}

.logo-container:hover {
    transform: scale(1.02);
}

.logo-text {
    height: 180px;
    width: auto;
    display: block;
}

/* Navigation styles */
nav {
    display: flex;
    gap: 2.5rem;
    align-items: center;
}

nav a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    position: relative;
    padding: 0.5rem 0;
}

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

nav a:hover::after {
    width: 100%;
}

/* Hero section */
.hero {
    background: linear-gradient(135deg, rgba(0, 51, 102, 0.97) 0%, rgba(0, 33, 71, 0.97) 100%);
    min-height: 100vh;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--white);
    text-align: center;
    overflow: hidden;
    padding-top: 180px;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        linear-gradient(45deg, var(--primary-color) 25%, transparent 25%) -50px 0,
        linear-gradient(-45deg, var(--primary-color) 25%, transparent 25%) -50px 0,
        linear-gradient(45deg, transparent 75%, var(--primary-color) 75%) -50px 0,
        linear-gradient(-45deg, transparent 75%, var(--primary-color) 75%) -50px 0;
    background-size: 100px 100px;
    opacity: 0.02;
}

.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        url('../images/logo/dmm-edge-logo-white.png') no-repeat center center,
        radial-gradient(circle at 50% 50%, transparent 0%, rgba(0, 51, 102, 0.9) 100%);
    background-size: 150%, 100%;
    opacity: 0.03;
    filter: blur(1px);
    transform: scale(1.1);
    animation: subtleFloat 20s ease-in-out infinite;
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 3rem 2rem;
    animation: fadeIn 1s ease-out;
}

.hero-content::before,
.hero-content::after {
    content: '';
    position: absolute;
    width: 150px;
    height: 150px;
    background: var(--secondary-color);
    opacity: 0.1;
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    z-index: -1;
}

.hero-content::before {
    top: -50px;
    left: -50px;
    animation: morphBlob 15s ease-in-out infinite;
}

.hero-content::after {
    bottom: -50px;
    right: -50px;
    animation: morphBlob 15s ease-in-out infinite reverse;
}

.hero-content h1 {
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.hero-content p {
    font-size: 1.5rem;
    margin-bottom: 2.5rem;
    opacity: 0.9;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

/* Responsive styles */
@media (max-width: 1024px) {
    .logo-text {
        height: 160px;
    }
    
    .hero {
        padding-top: 160px;
    }
}

@media (max-width: 768px) {
    .logo-text {
        height: 120px;
    }
    
    .header-content {
        padding: 0.25rem 0;
        gap: 1rem;
        flex-direction: column;
        text-align: center;
    }

    nav {
        flex-direction: column;
        align-items: center;
        gap: 0.75rem;
    }

    .hero {
        padding-top: 300px;
        min-height: auto;
        padding-bottom: 3rem;
        display: block;
    }

    .hero-content {
        padding: 4rem 1.5rem;
        margin-top: 0;
    }

    .hero-content h1 {
        font-size: 2.75rem;
        margin-bottom: 1.5rem;
        line-height: 1.2;
        padding-top: 0;
    }

    .hero-content p {
        font-size: 1.25rem;
        margin-bottom: 3rem;
    }

    .hero-content::before,
    .hero-content::after {
        width: 100px;
        height: 100px;
    }

    .content-section {
        padding: 2rem;
    }

    .features-list {
        grid-template-columns: 1fr;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .logo-text {
        height: 100px;
    }

    .hero {
        padding-top: 280px;
    }

    .hero-content {
        padding: 3.5rem 1rem;
        margin-top: 0;
    }

    .hero-content h1 {
        font-size: 2.25rem;
        margin-bottom: 1.25rem;
        line-height: 1.3;
        padding-top: 0;
    }

    .hero-content p {
        font-size: 1.1rem;
        line-height: 1.5;
        margin-bottom: 2.5rem;
        padding: 0 0.5rem;
    }

    nav {
        gap: 1.5rem;
    }

    nav a {
        font-size: 0.9rem;
    }
}

/* Button styles */
.btn {
    background: var(--secondary-color);
    color: var(--white);
    padding: 1.2rem 2.5rem;
    text-decoration: none;
    border: none;
    font-size: 1.2rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 50px;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    box-shadow: 0 4px 15px rgba(198, 169, 98, 0.3);
    border: 2px solid var(--secondary-color);
    letter-spacing: 0.5px;
    animation: pulse 2s infinite;
}

.btn:hover {
    background: transparent;
    color: var(--secondary-color);
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 25px rgba(198, 169, 98, 0.4);
    animation: none;
}

.btn i {
    transition: transform 0.3s ease;
}

.btn:hover i {
    transform: translateX(5px);
}

/* Content sections */
section {
    padding: 5rem 0;
}

.content-section {
    background: var(--white);
    padding: 3rem;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    margin-bottom: 3rem;
}

.content-section h3 {
    color: var(--primary-color);
    font-size: 2rem;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 1rem;
}

.content-section h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 4px;
    background: var(--secondary-color);
    border-radius: 2px;
}

/* Features list */
.features-list {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.feature-card {
    padding: 2rem;
    background: var(--gray-100);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

.feature-icon {
    color: var(--secondary-color);
    font-size: 2rem;
    margin-bottom: 1rem;
}

.feature-title {
    color: var(--primary-color);
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

/* Contact form */
.contact-form {
    max-width: 600px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 2px solid var(--gray-300);
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.radio-group {
    display: flex;
    gap: 1.5rem;
    margin-top: 0.5rem;
}

.radio-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}

.radio-label input[type="radio"] {
    width: auto;
    margin: 0;
    cursor: pointer;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 3px rgba(198, 169, 98, 0.1);
}

.form-group textarea {
    min-height: 150px;
    resize: vertical;
}

/* Footer */
footer {
    background: var(--primary-color);
    color: var(--white);
    padding: 3rem 0;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
}

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

.social-links a {
    color: var(--secondary-color);
    font-size: 1.5rem;
    transition: all 0.3s ease;
}

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

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes subtleFloat {
    0% { transform: scale(1.1) translate(0, 0); }
    50% { transform: scale(1.1) translate(10px, 10px); }
    100% { transform: scale(1.1) translate(0, 0); }
}

@keyframes pulse {
    0% { transform: scale(1); box-shadow: 0 4px 15px rgba(198, 169, 98, 0.3); }
    50% { transform: scale(1.03); box-shadow: 0 8px 25px rgba(198, 169, 98, 0.5); }
    100% { transform: scale(1); box-shadow: 0 4px 15px rgba(198, 169, 98, 0.3); }
}

@keyframes morphBlob {
    0% { border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%; }
    25% { border-radius: 58% 42% 75% 25% / 76% 46% 54% 24%; }
    50% { border-radius: 50% 50% 33% 67% / 55% 27% 73% 45%; }
    75% { border-radius: 33% 67% 58% 42% / 63% 68% 32% 37%; }
    100% { border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%; }
}

/* Font face declaration */
@font-face {
    font-family: 'Montserrat';
    src: url('../fonts/Montserrat-SemiBold.otf') format('opentype');
    font-weight: 600;
    font-display: swap;
}
