/* ===============================
   GLOBAL THEME & RESET
================================*/
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600;800&family=Inter:wght@400;700&display=swap');

:root {
    --bg-black: #050505;
    --card-black: #111111;
    --gold: #d4af37;
    --gold-glow: rgba(212, 175, 55, 0.3);
    --white: #ffffff;
    --light-text: #b0b0b0;
    --transition: 0.4s ease;
}

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

body {
    background: var(--bg-black);
    color: var(--white);
    font-family: "Poppins", sans-serif;
    overflow-x: hidden;
}

/* ===============================
   NAVBAR
================================*/
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 8%;
    background: rgba(0, 0, 0, 0.95); /* පොඩ්ඩක් තද කළු පාටක් */
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(212, 175, 55, 0.2);
    backdrop-filter: blur(10px);
}

.nav-logo { height: 50px; }

.logo-text {
    font-size: 1.6rem;
    color: var(--gold);
    font-weight: 700;
}

.nav-links { list-style: none; display: flex; gap: 25px; }

.nav-links a {
    text-decoration: none;
    color: var(--white); /* මෙතනට 'var(--white)' හෝ '#ffffff' දෙන්න */
    font-size: 1rem;
    gap: 20px;
    font-weight: 500;
    text-transform: capitalize;
    transition: 0.3s ease;
}

.nav-links a:hover, .nav-links .active { color: var(--gold) !important;}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-text {
    font-size: 1.6rem;
    color: var(--gold);
    font-weight: 800;
    letter-spacing: 1px;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.hamburger span {
    height: 3px;
    width: 28px;
    background: var(--gold);
    margin: 4px 0;
    transition: 0.4s;
}
.hamburger.open span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.open span:nth-child(2) {
    opacity: 0; /* මැද ඉර අයින් කරනවා */
}

.hamburger.open span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* Mobile Navigation Menu */
@media (max-width: 850px) {
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        height: 100vh;
        width: 250px;
        background: rgba(15, 15, 15, 0.98);
        backdrop-filter: blur(8px);
        display: flex;
        flex-direction: column;
        padding-top: 100px;
        padding-left: 30px;
        gap: 25px;
        transition: 0.4s ease;
        border-left: 1px solid rgba(212, 175, 55, 0.2);
    }

    .nav-links.active { right: 0 !important;}
    .hamburger { display: flex; }
    .nav-links li a {
        font-size: 1.2rem;
        color: var(--gold);
    }
}

/* ===============================
   HERO SECTION
================================*/
.project-hero {
    height: 90vh;
    background: url('../images/project.jpg') center/cover no-repeat;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-overlay {
    position: absolute;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0.6), var(--bg-black));
}

.hero-caption {
    z-index: 2;
    text-align: center;
}

.hero-caption h1 {
    font-size: 3.5rem;
    letter-spacing: 5px;
    margin-bottom: 10px;
}

.gold-text { color: var(--gold); }
.white-text { color: var(--white); }

/* ===============================
   PROJECT STATS
================================*/
.container {
    width: 85%;
    max-width: 1200px;
    margin: auto;
}

.project-stats {
    display: flex;
    justify-content: space-around;
    padding: 60px 0;
    background: rgba(212, 175, 55, 0.03);
    border-radius: 20px;
    margin-top: -50px;
    position: relative;
    z-index: 5;
    border: 1px solid rgba(212, 175, 55, 0.1);
    backdrop-filter: blur(10px);
}

.stat-item h2 {
    font-size: 2.8rem;
    color: var(--gold);
    margin-bottom: 5px;
}

.stat-item p {
    color: var(--light-text);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ===============================
   FILTERS
================================*/
.project-filters {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin: 60px auto 40px;
    flex-wrap: wrap;
}

.filter-btn {
    background: transparent;
    border: 1px solid rgba(212, 175, 55, 0.3);
    color: var(--white);
    padding: 10px 28px;
    border-radius: 30px;
    cursor: pointer;
    transition: var(--transition);
    font-family: inherit;
    font-weight: 500;
}

.filter-btn:hover, .filter-btn.active {
    background: var(--gold);
    color: #000;
    border-color: var(--gold);
    box-shadow: 0 0 15px var(--gold-glow);
}

/* ===============================
   DETAILED PROJECTS (SPLIT LAYOUT)
================================*/
.detailed-projects {
    padding: 80px 0;
}

.project-item {
    display: flex;
    align-items: center;
    gap: 60px;
    margin-bottom: 120px;
}

/* මාරුවෙන් මාරුවට පින්තූරය දකුණු පැත්තට ගැනීමට */
.project-item.alt {
    flex-direction: row-reverse; 
}

/* Image Side */
.project-media {
    flex: 1;
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid rgba(212, 175, 55, 0.2);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.project-media img {
    width: 100%;
    display: block;
    transition: var(--transition);
}

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

/* Content Side */
.project-content {
    flex: 1;
}

.project-category {
    color: var(--gold);
    text-transform: uppercase;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 2px;
    display: block;
    margin-bottom: 10px;
}

.project-content h3 {
    font-size: 2.5rem;
    color: #fff;
    margin-bottom: 20px;
}

.project-desc {
    color: var(--light-text);
    line-height: 1.8;
    margin-bottom: 25px;
    font-size: 1.05rem;
}

/* Feature List Style */
.feature-list {
    list-style: none;
    margin-bottom: 30px;
}

.feature-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #eee;
    margin-bottom: 12px;
    font-size: 0.95rem;
}

.feature-list i {
    color: var(--gold);
}

/* Tech Stack Tags */
.tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 35px;
}

.tech-stack span {
    background: rgba(212, 175, 55, 0.1);
    color: var(--gold);
    padding: 6px 15px;
    border-radius: 5px;
    font-size: 0.8rem;
    font-weight: 600;
    border: 1px solid rgba(212, 175, 55, 0.2);
}

/* filtering animation (ඔයා අර කලින් ඇහුව filtering එක ඕනේ නම් මේකත් දාන්න) */
.project-item.hide {
    display: none;
}
.project-item.show {
    display: flex;
    animation: fadeIn 0.6s ease forwards;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ===============================
   RESPONSIVE (FOR DETAILED PROJECTS)
================================*/
@media (max-width: 992px) {
    .project-item, .project-item.alt {
        flex-direction: column;
        text-align: center;
        gap: 30px;
    }
    
    .tech-stack, .feature-list li {
        justify-content: center;
    }

    .project-content h3 {
        font-size: 2rem;
    }
}
/* ===============================
   TESTIMONIALS
================================*/
/* ===============================
   MODERN TESTIMONIAL STYLE
================================*/
.testimonial-section {
    padding: 100px 0;
    position: relative;
}

.testimonial-card {
    background: linear-gradient(145deg, #111111 0%, #080808 100%);
    padding: 60px 40px;
    border-radius: 40px;
    border: 1px solid rgba(212, 175, 55, 0.15);
    max-width: 800px;
    margin: auto;
    position: relative;
    text-align: center;
    overflow: hidden;
    transition: var(--transition);
}

/* Hover කරද්දී එන Glow එක */
.testimonial-card:hover {
    border-color: var(--gold);
    box-shadow: 0 20px 50px rgba(212, 175, 55, 0.1);
    transform: translateY(-5px);
}

/* Quote Icon එක ලස්සනට පෙන්වීමට */
.quote-wrapper {
    margin-bottom: 30px;
}

.quote-icon {
    font-size: 2.5rem;
    color: var(--gold);
    opacity: 0.5;
}

.testimonial-text {
    font-size: 1.3rem;
    font-style: italic;
    line-height: 1.8;
    color: #e0e0e0;
    margin-bottom: 40px;
    position: relative;
    z-index: 2;
}

/* Client Details Section */
.client-meta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.client-img {
    width: 65px;
    height: 65px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid var(--gold);
    padding: 3px;
}

.client-img img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.client-info {
    text-align: left;
}

.client-info h4 {
    color: var(--gold);
    font-size: 1.2rem;
    margin-bottom: 2px;
}

.client-info span {
    color: var(--light-text);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Background එකට පොඩි Gold Blur එකක් */
.testimonial-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.05) 0%, transparent 70%);
    pointer-events: none;
}

/* ===============================
   CALL TO ACTION (CTA)
================================*/
.cta-section {
    padding: 100px 0;
}

.cta-box {
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.1) 0%, rgba(0,0,0,1) 100%);
    padding: 80px 40px;
    border-radius: 30px;
    text-align: center;
    border: 1px solid rgba(212, 175, 55, 0.2);
}

.cta-box h2 {
    font-size: 2.8rem;
    margin-bottom: 15px;
}

.cta-box p {
    color: var(--light-text);
    margin-bottom: 35px;
}

.cta-btn {
    display: inline-block;
    background: var(--gold);
    color: #000;
    padding: 16px 45px;
    font-weight: 800;
    text-decoration: none;
    border-radius: 50px;
    text-transform: uppercase;
    transition: 0.3s;
    box-shadow: 0 5px 20px rgba(212, 175, 55, 0.3);
}

.cta-btn:hover {
    transform: translateY(-5px);
    background: #fff;
    box-shadow: 0 10px 25px rgba(255, 255, 255, 0.2);
}

/* ===============================
   PREMIUM FOOTER
================================*/
.main-footer {
    background: #0a0a0a !important;
    padding: 80px 0 40px;
    border-top: 1px solid rgba(255, 215, 0, 0.1);
    position: relative;
}

.main-footer::before {
    content: "";
    position: absolute;
    top: 0; left: 50%;
    transform: translateX(-50%);
    width: 90%; height: 2px;
    background: linear-gradient(to right, transparent, var(--gold), transparent);
}

.footer-grid {
    max-width: 1200px;
    margin: auto;
    padding: 0 5%;
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 50px;
}

.footer-col h3 {
    font-size: 1.3rem;
    color: #ffffff !important; /* Headings සේරම සුදු කලා */
    margin-bottom: 25px;
    text-transform: uppercase;
    font-weight: 600;
}


.footer-logo {
    display: flex;
    align-items: center;
    gap: 1px !important; /* 12px වෙනුවට 6px දාලා ලෝගෝ එක සහ නම ළං කළා */
    margin-bottom: 20px;
}

.footer-logo img {
    height: 50px;
    border-radius: 10px;
}
.footer-icon{
    margin-left: -35px !important;
    height: 160px !important; /* සයිස් එක හොඳටම පේන්න 120px වගේ දාලා බලන්න */
    width: auto !important;
    max-height: none !important; /* Bootstrap එකෙන් හිර කරලා තියෙනවා නම් ඒක අයින් කරන්න */
    object-fit: contain;
}

/* ENIX කොටස සඳහා රන්වන් පැහැය (Premium Gold) */
.logo-text .gold-text {
    color: #d4af37 !important;
    font-weight: 800;
}

/* ORA කොටස සඳහා පසුබිමට කැපී පෙනෙන ලස්සන නිල් පැහැය */
.logo-text .blue-text {
    color: #041e41 !important; /* අර තද නිල් වෙනුවට කළු පසුබිමේ කැපිලා පේන Neon Blue එකක් දැම්මා */
    font-weight: 800;
}

.about-desc { color: #ffffff !important; line-height: 1.7; margin-bottom: 25px; opacity: 0.9; }

.social-icons { display: flex; gap: 15px; }
.social-icons a {
    width: 40px; height: 40px;
    border-radius: 50%;
    color: #d4af37 !important;
    border: 1px solid rgba(212, 175, 55, 0.4);
    display: flex; align-items: center; justify-content: center; transition: 0.3s;
}
.social-icons a:hover { background: #d4af37 !important; color: #000 !important; transform: translateY(-5px); }

/* Links List */
.footer-links { list-style: none; padding: 0; }
.footer-links li { margin-bottom: 12px; }
.footer-links a { color: #ffffff !important; text-decoration: none; transition: 0.3s; font-size: 0.95rem; opacity: 0.85; }
.footer-links a:hover { color: #d4af37 !important; opacity: 1; padding-left: 5px; }

/* Contact Details (Gold Section) */
.contact-details { list-style: none; padding: 0; }
.contact-details li { display: flex; align-items: center; gap: 15px; margin-bottom: 15px; color: #d4af37 !important; font-size: 0.95rem; }
.contact-details i { color: #d4af37 !important; font-size: 1.1rem; width: 20px; text-align: center; }
.contact-details a { color: #d4af37 !important; text-decoration: none; transition: 0.3s; }
.contact-details a:hover { color: #ffffff !important; text-shadow: 0 0 10px rgba(212, 175, 55, 0.5); }

.back-to-top {
    position: absolute;
    bottom: 30px; right: 5%; width: 45px; height: 45px;
    background: #d4af37; color: #000; border-radius: 50%;
    display: flex; align-items: center; justify-content: center; transition: 0.3s;
}
.back-to-top:hover { transform: scale(1.1); box-shadow: 0 0 20px #d4af37; }

/* ==========================================================================
   10. GLOBAL RESPONSIVE MEDIA QUERIES (BREAKPOINTS)
   ========================================================================== */
@media screen and (max-width: 992px) {
    /* Navbar Hamburger Trigger */
    .hamburger { display: flex; }
    .nav-links {
        position: fixed; top: 0; right: -100%; height: 100vh; width: 250px;
        background: rgba(12, 12, 14, 0.98); backdrop-filter: blur(8px);
        display: flex; flex-direction: column; padding-top: 100px; padding-left: 30px; gap: 25px;
        transition: 0.4s ease; border-left: 1px solid rgba(0, 86, 179, 0.2);
    }
    .nav-links.active { right: 0 !important; }

    /* Hero Text Adjustments */
    .hero-caption h1 { font-size: 2.8rem; }
    .hero-caption p { font-size: 1rem; }

    /* Sections Layouts */
    .choose-wrapper { flex-direction: column; gap: 30px; }
    .choose-image img { height: 280px; }

    /* FIXED TWO-COLUMN MOBILE FOOTER (INDEX COPY) */
    .footer-grid {
        grid-template-columns: 1fr 1.2fr !important; 
        gap: 40px 20px;
        text-align: left;
    }
    .footer-grid .footer-col:first-child { grid-column: span 2; margin-bottom: 10px; }
    .footer-logo, .social-icons, .contact-details li { justify-content: flex-start !important; }
    .footer-col h3 { text-align: left !important; font-size: 1.1rem; margin-bottom: 15px; }
    .footer-links a { display: block; padding-left: 0; }
    .contact-details li { font-size: 0.85rem; gap: 10px; }
}

@media screen and (max-width: 600px) {
    .about-hero { height: 75vh; }
    .hero-caption h1 { font-size: 2.2rem; }
    .our-story-container h2, .our-focus .section-header h2, .why-choose-us .section-header h2 { font-size: 2rem; }
    .about-main, .our-focus, .why-choose-us { padding: 60px 5%; }
    
    /* 50% / 50% split for small phones */
    .footer-grid {
        grid-template-columns: 1fr 1.1fr !important;
        gap: 30px 10px;
        padding: 0 4%;
    }
    .about-desc, .footer-links a { font-size: 0.85rem; }
    .back-to-top { bottom: 20px; right: 4%; width: 40px; height: 40px; }
}
.logo-text .gold-text {
    color: #e9be31 !important;
    font-weight: 900; /* අකුරු හොඳින් කැපිලා පේන්න */
}

/* ORA කොටස සඳහා නිල් පැහැය (Neon Electric Blue) */
.logo-text .blue-text {
    color: #041e41 !important;
    font-weight: 800;
}
/* ============================================
   EXTRA RESPONSIVE FIXES 
   ============================================ */

/* ===== 768px ===== */
@media (max-width: 768px) {

    /* Project Stats */
    .project-stats {
        flex-direction: column;
        gap: 25px;
        padding: 40px 20px;
        text-align: center;
    }
    .stat-item h2 { font-size: 2rem; }

    /* Detailed Projects */
    .project-item { gap: 30px; }
    .project-content h3 { font-size: 1.8rem; }
    .project-desc { font-size: 0.95rem; }

    .tech-stack span {
        font-size: 0.75rem;
        padding: 5px 10px;
    }

    /* CTA */
    .cta-box { padding: 60px 25px; }
    .cta-box h2 { font-size: 2.2rem; }
}

/* ===== 600px ===== */
@media (max-width: 600px) {

    /* Hero */
    .hero-caption h1 { font-size: 2rem !important; }

    /* Project Stats */
    .stat-item h2 { font-size: 1.7rem; }

    /* Projects */
    .project-item { padding: 0 10px; }
    .project-media { border-radius: 15px; }

    /* Feature List */
    .feature-list li {
        font-size: 0.85rem;
        gap: 8px;
    }

    /* Testimonials */
    .testimonial-card {
        padding: 40px 25px;
        border-radius: 25px;
    }
    .testimonial-text { font-size: 1rem; }
    .client-info h4 { font-size: 1rem; }

    /* CTA */
    .cta-box h2 { font-size: 1.8rem; }
    .cta-btn { padding: 14px 35px; font-size: 0.9rem; }
}

/* ===== 480px (Small Phones) ===== */
@media (max-width: 480px) {

    /* Navbar */
    .nav-links a { font-size: 1.1rem; }
    .nav-links { width: 220px; }

    /* Project Stats */
    .project-stats { padding: 30px 10px; }

    /* Detailed Project Titles */
    .project-content h3 { font-size: 1.6rem; }
    .project-desc { font-size: 0.9rem; }

    /* Tech Tags */
    .tech-stack span {
        font-size: 0.7rem;
        padding: 4px 8px;
    }

    /* Testimonials */
    .testimonial-text {
        font-size: 0.95rem;
        line-height: 1.6;
    }

    /* CTA Section */
    .cta-box { padding: 45px 20px; }
    .cta-box h2 { font-size: 1.6rem; }
    .cta-btn {
        padding: 12px 30px;
        font-size: 0.85rem;
    }
}

/* ===== 375px (iPhone 11 / 12 / 13 / XR) ===== */
@media (max-width: 375px) {
    .hero-caption h1 { font-size: 1.8rem; }
    .cta-box h2 { font-size: 1.4rem; }
}