/* Color Palette Variables */
:root {
    --rich-black: #000814;
    --oxford-blue: #001d3d;
    --yale-blue: #003566;
    --mikado-yellow: #ffc300;
    --gold: #ffd60a;
    
    /* Additional colors for better contrast and styling */
    --white: #ffffff;
    --light-gray: #f5f5f5;
    --dark-gray: #1a1a1a;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background-color: var(--rich-black);
    color: var(--white);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

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

/* Hamburger Menu Button */
.hamburger {
    position: fixed;
    top: 2rem;
    left: 2rem;
    z-index: 1001;
    background: transparent;
    border: none;
    cursor: pointer;
    width: 50px;
    height: 50px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 6px;
    transition: transform 0.3s ease;
}

.hamburger:hover {
    transform: scale(1.1);
}

.hamburger-line {
    width: 30px;
    height: 3px;
    background: var(--mikado-yellow);
    border-radius: 3px;
    transition: all 0.3s ease;
    transform-origin: center;
}

.hamburger.active .hamburger-line:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

.hamburger.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.hamburger.active .hamburger-line:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

/* Sidebar */
.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 0;
    height: 100vh;
    background: linear-gradient(135deg, var(--oxford-blue) 0%, var(--yale-blue) 100%);
    z-index: 1000;
    overflow: hidden;
    transition: width 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    box-shadow: 4px 0 20px rgba(0, 0, 0, 0.5);
}

.sidebar.active {
    width: 300px;
}

.sidebar-content {
    padding: 6rem 2rem 2rem 2rem;
    opacity: 0;
    transition: opacity 0.3s ease 0.2s;
}

.sidebar.active .sidebar-content {
    opacity: 1;
}

.sidebar-header {
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 2px solid var(--mikado-yellow);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.sidebar-logo {
    width: 70px;
    height: 70px;
    object-fit: contain;
    display: block;
}

.sidebar-header h2 {
    font-size: 1.8rem;
    color: var(--mikado-yellow);
    font-weight: 700;
    letter-spacing: 2px;
    margin: 0;
}

.sidebar-menu {
    list-style: none;
}

.sidebar-menu li {
    margin-bottom: 1.5rem;
    transform: translateX(-20px);
    opacity: 0;
    transition: all 0.3s ease;
}

.sidebar.active .sidebar-menu li {
    transform: translateX(0);
    opacity: 1;
}

.sidebar.active .sidebar-menu li:nth-child(1) {
    transition-delay: 0.1s;
}

.sidebar.active .sidebar-menu li:nth-child(2) {
    transition-delay: 0.2s;
}

.sidebar.active .sidebar-menu li:nth-child(3) {
    transition-delay: 0.3s;
}

.sidebar-link {
    color: var(--white);
    text-decoration: none;
    font-size: 1.2rem;
    font-weight: 500;
    display: block;
    padding: 0.8rem 1rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.sidebar-link::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 0;
    height: 100%;
    background: var(--mikado-yellow);
    transition: width 0.3s ease;
    z-index: -1;
}

.sidebar-link:hover::before,
.sidebar-link.active::before {
    width: 100%;
}

.sidebar-link:hover,
.sidebar-link.active {
    color: var(--rich-black);
    transform: translateX(10px);
}

/* Overlay */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Main Content */
.main-content {
    min-height: 100vh;
    transition: transform 0.4s ease;
    position: relative;
    z-index: 1;
}

.main-content.shifted {
    transform: translateX(300px);
}

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

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.hero-content {
    text-align: center;
    z-index: 1;
    padding: 2rem;
    animation: fadeInUp 1s ease;
}

.hero-title {
    font-size: clamp(3rem, 8vw, 8rem);
    font-weight: 900;
    margin-bottom: 1rem;
    line-height: 1.1;
    padding-bottom: 0.2em; /* Add space for descenders like 'g' */
}

.title-line {
    display: block;
    background: linear-gradient(135deg, var(--mikado-yellow) 0%, var(--gold) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: slideInLeft 0.8s ease;
    padding-bottom: 0.1em; 
}

.title-line:nth-child(2) {
    animation-delay: 0.2s;
    animation-fill-mode: both;
}

.hero-subtitle {
    font-size: clamp(1.2rem, 3vw, 2rem);
    color: var(--mikado-yellow);
    margin-bottom: 1.5rem;
    font-weight: 300;
    letter-spacing: 4px;
    text-transform: uppercase;
}

.hero-description {
    font-size: clamp(1rem, 2vw, 1.3rem);
    max-width: 700px;
    margin: 0 auto 2.5rem;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.8;
}

.cta-button {
    display: inline-block;
    padding: 1rem 2.5rem;
    background: linear-gradient(135deg, var(--mikado-yellow) 0%, var(--gold) 100%);
    color: var(--rich-black);
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    border-radius: 50px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 195, 0, 0.3);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 25px rgba(255, 195, 0, 0.5);
}

.scroll-indicator {
    position: absolute;
    bottom: 3rem;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
}

.scroll-arrow {
    width: 30px;
    height: 30px;
    border-right: 3px solid var(--mikado-yellow);
    border-bottom: 3px solid var(--mikado-yellow);
    transform: rotate(45deg);
}

/* Services Section */
.services {
    padding: 6rem 0;
    background: linear-gradient(135deg, var(--rich-black) 0%, var(--oxford-blue) 50%, var(--yale-blue) 100%);
}

.section-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    text-align: center;
    margin-bottom: 4rem;
    background: linear-gradient(135deg, var(--mikado-yellow) 0%, var(--gold) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

.service-card {
    background: rgba(255, 255, 255, 0.12);
    padding: 2.5rem;
    border-radius: 15px;
    text-align: center;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.service-card:hover {
    transform: translateY(-10px);
    border-color: var(--mikado-yellow);
    box-shadow: 0 10px 30px rgba(255, 195, 0, 0.2);
}

.service-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--mikado-yellow);
}

.service-card p {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.8;
}

/* About Preview Section */
.about-preview {
    padding: 6rem 0;
    background: var(--rich-black);
    position: relative;
    overflow: hidden;
}

.section-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

#vanta-waves-dark {
    width: 100%;
    height: 100%;
}

.about-preview-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

.about-preview-text {
    padding: 2rem 0;
}

.about-preview-text p {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
    line-height: 1.8;
}

.learn-more-button {
    display: inline-block;
    padding: 0.8rem 2rem;
    background: transparent;
    color: var(--mikado-yellow);
    text-decoration: none;
    font-weight: 600;
    border: 2px solid var(--mikado-yellow);
    border-radius: 50px;
    transition: all 0.3s ease;
}

.learn-more-button:hover {
    background: var(--mikado-yellow);
    color: var(--rich-black);
    transform: translateX(5px);
}

.about-preview-image {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
}

.image-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--yale-blue) 0%, var(--oxford-blue) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.3);
    font-size: 1.2rem;
    /* IMAGE PLACEHOLDER: Replace with <img src="your-image.jpg" alt="About"> */
}

.image-placeholder-large {
    width: 100%;
    height: 700px;
    background: linear-gradient(135deg, var(--yale-blue) 0%, var(--oxford-blue) 100%);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.3);
    font-size: 1.2rem;
    object-fit: cover;
    object-position: center;
}

/* Contact CTA Section */
.contact-cta {
    padding: 6rem 0;
    background: linear-gradient(135deg, var(--rich-black) 0%, var(--oxford-blue) 50%, var(--yale-blue) 100%);
    text-align: center;
    position: relative;
}

.contact-cta p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: rgba(255, 255, 255, 0.9);
}

/* Page Background for Vanta.js */
.page-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: var(--rich-black);
}

#vanta-waves {
    width: 100%;
    height: 100%;
}

/* Page Header (for About and Contact pages) */
.page-header {
    padding: 8rem 0 4rem;
    background: transparent;
    text-align: center;
    position: relative;
    z-index: 1;
}

.page-title {
    font-size: clamp(2.5rem, 6vw, 4rem);
    background: linear-gradient(135deg, var(--mikado-yellow) 0%, var(--gold) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
}

.page-subtitle {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.8);
    max-width: 600px;
    margin: 0 auto;
}

/* About Content */
.about-content {
    padding: 4rem 0;
    background: transparent;
    position: relative;
    z-index: 1;
}

.about-section {
    margin-bottom: 4rem;
}

.about-section h2 {
    font-size: 2.5rem;
    color: var(--mikado-yellow);
    margin-bottom: 1.5rem;
}

.about-section p {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.8;
    max-width: 800px;
}

.about-image-large {
    margin: 3rem 0;
}

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

.value-item {
    background: rgba(255, 255, 255, 0.05);
    padding: 2rem;
    border-radius: 15px;
    border-left: 4px solid var(--mikado-yellow);
    transition: all 0.3s ease;
}

.value-item:hover {
    transform: translateX(10px);
    background: rgba(255, 255, 255, 0.08);
}

.value-item h3 {
    color: var(--mikado-yellow);
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.value-item p {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
}

/* Contact Content */
.contact-content {
    padding: 4rem 0;
    background: transparent;
    position: relative;
    z-index: 1;
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.contact-info h2 {
    font-size: 2.5rem;
    color: var(--mikado-yellow);
    margin-bottom: 1rem;
}

.contact-intro {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-item {
    display: flex;
    gap: 1.5rem;
    align-items: start;
}

.contact-icon {
    font-size: 2rem;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 195, 0, 0.1);
    border-radius: 50%;
    flex-shrink: 0;
}

.contact-item h3 {
    color: var(--mikado-yellow);
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.contact-item p {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
}

.contact-form-wrapper {
    background: rgba(255, 255, 255, 0.05);
    padding: 2.5rem;
    border-radius: 15px;
    backdrop-filter: blur(10px);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

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

.form-group input,
.form-group textarea {
    padding: 1rem;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 195, 0, 0.3);
    border-radius: 8px;
    color: var(--white);
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--mikado-yellow);
    background: rgba(255, 255, 255, 0.15);
}

.form-group input.error,
.form-group textarea.error {
    border-color: #ff4444;
    background: rgba(255, 68, 68, 0.1);
    animation: shake 0.3s ease;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

.error-message {
    display: block;
    color: #ff4444;
    font-size: 0.875rem;
    margin-top: 0.5rem;
    min-height: 1.25rem;
}

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

.submit-button {
    padding: 1rem 2rem;
    background: linear-gradient(135deg, var(--mikado-yellow) 0%, var(--gold) 100%);
    color: var(--rich-black);
    border: none;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.submit-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 25px rgba(255, 195, 0, 0.5);
}

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

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-10px);
    }
    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .hamburger {
        top: 1rem;
        left: 1rem;
    }

    .sidebar.active {
        width: 250px;
    }

    .about-preview-content,
    .contact-wrapper {
        grid-template-columns: 1fr;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .values-grid {
        grid-template-columns: 1fr;
    }

    .container {
        padding: 0 1.5rem;
    }

    .hero-content {
        padding: 1rem;
    }
}

@media (max-width: 480px) {
    .sidebar.active {
        width: 100%;
    }

    .main-content.shifted {
        transform: translateX(0);
    }
}

