@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700&display=swap');

:root {
    --color-bg-primary: #0A0E1A;
    --color-text-primary: #FFFFFF;
    --color-text-dark: #0A0E1A;
    --color-accent: #00BCD4;
    --color-accent-hover: #0097A7;
    --color-bg-secondary: #F0F0F0;
    --color-gold: #FFD700;
    --font-primary: 'Montserrat', sans-serif;
    --font-heading: 'Times New Roman', serif;
    --container-max: 1200px;
    --transition-standard: 200ms ease-in-out;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: var(--font-primary);
    background-color: var(--color-bg-primary);
    color: var(--color-text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    line-height: 1.2;
    margin-bottom: 1rem;
}
h1 { font-size: clamp(2.5rem, 5vw, 4rem); font-weight: 700; }
h2 { font-size: clamp(2rem, 4vw, 3rem); font-weight: 700; }
h3 { font-size: 1.5rem; font-weight: 600; margin-bottom: 0.5rem; }
p { margin-bottom: 1rem; font-size: 1rem; color: #E2E8F0; }
a { text-decoration: none; color: inherit; transition: color var(--transition-standard); }
img { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; }

.container { width: 100%; max-width: var(--container-max); margin: 0 auto; padding: 0 1.5rem; }

.text-center { text-align: center; }
.text-accent { color: var(--color-accent); }
.text-dark { color: var(--color-text-dark); }
.bg-light { background-color: var(--color-bg-secondary); color: var(--color-text-dark); }
.bg-light p { color: #4A5568; }
.bg-dark { background-color: var(--color-bg-primary); }

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    font-family: var(--font-primary);
    font-weight: 600;
    font-size: 1.1rem;
    cursor: pointer;
    border-radius: 4px;
    transition: all var(--transition-standard);
}
.btn-primary { background-color: var(--color-accent); color: var(--color-text-dark); border: none; }
.btn-primary:hover { background-color: var(--color-accent-hover); transform: scale(1.02); }
.btn-primary:focus { outline: 2px solid #FFFFFF; outline-offset: 2px; }
.btn-secondary { background-color: transparent; color: var(--color-accent); border: 1px solid var(--color-accent); }
.btn-secondary:hover { background-color: var(--color-accent); color: var(--color-text-dark); }
.text-link { color: var(--color-accent); font-weight: 600; display: inline-flex; align-items: center; position: relative; gap: 0.5rem; }
.text-link::after { content: ''; position: absolute; width: 100%; transform: scaleX(0); height: 2px; bottom: -2px; left: 0; background-color: var(--color-accent); transform-origin: bottom right; transition: transform 0.25s ease-out; }
.text-link:hover::after { transform: scaleX(1); transform-origin: bottom left; }

header[role="banner"] { position: fixed; top: 0; width: 100%; z-index: 1000; background-color: var(--color-bg-primary); transition: all 300ms ease; border-bottom: 1px solid rgba(255,255,255,0.1); }
header.scrolled { padding: 0; background: rgba(10, 14, 26, 0.95); backdrop-filter: blur(10px); }
.header-inner { display: flex; justify-content: space-between; align-items: center; height: 80px; }
.logo-link { display: flex; align-items: center; z-index: 1001; }
.logo-svg { height: 40px; width: auto; max-width: 200px; }
.desktop-nav { display: none; }
.mobile-menu-btn { display: block; background: none; border: none; cursor: pointer; z-index: 1001; padding: 10px; }
.mobile-menu-btn span { display: block; width: 25px; height: 2px; background: white; margin-bottom: 5px; transition: all 0.3s; }
.mobile-menu-btn.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.mobile-menu-btn.open span:nth-child(2) { opacity: 0; }
.mobile-menu-btn.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.mobile-cta-icon { display: flex; margin-left: auto; margin-right: 15px; color: var(--color-accent); font-size: 1.5rem; }
.mobile-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100vh; background-color: var(--color-bg-primary); z-index: 1000; display: flex; flex-direction: column; justify-content: center; align-items: center; transform: translateY(-100%); transition: transform 0.3s ease-in-out; }
.mobile-overlay.open { transform: translateY(0); }
.mobile-overlay ul { width: 100%; text-align: center; }
.mobile-overlay ul li { margin: 1.5rem 0; }
.mobile-overlay ul li a { font-size: 1.5rem; font-family: var(--font-heading); display: inline-block; }

@media (min-width: 1024px) {
    .mobile-menu-btn, .mobile-cta-icon, .mobile-overlay { display: none !important; }
    .desktop-nav { display: flex; align-items: center; flex: 1; justify-content: center; }
    .desktop-nav ul { display: flex; gap: 2rem; }
    .desktop-nav a { position: relative; font-weight: 500; font-size: 1rem; color: #E2E8F0; }
    .desktop-nav a:hover { color: #FFF; }
    .desktop-nav a::after { content: ''; position: absolute; left: 0; bottom: -5px; width: 0; height: 2px; background: var(--color-accent); transition: width 0.3s; }
    .desktop-nav a:hover::after { width: 100%; }
    .header-cta-wrapper { display: block; }
}

section { padding: 5rem 0; }
.hero { position: relative; padding: 0; height: 70vh; min-height: 500px; display: flex; align-items: center; justify-content: center; text-align: center; overflow: hidden; }
.hero-image { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; z-index: 1; }
.hero-content { position: relative; z-index: 2; max-width: 800px; padding: 2rem; animation: fadeUp 0.8s ease-out; }
.hero-content h1 { margin-bottom: 1rem; text-shadow: 2px 2px 4px rgba(0,0,0,0.5); }
.hero-content p { font-size: 1.25rem; margin-bottom: 2rem; text-shadow: 1px 1px 3px rgba(0,0,0,0.5); font-weight: 500; }

@keyframes fadeUp { 0% { opacity: 0; transform: translateY(20px); } 100% { opacity: 1; transform: translateY(0); } }

.grid-cards { display: grid; grid-template-columns: 1fr; gap: 2rem; margin-top: 3rem; }
.card { background-color: #151A2C; padding: 2.5rem 2rem; border-radius: 8px; transition: transform var(--transition-standard), box-shadow var(--transition-standard); border: 1px solid rgba(255,255,255,0.05); display: flex; flex-direction: column; height: 100%; }
.card:hover { transform: translateY(-5px) scale(1.02); box-shadow: 0 10px 20px rgba(0,0,0,0.5); border-color: rgba(0,188,212,0.3); }
.card-icon { width: 64px; height: 64px; margin-bottom: 1.5rem; fill: var(--color-accent); }
.card-icon svg { width: 100%; height: 100%; }
.card-title { font-size: 1.25rem; font-family: var(--font-heading); color: #fff; }
.card-body { flex-grow: 1; }

.flex-2col { display: grid; gap: 4rem; align-items: center; grid-template-columns: 1fr; }
.flex-2col img { border-radius: 8px; box-shadow: 0 20px 40px rgba(0,0,0,0.3); width: 100%; }
.feature-list { margin-top: 2rem; display: flex; flex-direction: column; gap: 1.5rem; }
.feature-item { display: flex; gap: 1rem; align-items: flex-start; }
.feature-icon { color: var(--color-accent); flex-shrink: 0; width: 24px; height: 24px; }

@media (min-width: 768px) {
    .grid-cards { grid-template-columns: repeat(2, 1fr); }
    .flex-2col { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 1024px) {
    .grid-cards { grid-template-columns: repeat(3, 1fr); }
    .hero { height: 80vh; }
}

.testimonial-carousel { background-image: url('../images/projects-hero.png'); background-size: cover; background-position: center; background-blend-mode: overlay; background-color: rgba(10, 14, 26, 0.9); text-align: center; padding: 6rem 0; }
.carousel-container { max-width: 800px; margin: 0 auto; position: relative; }
.carousel-slide { display: none; animation: fade 0.5s ease-in-out; }
.carousel-slide.active { display: block; }
.carousel-slide blockquote { font-size: 1.5rem; font-style: italic; margin-bottom: 1.5rem; font-family: var(--font-heading); }
.carousel-slide cite { font-style: normal; color: var(--color-accent); font-weight: 600; }
.carousel-nav { background: none; border: none; color: white; font-size: 2rem; cursor: pointer; position: absolute; top: 50%; transform: translateY(-50%); opacity: 0.5; transition: opacity 0.3s; padding: 10px; }
.carousel-nav:hover { opacity: 1; }
.carousel-nav.prev { left: -50px; }
.carousel-nav.next { right: -50px; }
@media(max-width: 850px) { .carousel-nav { display: none; } }

footer { background-color: #05070D; border-top: 1px solid rgba(255,255,255,0.05); padding: 5rem 0 2rem; }
.footer-grid { display: grid; grid-template-columns: 1fr; gap: 3rem; margin-bottom: 4rem; }
.footer-brand p { color: #A0AABF; margin-top: 1.5rem; }
.footer-links h4 { color: #fff; margin-bottom: 1.5rem; font-family: var(--font-heading); font-size: 1.25rem; }
.footer-links ul li { margin-bottom: 0.75rem; }
.footer-links ul li a { color: #A0AABF; transition: color 0.3s; }
.footer-links ul li a:hover { color: var(--color-accent); }
.social-icons { display: flex; gap: 1rem; margin-top: 1.5rem; }
.social-icon { color: #A0AABF; width: 32px; height: 32px; transition: color 0.3s, transform 0.3s; display: inline-flex; align-items: center; justify-content: center; border: 1px solid rgba(255,255,255,0.1); border-radius: 50%; }
.social-icon:hover { color: var(--color-bg-primary); background-color: var(--color-accent); border-color: var(--color-accent); transform: translateY(-3px); }
.social-icon svg { width: 16px; height: 16px; fill: currentColor; }
.footer-bottom { display: flex; flex-direction: column; gap: 1rem; align-items: center; border-top: 1px solid rgba(255,255,255,0.1); padding-top: 2rem; color: #A0AABF; text-align: center; font-size: 0.875rem; }
@media (min-width: 768px) { .footer-grid { grid-template-columns: 2fr 1fr 1.5fr; } .footer-bottom { flex-direction: row; justify-content: space-between; } }

.page-header { background-color: var(--color-bg-primary); padding: 150px 0 5rem; text-align: center; position: relative; border-bottom: 1px solid rgba(255,255,255,0.1); }
.page-header h1 { margin-bottom: 1rem; }
.page-header p { max-width: 700px; margin: 0 auto; font-size: 1.25rem; }

form { display: grid; gap: 1.5rem; width: 100%; }
.form-group { display: flex; flex-direction: column; gap: 0.5rem; }
.form-group label { font-weight: 500; font-size: 0.9rem; color: #E2E8F0; }
.form-control { padding: 1rem; background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1); color: var(--color-text-primary); border-radius: 4px; font-family: var(--font-primary); font-size: 1rem; transition: border-color var(--transition-standard), box-shadow var(--transition-standard); }
.form-control:focus { outline: none; border-color: var(--color-accent); box-shadow: 0 0 0 2px rgba(0,188,212,0.2); }
textarea.form-control { resize: vertical; min-height: 150px; }

.contact-info-list { list-style: none; display: flex; flex-direction: column; gap: 1.5rem; margin-top: 2rem; }
.contact-info-item { display: flex; gap: 1rem; align-items: flex-start; }
.contact-info-icon { width: 24px; height: 24px; fill: var(--color-accent); flex-shrink: 0; }
.contact-info-text h4 { margin-bottom: 0.25rem; color: #fff; font-family: var(--font-primary); font-size: 1.1rem; }

.blog-grid { display: grid; grid-template-columns: 1fr; gap: 2rem; margin-top: 3rem; }
.blog-card { background: #151A2C; border-radius: 8px; overflow: hidden; border: 1px solid rgba(255,255,255,0.05); transition: transform 0.3s, box-shadow 0.3s; }
.blog-card:hover { transform: translateY(-5px); box-shadow: 0 15px 30px rgba(0,0,0,0.4); }
.blog-img-wrapper { height: 200px; overflow: hidden; }
.blog-img-wrapper img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.blog-card:hover .blog-img-wrapper img { transform: scale(1.05); }
.blog-content { padding: 2rem; }
.blog-meta { font-size: 0.875rem; color: var(--color-accent); margin-bottom: 0.75rem; display: block; }
.blog-title { font-size: 1.25rem; margin-bottom: 1rem; color: #fff; font-family: var(--font-heading); }

@media (min-width: 768px) { .blog-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .blog-grid { grid-template-columns: repeat(3, 1fr); } }

.project-grid { display: grid; grid-template-columns: 1fr; gap: 2rem; margin-top: 3rem; }
.project-card { position: relative; border-radius: 8px; overflow: hidden; aspect-ratio: 4/3; }
.project-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.project-overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(10,14,26,0.9), transparent); display: flex; flex-direction: column; justify-content: flex-end; padding: 2rem; opacity: 0; transition: opacity 0.3s; }
.project-card:hover img { transform: scale(1.05); }
.project-card:hover .project-overlay { opacity: 1; }
.project-type { color: var(--color-accent); font-weight: 600; font-size: 0.875rem; text-transform: uppercase; margin-bottom: 0.5rem; }
@media (min-width: 768px) { .project-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .project-grid { grid-template-columns: repeat(3, 1fr); } }

.team-grid { display: grid; grid-template-columns: 1fr; gap: 2rem; margin-top: 3rem; }
.team-member { text-align: center; }
.team-img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 8px; margin-bottom: 1.5rem; filter: grayscale(20%); transition: filter 0.3s; }
.team-member:hover .team-img { filter: grayscale(0%); }
.team-role { color: var(--color-accent); font-weight: 500; margin-bottom: 1rem; display: block; }
@media (min-width: 768px) { .team-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .team-grid { grid-template-columns: repeat(3, 1fr); } }

/* Scroll Animations */
.fade-up { opacity: 0; transform: translateY(30px); transition: opacity 0.8s ease-out, transform 0.8s ease-out; }
.fade-up.visible { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
    *, ::before, ::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    .fade-up { opacity: 1; transform: none; }
}
