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

:root {
    --primary-dark: #0a1128;
    --primary-blue: #1c315e;
    --accent-gold: #d4af37;
    --accent-silver: #e0e0e0;
    --text-light: #f8f9fa;
    --text-muted: #a0aabf;
    --card-bg: rgba(28, 49, 94, 0.4);
    --border-color: rgba(212, 175, 55, 0.2);
    --transition-speed: 0.5s;
}

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

body {
    background-color: var(--primary-dark);
    color: var(--text-light);
    font-family: 'Montserrat', sans-serif;
    line-height: 1.7;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
}

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

.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Nav */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 1.2rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(10, 17, 40, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    z-index: 1000;
    transition: padding 0.4s ease;
}

nav.scrolled {
    padding: 0.8rem 5%;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

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

.logo-container img {
    height: 50px;
    filter: drop-shadow(0 0 5px rgba(212, 175, 55, 0.3));
}

.logo-container span {
    color: var(--accent-gold);
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    letter-spacing: 1px;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 2.5rem;
}

nav ul li a {
    text-decoration: none;
    color: var(--text-light);
    font-weight: 500;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: color 0.3s ease;
    position: relative;
}

nav ul li a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0%;
    height: 1px;
    background-color: var(--accent-gold);
    transition: width 0.3s ease;
}

nav ul li a:hover {
    color: var(--accent-gold);
}

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

/* Hero Slider */
.hero-slider {
    position: relative;
    height: 100vh;
    overflow: hidden;
}

.slide {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    text-align: left;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    padding: 0 5%;
}

.slide.active {
    opacity: 1;
    z-index: 1;
}

.hero-slider::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 150px;
    background: linear-gradient(to top, var(--primary-dark), transparent);
    z-index: 2;
    pointer-events: none;
}

.slide > div {
    position: relative;
    z-index: 3;
    max-width: 800px;
}

.slide h1 {
    font-size: 4.5rem;
    margin-bottom: 1.5rem;
    color: var(--text-light);
    text-shadow: 0 5px 15px rgba(0,0,0,0.5);
    letter-spacing: 2px;
}

.slide h1 span {
    color: var(--accent-gold);
}

.slide p {
    font-size: 1.2rem;
    margin: 0 0 2.5rem 0;
    color: var(--accent-silver);
    font-weight: 300;
    letter-spacing: 1px;
}

.hero-slider .prev, .hero-slider .next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    width: auto;
    padding: 16px;
    margin-top: -22px;
    color: white;
    font-weight: bold;
    font-size: 18px;
    transition: 0.6s ease;
    border-radius: 0 3px 3px 0;
    user-select: none;
    z-index: 4;
}

.hero-slider .next {
    right: 0;
    border-radius: 3px 0 0 3px;
}

.hero-slider .prev:hover, .hero-slider .next:hover {
    background-color: rgba(212, 175, 55, 0.8);
}

.btn-primary {
    display: inline-block;
    padding: 16px 40px;
    background-color: transparent;
    color: var(--accent-gold);
    text-decoration: none;
    border: 1px solid var(--accent-gold);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--accent-gold);
    z-index: -1;
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.4s ease;
}

.btn-primary:hover {
    color: var(--primary-dark);
}

.btn-primary:hover::before {
    transform: scaleX(1);
    transform-origin: left;
}

/* Sections */
section {
    padding: 120px 5%;
    position: relative;
}

.section-title {
    text-align: center;
    font-size: 3rem;
    margin-bottom: 4rem;
    color: var(--text-light);
}

.section-title span {
    color: var(--accent-gold);
    font-style: italic;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 2px;
    background-color: var(--accent-gold);
    margin: 20px auto 0;
}

/* Portfolio / Services Section */
#portfolio {
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

/* Services Grid */
.grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.card {
    background: var(--card-bg);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 3rem 2rem;
    text-align: center;
    backdrop-filter: blur(5px);
    transition: all var(--transition-speed) ease;
    position: relative;
    overflow: hidden;
}

/* Background image overlay */
.card::after {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-image: linear-gradient(rgba(10, 17, 40, 0.7), rgba(28, 49, 94, 0.85)), var(--hover-bg, none);
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity var(--transition-speed) ease;
    z-index: 0;
}

.card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    border: 1px solid var(--accent-gold);
    opacity: 0;
    transform: scale(1.05);
    transition: all var(--transition-speed) ease;
    z-index: 2;
    pointer-events: none;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.card:hover::before {
    opacity: 1;
    transform: scale(1);
}

.card:hover::after {
    opacity: 1;
}

.card i, .card h3, .card p {
    position: relative;
    z-index: 1;
}

.card i {
    font-size: 3rem;
    color: var(--accent-silver);
    margin-bottom: 1.5rem;
    transition: color 0.4s ease;
}

.card:hover i {
    color: var(--accent-gold);
}

.card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    letter-spacing: 1px;
}

.card p {
    font-size: 0.95rem;
    color: var(--text-muted);
    font-weight: 300;
}

/* About Section */
.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
}

.about-text h2 {
    text-align: left;
    margin-bottom: 2rem;
}

.about-text h2::after {
    margin: 20px 0 0 0;
}

.about-text p {
    margin-bottom: 1.5rem;
    color: var(--text-muted);
    font-size: 1.1rem;
    font-weight: 300;
}

.about-stats {
    background: var(--card-bg);
    padding: 3rem;
    border-left: 3px solid var(--accent-gold);
    position: relative;
}

.about-stats::after {
    content: '\f10e'; /* quote right */
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 4rem;
    color: rgba(212, 175, 55, 0.1);
}

.about-stats h3 {
    color: var(--accent-gold);
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
}

.about-stats ul {
    list-style: none;
    color: var(--text-muted);
    font-weight: 300;
}

.about-stats ul li {
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.about-stats ul li i {
    color: var(--accent-gold);
    font-size: 0.8rem;
}

/* Contact */
.contact-wrapper {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
}

.map-container {
    height: 400px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
}

.map-container::after {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    pointer-events: none;
    box-shadow: inset 0 0 20px var(--primary-dark);
}

.contact-info {
    background: var(--card-bg);
    padding: 3rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    border-top: 3px solid var(--accent-gold);
}

.contact-item {
    margin-bottom: 2rem;
}

.contact-item:last-child {
    margin-bottom: 0;
}

.contact-item i {
    color: var(--accent-gold);
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.contact-item h4 {
    margin-bottom: 5px;
    font-size: 1.2rem;
}

.contact-item p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Contact & Footer Integration */
footer {
    background-size: cover;
    background-position: center;
    padding: 0; /* Changed for contact map */
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-top-contact {
    padding: 5rem 5% 0;
}

.footer-bottom-grid {
    padding: 5rem 5% 2rem;
}

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

.footer-col h4 {
    color: var(--text-light);
    margin-bottom: 2rem;
    font-size: 1.3rem;
    position: relative;
}

.footer-col h4::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -10px;
    width: 30px;
    height: 1px;
    background-color: var(--accent-gold);
}

.footer-col p {
    color: var(--text-muted);
    font-weight: 300;
    font-size: 0.95rem;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 1rem;
}

.footer-col ul li a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.3s ease;
    font-size: 0.95rem;
}

.footer-col ul li a:hover {
    color: var(--accent-gold);
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--accent-silver);
    text-decoration: none;
    transition: all 0.3s ease;
}

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

.copyright {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    color: #4a5568;
    font-size: 0.85rem;
}

/* Floating Action Buttons */
.fab-left, .fab-right {
    position: fixed;
    bottom: 30px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    font-size: 2rem;
    box-shadow: 0 4px 10px rgba(0,0,0,0.4);
    z-index: 1000;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-decoration: none;
}

.fab-left {
    left: 30px;
    background: linear-gradient(45deg, #1c315e, #3b82f6);
}

.fab-right {
    right: 30px;
    background: linear-gradient(45deg, #25d366, #128c7e);
}

.fab-left:hover, .fab-right:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 6px 15px rgba(0,0,0,0.6);
    color: white;
}

.fab-left i, .fab-right i {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

/* Page Headers for Subpages */
.page-header {
    height: 60vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    background-attachment: fixed;
    padding-top: 80px; /* Offset for navbar */
    position: relative;
}

.page-header::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; width: 100%; height: 50px;
    background: linear-gradient(to top, var(--primary-dark), transparent);
}

.page-header h1 {
    font-size: 3.5rem;
    color: var(--text-light);
    letter-spacing: 2px;
}

.page-header h1 span {
    color: var(--accent-gold);
}

/* Contact Form */
.contact-form {
    background: var(--card-bg);
    padding: 3rem;
    border-radius: 5px;
    border-top: 3px solid var(--accent-gold);
}

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

.form-group input, .form-group textarea {
    width: 100%;
    padding: 15px;
    background: rgba(10, 17, 40, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-light);
    font-family: 'Montserrat', sans-serif;
    outline: none;
    transition: border-color 0.3s ease;
}

.form-group input:focus, .form-group textarea:focus {
    border-color: var(--accent-gold);
}

/* Subpage About */
.vision-mission {
    margin-top: 4rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.vm-box {
    background: var(--card-bg);
    padding: 3rem;
    border-left: 3px solid var(--accent-gold);
}

/* Projects Gallery */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.project-card {
    background: var(--card-bg);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 5px;
    overflow: hidden;
    position: relative;
    transition: transform 0.4s ease;
}

.project-card:hover {
    transform: translateY(-10px);
}

.project-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.project-card:hover img {
    transform: scale(1.05);
}

.project-info {
    padding: 2rem;
}

.project-info h3 {
    color: var(--accent-gold);
    margin-bottom: 0.5rem;
    font-size: 1.4rem;
}

.project-info p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
}

.project-info a {
    display: inline-block;
    color: var(--text-light);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-bottom: 1px solid var(--accent-gold);
    padding-bottom: 5px;
    transition: color 0.3s ease;
}

.project-info a:hover {
    color: var(--accent-gold);
}

/* Project Details */
.project-detail-header {
    height: 50vh;
}

.project-detail-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 4rem;
}

.project-description h2 {
    color: var(--accent-gold);
    margin-bottom: 1.5rem;
}

.project-description p {
    color: var(--text-muted);
    margin-bottom: 1rem;
    font-size: 1.05rem;
}

.project-sidebar {
    background: var(--card-bg);
    padding: 2.5rem;
    border-top: 3px solid var(--accent-gold);
    border-radius: 5px;
}

.project-sidebar h3 {
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
}

.project-sidebar ul {
    list-style: none;
}

.project-sidebar ul li {
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.project-sidebar ul li:last-child {
    border-bottom: none;
}

.project-sidebar ul li span {
    display: block;
    color: var(--accent-gold);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 5px;
}

.project-sidebar ul li strong {
    color: var(--text-light);
    font-weight: 500;
}

@media (max-width: 1200px) {
    .grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 992px) {
    .about-content, .contact-wrapper {
        grid-template-columns: 1fr;
    }
    .slide h1 {
        font-size: 3rem;
    }
}

@media (max-width: 768px) {
    nav ul {
        display: none; 
    }
    .slide h1 {
        font-size: 2.5rem;
    }
    .section-title {
        font-size: 2.2rem;
    }
    .grid {
        grid-template-columns: 1fr;
    }
}
