/* ==================== VARIABLES ==================== */
:root {
    --deep-space-blue: #003851ff;
    --ocean-blue: #3b8aadff;
    --vintage-berry: #a13d63ff;
    --rosy-taupe: #cea2acff;
    --powder-petal: #efd9ceff;
    
    /* Semantic aliases for backward compatibility */
    --primary-color: var(--deep-space-blue);
    --secondary-color: var(--ocean-blue);
    --tertiary-color: var(--vintage-berry);
    --light-color: var(--rosy-taupe);
    --bg-light: var(--powder-petal);
    
    --white: #ffffff;
    --black: #000000;
    --gray: #6c757d;
    --dark-gray: #343a40;
    --font-primary: "Montserrat", sans-serif;
    --font-secondary: "Raleway", sans-serif;
    --transition: all 0.3s ease;
    --box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    --box-shadow-hover: 0 10px 25px rgba(0, 0, 0, 0.15);
}

/* ==================== RESET & BASE ==================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    line-height: 1.6;
    color: var(--dark-gray);
    background: var(--bg-light);
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ==================== TYPOGRAPHY ==================== */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-secondary);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 15px;
    color: var(--deep-space-blue);
}

h1 {
    font-size: 48px;
    font-weight: 800;
}

h2 {
    font-size: 36px;
    margin-bottom: 20px;
}

h3 {
    font-size: 24px;
}

p {
    margin-bottom: 15px;
    line-height: 1.8;
}

a {
    text-decoration: none;
    transition: var(--transition);
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.underline {
    width: 60px;
    height: 3px;
    background: var(--ocean-blue);
    margin: 10px auto 0;
    border-radius: 2px;
}

/* ==================== BUTTONS ==================== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 30px;
    border-radius: 8px;
    font-weight: 600;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    font-family: inherit;
}

.btn-primary {
    background: var(--deep-space-blue);
    color: var(--white);
}

.btn-primary:hover {
    background: var(--ocean-blue);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,56,81,0.3);
}

.btn-secondary {
    background: transparent;
    color: var(--deep-space-blue);
    border: 2px solid var(--deep-space-blue);
}

.btn-secondary:hover {
    background: var(--deep-space-blue);
    color: var(--white);
    transform: translateY(-2px);
}

.btn-tertiary {
    background: var(--vintage-berry);
    color: var(--white);
}

.btn-tertiary:hover {
    background: var(--ocean-blue);
    transform: translateY(-2px);
}

.btn-light {
    background: var(--white);
    color: var(--deep-space-blue);
}

.btn-light:hover {
    background: var(--rosy-taupe);
    transform: translateY(-2px);
}

.btn-small {
    padding: 8px 20px;
    font-size: 14px;
}

.btn-link {
    color: var(--ocean-blue);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.btn-link:hover {
    color: var(--deep-space-blue);
    gap: 10px;
}

/* ==================== HEADER ==================== */
#header {
    background: var(--white);
    box-shadow: var(--box-shadow);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    transition: var(--transition);
}

#header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
}

.logo img {
    width: 50px;
    height: auto;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-menu li a {
    color: var(--dark-gray);
    font-weight: 600;
    position: relative;
    padding: 5px 0;
}

.nav-menu li a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--ocean-blue);
    transition: var(--transition);
}

.nav-menu li a:hover::after,
.nav-menu li a.active::after {
    width: 100%;
}

.nav-menu li a.active {
    color: var(--deep-space-blue);
}

.hamburger {
    display: none;
    cursor: pointer;
}

.hamburger .bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    background: var(--deep-space-blue);
    transition: var(--transition);
}

/* ==================== HERO SECTION ==================== */
#hero {
    background: linear-gradient(135deg, var(--deep-space-blue) 0%, var(--ocean-blue) 50%);
    min-height: 40vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    margin-top: 80px;
}

.hero-content {
    text-align: center;
    color: var(--white);
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 20px;
}

.hero-content h1 {
    color: var(--white);
    font-size: 56px;
    margin-bottom: 20px;
    animation: fadeInUp 0.8s ease;
}

.hero-content p {
    font-size: 18px;
    margin-bottom: 30px;
    animation: fadeInUp 1s ease;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    animation: fadeInUp 1.2s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==================== ABOUT PREVIEW ==================== */
#about-preview {
    padding: 80px 0;
    background: var(--white);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-text p {
    line-height: 1.8;
    margin-bottom: 20px;
    color: var(--dark-gray);
}

.about-image img {
    width: 100%;
    border-radius: 15px;
    box-shadow: var(--box-shadow);
}

/* ==================== SERVICES SECTION ==================== */
#services-preview {
    padding: 80px 0;
    background: var(--bg-light);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.service-card {
    background: var(--white);
    padding: 40px 25px;
    text-align: center;
    border-radius: 15px;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--box-shadow-hover);
}

.service-icon {
    width: 80px;
    height: 80px;
    background: var(--deep-space-blue);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    transition: var(--transition);
}

.service-card:hover .service-icon {
    background: var(--ocean-blue);
    transform: scale(1.1);
}

.service-icon i {
    font-size: 35px;
    color: var(--white);
}

.service-card h3 {
    margin-bottom: 15px;
    color: var(--deep-space-blue);
}

.service-card p {
    color: var(--gray);
    font-size: 14px;
    line-height: 1.8;
    margin-bottom: 20px;
}

.services-cta {
    text-align: center;
    margin-top: 20px;
}

/* ==================== VALUES SECTION ==================== */
#values {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--deep-space-blue) 0%, var(--ocean-blue) 100%);
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.value-card {
    background: rgba(255, 255, 255, 0.1);
    padding: 40px 25px;
    text-align: center;
    border-radius: 15px;
    transition: var(--transition);
    backdrop-filter: blur(10px);
}

.value-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.2);
}

.value-card i {
    font-size: 48px;
    color: var(--white);
    margin-bottom: 20px;
}

.value-card h3 {
    color: var(--white);
    margin-bottom: 15px;
}

.value-card p {
    color: var(--rosy-taupe);
    line-height: 1.6;
}

/* ==================== PROJECTS SECTION ==================== */
#projects-preview {
    padding: 80px 0;
    background: var(--white);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.project-card {
    background: var(--white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--box-shadow-hover);
}

.project-image {
    position: relative;
    overflow: hidden;
    height: 250px;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.project-card:hover .project-image img {
    transform: scale(1.1);
}

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 56, 81, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

.project-card:hover .project-overlay {
    opacity: 1;
}

.btn-view {
    padding: 12px 25px;
    background: var(--white);
    color: var(--deep-space-blue);
    border-radius: 8px;
    font-weight: 600;
    transition: var(--transition);
}

.btn-view:hover {
    background: var(--ocean-blue);
    color: var(--white);
    transform: scale(1.05);
}

.project-info {
    padding: 25px;
}

.project-info h3 {
    margin-bottom: 10px;
    color: var(--deep-space-blue);
}

.project-info p {
    color: var(--gray);
    margin-bottom: 20px;
    line-height: 1.6;
}

.projects-cta {
    text-align: center;
}

/* ==================== CTA SECTION ==================== */
#cta {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--deep-space-blue) 0%, var(--ocean-blue) 100%);
    text-align: center;
}

.cta-content {
    max-width: 700px;
    margin: 0 auto;
    padding: 20px;
}

.cta-content h2 {
    color: var(--white);
    margin-bottom: 20px;
    font-size: 36px;
}

.cta-content p {
    color: var(--rosy-taupe);
    margin-bottom: 30px;
    font-size: 18px;
}

/* ==================== PAGE HEADER ==================== */
.page-header {
    background: linear-gradient(135deg, var(--deep-space-blue) 0%, var(--ocean-blue) 100%);
    padding: 120px 0 60px;
    text-align: center;
    margin-top: 80px;
}

.page-header h1 {
    color: var(--white);
    font-size: 48px;
    margin-bottom: 15px;
}

.page-header p {
    color: var(--rosy-taupe);
    font-size: 18px;
}

/* ==================== CONTACT PAGE ==================== */
.contact-section {
    padding: 80px 0;
    background: var(--white);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.contact-info h2,
.contact-form h2 {
    margin-bottom: 25px;
    color: var(--deep-space-blue);
}

.contact-details {
    margin: 35px 0;
}

.contact-item {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
}

.contact-item i {
    width: 55px;
    height: 55px;
    background: var(--deep-space-blue);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 22px;
    transition: var(--transition);
}

.contact-item:hover i {
    background: var(--ocean-blue);
    transform: scale(1.05);
}

.contact-item h4 {
    margin-bottom: 5px;
    color: var(--deep-space-blue);
}

.contact-item p {
    color: var(--gray);
    line-height: 1.5;
}

.contact-social .social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.contact-social .social-links a {
    width: 45px;
    height: 45px;
    background: var(--deep-space-blue);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    transition: var(--transition);
}

.contact-social .social-links a:hover {
    background: var(--ocean-blue);
    transform: translateY(-3px);
}

/* Contact Form */
.contact-form .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.contact-form .form-group {
    margin-bottom: 20px;
}

.contact-form .form-group input,
.contact-form .form-group textarea {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    font-family: inherit;
    transition: var(--transition);
    background: var(--white);
}

.contact-form .form-group input:focus,
.contact-form .form-group textarea:focus {
    outline: none;
    border-color: var(--ocean-blue);
    box-shadow: 0 0 0 3px rgba(59,138,173,0.1);
}

.alert {
    padding: 15px 20px;
    border-radius: 10px;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.alert-success {
    background: #d4edda;
    color: #155724;
    border-left: 4px solid #28a745;
}

.alert-error {
    background: #f8d7da;
    color: #721c24;
    border-left: 4px solid #dc3545;
}

/* ==================== FOOTER ==================== */
footer {
    background: var(--deep-space-blue);
    color: var(--white);
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 50px;
    margin-bottom: 40px;
}

.footer-logo img {
    width: 60px;
    margin-bottom: 15px;
}

.footer-logo p {
    color: var(--rosy-taupe);
    margin-top: 10px;
}

.footer-links h4,
.footer-services h4,
.footer-contact h4 {
    color: var(--white);
    margin-bottom: 25px;
    font-size: 18px;
}

.footer-links ul,
.footer-services ul,
.footer-contact ul {
    list-style: none;
}

.footer-links ul li,
.footer-services ul li {
    margin-bottom: 12px;
}

.footer-links ul li a,
.footer-services ul li a {
    color: var(--rosy-taupe);
    transition: var(--transition);
}

.footer-links ul li a:hover,
.footer-services ul li a:hover {
    color: var(--white);
    padding-left: 5px;
}

.footer-contact ul li {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
    color: var(--rosy-taupe);
}

.footer-contact ul li i {
    width: 25px;
    font-size: 18px;
}

.social-icons {
    display: flex;
    gap: 15px;
    margin-top: 25px;
}

.social-icons a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    transition: var(--transition);
}

.social-icons a:hover {
    background: var(--ocean-blue);
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding-top: 25px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--rosy-taupe);
    font-size: 14px;
}

/* ==================== RESPONSIVE DESIGN ==================== */
@media (max-width: 992px) {
    h1 {
        font-size: 36px;
    }
    
    h2 {
        font-size: 30px;
    }
    
    .about-content,
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .services-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
    
    /* Mobile Navigation */
    .hamburger {
        display: block;
    }
    
    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }
    
    .hamburger.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    
    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
    
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background: var(--white);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: var(--box-shadow);
        padding: 30px 0;
        gap: 20px;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    /* Hero Section */
    .hero-content h1 {
        font-size: 32px;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    /* Sections */
    #about-preview,
    #services-preview,
    #values,
    #projects-preview,
    #cta,
    .contact-section {
        padding: 60px 0;
    }
    
    /* Values Grid */
    .values-grid {
        grid-template-columns: 1fr;
    }
    
    /* Projects Grid */
    .projects-grid {
        grid-template-columns: 1fr;
    }
    
    /* Contact Form */
    .contact-form .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
    
    /* Page Header */
    .page-header {
        padding: 100px 0 40px;
    }
    
    .page-header h1 {
        font-size: 32px;
    }
    
    /* Footer */
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 30px;
    }
    
    .footer-contact ul li {
        justify-content: center;
    }
    
    .social-icons {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 28px;
    }
    
    h2 {
        font-size: 24px;
    }
    
    .section-header {
        margin-bottom: 40px;
    }
    
    .service-card {
        padding: 30px 20px;
    }
    
    .btn {
        padding: 10px 20px;
    }
    
    .contact-item {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
    
    .contact-item i {
        margin: 0 auto;
    }
}