:root {
    --navy: #00043a;
    --gold: #e3a965;
    --white: #ffffff;
    --gray: #a0a0a0;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    background-color: var(--navy);
    color: var(--white);
    font-family: 'Inter', sans-serif;
    overflow-x: hidden;
}

h1, h2 { font-family: 'Playfair Display', serif; }

/* Navigation Bar */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 10%;
    position: fixed;
    width: 100%;
    z-index: 100;
    background: #ffffff; /* Pure White Background */
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1); /* Subtle shadow for depth */
}

/* Logo Image Styling */
.logo img {
    height: 70px; /* Adjust based on your logo shape */
    width: auto;
    display: block;
}

/* Navigation Links - Now Dark for Contrast */
/* Initial State: Transparent */
/* Navigation Bar Container */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 8%;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: background 0.4s ease-in-out, padding 0.4s ease-in-out, box-shadow 0.4s ease-in-out;
    background: #ffffff; /* Initial White State */
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

/* Scrolled State: Transitions background to Navy Blue */
nav.scrolled {
    background: var(--navy);
    padding: 15px 8%;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

/* Logo Image Styling (Fixed - No changes on scroll) */
.logo img {
    height: 70px; 
    width: auto;
    display: block;
}

nav ul {
    display: flex;
    list-style: none;
    align-items: center;
}

nav ul li { margin-left: 30px; }

nav ul li a {
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 1px;
    color: var(--navy); /* Dark text for the initial white nav */
    transition: color 0.3s ease;
}

/* Text turns white when nav background turns navy */
nav.scrolled ul li a {
    color: #ffffff; 
}

nav ul li a:hover { color: var(--blue-accent); }

/* The Execute Button */
.cta-nav {
    border: 1.5px solid var(--navy);
    padding: 10px 22px;
    border-radius: 4px;
    text-transform: uppercase;
    font-size: 0.85rem;
    color: var(--navy) !important;
    transition: 0.3s;
}

nav.scrolled .cta-nav {
    border-color: #ffffff;
    background: #ffffff;
    color: var(--navy) !important;
}

/* The Execute Button Styling */

.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    padding: 0 10%;
    position: relative;
    padding-top: 80px; /* Offset for the white header */
    position: relative;
    clip-path: polygon(0 0, 100% 0, 100% 90%, 0 100%);
    margin-bottom: -50px; /* Pulls the next section up to meet the slant */
    background: radial-gradient(circle at 70% 50%, #000860 0%, #000435 100%);
    overflow: hidden;
}

.hero-content { z-index: 2; }
.hero h1 { font-size: 4rem; line-height: 1.1; margin-bottom: 20px; }
.hero h1 span { color: var(--gold); }
/* Fix for the Hero Visual Container */
.hero-visual {
    position: absolute; 
    right: 10%; /* Positions it on the right side */
    top: 50%;
    transform: translateY(-50%);
    width: 40%; /* Gives it a definite area */
    height: 400px;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10; /* Above the canvas */
}

/* Force Visibility on the Semicolon */
.floating-semicolon {
    display: block !important;
    font-size: 18rem !important; /* Large enough to see */
    color: #e3a965 !important; /* Using your --gold variable directly */
    font-family: 'Playfair Display', serif;
    position: relative;
    z-index: 20; 
    text-shadow: 0 0 50px rgba(227, 169, 101, 0.6); /* Stronger glow */
    animation: float 6s ease-in-out infinite;
    opacity: 1 !important;
}

/* Ensure Canvas stays in the background */
#particleCanvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1; /* Below semicolon */
    pointer-events: none;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

.bg-semicolon {
    position: absolute;
    right: 5%;
    font-size: 40rem;
    color: rgba(212, 175, 55, 0.03);
    font-family: serif;
    user-select: none;
}

.btn-main {
    display: inline-block;
    padding: 15px 40px;
    background: var(--gold);
    color: var(--navy);
    text-decoration: none;
    font-weight: bold;
    margin-top: 30px;
    border-radius: 2px;
    transition: 0.4s;
}

.success-msg {
    background: #0070FF; /* That Electric Blue highlight */
    color: white;
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 4px;
    font-weight: 600;
    animation: fadeIn 0.5s ease;
}

.error-msg {
    background: #ff4d4d;
    color: white;
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 4px;
}

.btn-main:hover { transform: translateY(-5px); box-shadow: 0 10px 20px rgba(0,0,0,0.3); }

/*about section*/
.about-section {
    background-color: #ffffff; /* Keeping the white background you requested */
    padding: 120px 10%;
    color: #000435;
}

.about-container {
    display: flex;
    align-items: center;
    gap: 80px;
}

.about-visual {
    flex: 1;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* The Large decorative semicolon behind the text */
.semicolon-large {
    font-size: 25rem;
    font-family: serif;
    color: rgba(0, 112, 255, 0.05); /* Very light blue highlight */
    position: absolute;
    z-index: 1;
}

.experience-badge {
    background: #000435;
    color: white;
    padding: 40px;
    border-radius: 4px;
    z-index: 2;
    box-shadow: 20px 20px 60px rgba(0, 4, 53, 0.2);
}

.experience-badge .number {
    font-size: 3rem;
    font-weight: 800;
    color: #0070FF; /* Electric Blue highlight */
    display: block;
}

.experience-badge .text {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    line-height: 1.4;
}

.about-content {
    flex: 1;
}

.about-content span {
    color: #0070FF;
    text-transform: uppercase;
    letter-spacing: 3px;
    font-weight: 700;
    font-size: 0.8rem;
}

.about-content h2 {
    font-size: 3rem;
    margin: 15px 0 25px;
    font-family: 'Playfair Display', serif;
}

.about-content .lead {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 20px;
    color: #000435;
}

.about-content p {
    color: #555;
    line-height: 1.8;
    margin-bottom: 20px;
}

.about-stats {
    display: flex;
    gap: 40px;
    margin-top: 40px;
    border-top: 1px solid #eee;
    padding-top: 30px;
}

.stat-item h4 {
    color: #000435;
    margin-bottom: 5px;
    font-size: 1.1rem;
}

.stat-item p {
    font-size: 0.85rem;
    color: #0070FF;
    font-weight: 600;
}

/* Responsive for Mobile */
@media (max-width: 992px) {
    .about-container { flex-direction: column; text-align: center; }
    .about-stats { justify-content: center; }
    .semicolon-large { font-size: 15rem; }
}

/* Animations */
.reveal { animation: fadeInUp 1.5s ease forwards; }
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

.contact { padding: 100px 10%; background: #00064d; }
.contact-container { max-width: 600px; margin: 0 auto; text-align: center; }
form { margin-top: 40px; display: flex; flex-direction: column; }
input, textarea {
    background: transparent;
    border: 1px solid var(--gray);
    padding: 15px;
    margin-bottom: 20px;
    color: white;
}

.services-section {
    background-color: #ffffff; /* Pure White Background */
    padding: 100px 10%;
    color: #000435;
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title span {
    color: #0070FF; /* Bright Blue Highlight */
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 2px;
    font-size: 0.8rem;
}

.section-title h2 {
    font-size: 2.5rem;
    margin-top: 10px;
    color: #000435;
}

.services-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service-card {
    background: #f9f9f9;
    padding: 50px 40px;
    border: 1px solid #eee;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    position: relative;
    overflow: hidden;
}

.card-icon {
    font-size: 3rem;
    font-weight: 800;
    color: rgba(0, 112, 255, 0.1); /* Faded Blue Number */
    margin-bottom: 20px;
    transition: 0.4s;
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.service-card p {
    color: #555;
    line-height: 1.6;
}

/* The Blue Highlight Line */
.highlight-line {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 4px;
    background: #0070FF; /* Electric Blue highlight */
    transition: 0.4s;
}

/* Hover Effects */
.service-card:hover {
    transform: translateY(-10px);
    background: #ffffff;
    box-shadow: 0 20px 40px rgba(0, 112, 255, 0.1);
    border-color: #0070FF;
}

.service-card:hover .highlight-line {
    width: 100%;
}

.service-card:hover .card-icon {
    color: #0070FF;
    transform: scale(1.1);
}


/* --- PROCESS FLIP CARDS --- */
.process-section {
    background-color: #ffffff;
    padding: 100px 10%;
}

.process-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.flip-card {
    background-color: transparent;
    width: 100%;
    height: 300px;
    perspective: 1000px; /* Essential for 3D effect */
}

.flip-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    transform-style: preserve-3d;
}

.flip-card:hover .flip-card-inner {
    transform: rotateY(180deg);
}

.flip-card-front, .flip-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden; /* Safari */
    backface-visibility: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 30px;
    border-radius: 4px;
    box-shadow: 0 10px 30px rgba(0, 4, 53, 0.05);
    border: 1px solid #eee;
}

/* Front Side Styling */
.flip-card-front {
    background-color: #ffffff;
    color: var(--navy);
}

.flip-card-front h3 {
    font-size: 1.4rem;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.flip-icon {
    margin-top: 20px;
    font-size: 2rem;
    color: var(--blue-accent);
}

/* Back Side Styling */
.flip-card-back {
    background-color: var(--navy);
    color: #ffffff;
    transform: rotateY(180deg);
}

.flip-card-back p {
    font-size: 0.95rem;
    line-height: 1.6;
}

.portfolio-section {
    background-color: #ffffff;
    padding: 80px 10% 120px;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 20px;
}

.portfolio-item {
    position: relative;
    height: 400px;
    overflow: hidden;
    border-radius: 4px; /* Clean, modern edge */
    cursor: pointer;
}

.project-image {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
    background-color: #f0f0f0; /* Placeholder color */
}

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    display: flex;
    align-items: flex-end;
    padding: 40px;
    transition: opacity 0.4s ease;
}
/* Box 1: Electric Blue Overlay */
.portfolio-item:nth-child(2) .project-overlay {
    background: linear-gradient(to top, rgba(0, 112, 255, 0.9), transparent);
}

/* Box 2: Deep Gold/Bronze Overlay (Leo Vibe) */
.portfolio-item:nth-child(1) .project-overlay {
    background: linear-gradient(to top, rgb(101 168 54), transparent);
}

/* Box 3: Royal Purple/Violet Overlay (Premium Architecture Vibe) */
.portfolio-item:nth-child(3) .project-overlay {
    background: linear-gradient(to top, rgb(224 164 53), transparent);
}
.project-info {
    transform: translateY(20px);
    transition: transform 0.4s ease;
}

.project-info h4 {
    color: white;
    font-size: 1.8rem;
    margin-bottom: 10px;
}

.project-info p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    margin-bottom: 20px;
}

.view-project {
    color: white;
    text-decoration: none;
    border: 1px solid white;
    padding: 8px 20px;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Hover States */
.portfolio-item:hover .project-image {
    transform: scale(1.1);
}

.portfolio-item:hover .project-overlay {
    opacity: 1;
}

.portfolio-item:hover .project-info {
    transform: translateY(0);
}

.main-footer {
    background-color: #ffffff;
    padding: 80px 10% 40px;
    border-top: 1px solid #eee;
    color: #000435;
}

.footer-top {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 50px;
    padding-bottom: 60px;
}

.footer-brand p {
    margin-top: 20px;
    color: #666;
    max-width: 300px;
    line-height: 1.6;
}

.footer-links h4, .footer-contact h4 {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 25px;
    color: #0070FF; /* Blue Highlight */
}

.footer-links ul { list-style: none; }
.footer-links ul li { margin-bottom: 12px; }
.footer-links ul li a { text-decoration: none; color: #444; transition: 0.3s; }
.footer-links ul li a:hover { color: #0070FF; padding-left: 5px; }

.footer-bottom {
    border-top: 1px solid #eee;
    padding-top: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    color: #999;
}
.footer-brand img{
    width:50%;
}

.footer-bottom span { color: #000435; font-weight: 600; }

/* Back to Top Button */
#backToTop {
    background: #0070FF;
    color: white;
    border: none;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    cursor: pointer;
    transition: 0.4s;
    box-shadow: 0 5px 15px rgba(0, 112, 255, 0.3);
}

#backToTop:hover {
    transform: translateY(-5px);
    background: #000435;
}

/*devider css*/

.divider-logical {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 10%;
    background-color: #ffffff;
}

.divider-logical .line {
    height: 1px;
    flex-grow: 1;
    background: linear-gradient(90deg, transparent, #eee, transparent);
}

.divider-logical .dot {
    margin: 0 20px;
    font-family: serif;
    font-size: 1.5rem;
    color: #0070FF; /* Electric Blue highlight */
    font-weight: bold;
}