/* --- VARIABLES & RESET --- */
:root {
    --bg-color: #050505;
    --surface-color: #0f0f0f;
    --surface-hover: #1a1a1a;
    --text-main: #ffffff;
    --text-muted: #a1a1a1;
    /* --gold-primary: #D4AF37; */
    --gold-primary: #2563eb;
    /* --gold-gradient: linear-gradient(135deg, #F3E5AB 0%, #D4AF37 50%, #AA8C2C 100%); */
    --gold-gradient:  linear-gradient(90deg,
            #2563eb,
            #7c3aed);
    --gold-glow:  linear-gradient(90deg,
            #2563eb,
            #7c3aed);
    --border-color: rgba(255, 255, 255, 0.1);
    --glass-bg: rgba(10, 10, 10, 0.7);
    --font-main: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --transition-speed: 0.4s;
    --container-width: 1200px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    overflow-x: hidden;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-color);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

/* --- UTILITIES --- */
.container {
    width: 90%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 1rem;
}

.text-gradient {
    background: var(--gold-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
}

.btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    font-size: 1rem;
    font-weight: 500;
    letter-spacing: 0.5px;
    border-radius: 50px;
    cursor: pointer;
    transition: all var(--transition-speed) cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
    border: 1px solid transparent;
}

.btn-primary {
    background: var(--text-main);
    color: var(--bg-color);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px -5px var(--gold-glow);
    background: #f0f0f0;
}

.btn-gold {
    background: var(--gold-gradient);
    color: #ffffff;
}

.btn-gold:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 25px var(--gold-glow);
}

.section-padding {
    padding: 7rem 0;
}

.section-header {
    margin-bottom: 4rem;
    text-align: center;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.section-header p {
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
    font-size: 1.1rem;
}

/* --- ANIMATIONS --- */
/* .reveal {
            opacity: 0;
            transform: translateY(30px);
            transition: all 0.8s ease-out;
        }

        .reveal.active {
            opacity: 1;
            transform: translateY(0);
        } */

/* --- NAVIGATION --- */

/* --- SERVICES GRID --- */
#services {
    background-color: var(--bg-color);
    position: relative;
}

/* Subtle background glow */
#services::before {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.08) 0%, rgba(0, 0, 0, 0) 70%);
    top: 10%;
    left: 50%;
    transform: translateX(-50%);
    z-index: 0;
    pointer-events: none;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    position: relative;
    z-index: 1;
}

.service-card {
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    padding: 2.5rem;
    border-radius: 16px;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
}

.service-card:hover {
    transform: translateY(-8px);
    border-color: #7c3aed;
    box-shadow:
        0 10px 35px rgba(37, 99, 235, 0.25);
}

.service-icon {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    color: var(--gold-primary);
    transition: background 0.3s ease;
}

.service-card:hover .service-icon {

    color: #ffffff;
    background:
        linear-gradient(90deg,
            #2563eb,
            #7c3aed);
    box-shadow:
        0 10px 35px rgba(37, 99, 235, 0.25);
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 0.8rem;
    font-weight: 600;
}

.service-card p {
    color: var(--text-muted);
    font-size: 14px;
}

/* ============================================
   PORTFOLIO SECTION STYLES
   ============================================ */

:root {
    --portfolio-bg: #050505;
    --portfolio-card-bg: #0f0f0f;
    --portfolio-border: rgba(255, 255, 255, 0.1);
    --portfolio-text: #e8e8e8;
    --portfolio-accent: #7c3aed;
    --portfolio-accent-light: #e8c858;
    --portfolio-hover: #2563eb;
    --portfolio-shadow: 0 15px 45px rgba(37, 99, 235, 0.4);
    --portfolio-shadow-light: 0 15px 45px rgba(37, 99, 235, 0.4);
}

.portfolio-section {
    background: var(--bg-color);
    padding: 50px 20px;
    position: relative;
    overflow: hidden;
}

#portfolio::before {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.08) 0%, rgba(0, 0, 0, 0) 70%);
    top: 10%;
    left: 50%;
    transform: translateX(-50%);
    z-index: 0;
    pointer-events: none;
}

.portfolio-container {
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

/* Header */
.portfolio-header {
    text-align: center;
    margin-bottom: 60px;
    animation: fadeUpPortfolio 0.8s ease-out;
}

.portfolio-title {
    font-size: 2.2rem;
    font-weight: 600;
    color: var(--portfolio-text);
    margin: 0 0 15px 0;
    letter-spacing: 2px;
}

/* Filter Tabs */
.portfolio-filters {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 70px;
    flex-wrap: wrap;
    animation: fadeUpPortfolio 0.8s ease-out 0.1s both;
}

.filter-btn {
    padding: 12px 28px;
    background: rgba(26, 40, 71, 0.5);
    border: 1px solid var(--portfolio-border);
    color: var(--portfolio-text);
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.23, 1, 0.320, 1);
    backdrop-filter: blur(10px);
    position: relative;
}

.filter-btn:hover {
    border-color: var(--portfolio-accent);
    color: var(--portfolio-text);
    transform: translateY(-2px);
    box-shadow: 0 10px 35px rgba(37, 99, 235, 0.25);
}

.filter-btn.active {
   color: #ffffff;
    background:
        linear-gradient(90deg,
            #2563eb,
            #7c3aed);
    box-shadow:
        0 10px 35px rgba(37, 99, 235, 0.25);
    border-color: var(--portfolio-accent);
}

/* Portfolio Grid */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 35px;
    animation: fadeUpPortfolio 0.8s ease-out 0.2s both;
}

.portfolio-card {
    border-radius: 16px;
    overflow: hidden;
    background: var(--portfolio-card-bg);
    border: 1px solid var(--portfolio-border);
    transition: all 0.4s cubic-bezier(0.23, 1, 0.320, 1);
    display: flex;
    flex-direction: column;
    height: 100%;
    box-shadow: var(--portfolio-shadow-light);
    opacity: 1;
    visibility: visible;
}

.portfolio-card.hidden {
    display: none;
    opacity: 0;
    visibility: hidden;
}

.portfolio-card:hover {
    border-color: var(--portfolio-accent);
    /* box-shadow: 0 25px 70px rgba(212, 175, 55, 0.2); */
    transform: translateY(-12px);
}

/* Card Image */
.card-image {
    position: relative;
    overflow: hidden;
    width: 100%;
    height: 250px;
    background: linear-gradient(135deg, #1a2847 0%, #11152d 100%);
}

.card-image svg {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.23, 1, 0.320, 1);
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.23, 1, 0.320, 1);
}

.portfolio-card:hover .card-image svg,
.portfolio-card:hover .card-image img {
    transform: scale(1.1);
}

.card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(10, 14, 39, 0.85);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.4s ease;
    padding: 20px;
}

.portfolio-card:hover .card-overlay {
    opacity: .6;
}

.portfolio-card:hover .view-btn {
    transform: scale(1);
    box-shadow: 0 15px 40px rgba(212, 175, 55, 0.4);
}

.view-btn:active {
    transform: scale(0.95);
}

/* Card Content */
.card-content {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.card-badge {
    display: inline-block;
    padding: 6px 14px;
    background: rgba(37, 99, 235, 0.25);
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: 700;
    border-radius: 20px;
    margin-bottom: 12px;
    width: fit-content;
    letter-spacing: 0.5px;
    border: 1px solid #2563eb;
}

.card-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--portfolio-text);
    margin: 0 0 10px 0;
    letter-spacing: -0.5px;
}

.card-description {
    font-size: 0.9rem;
    color: rgba(232, 232, 232, 0.65);
    margin: 0;
    line-height: 1.6;
    flex-grow: 1;
}

/* Animations */
@keyframes fadeUpPortfolio {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Card Entry Animation */
.portfolio-card {
    animation: fadeUpPortfolio 0.6s ease-out backwards;
}

.portfolio-card:nth-child(1) {
    animation-delay: 0.3s;
}

.portfolio-card:nth-child(2) {
    animation-delay: 0.35s;
}

.portfolio-card:nth-child(3) {
    animation-delay: 0.4s;
}

.portfolio-card:nth-child(4) {
    animation-delay: 0.45s;
}

.portfolio-card:nth-child(5) {
    animation-delay: 0.5s;
}

.portfolio-card:nth-child(6) {
    animation-delay: 0.55s;
}

.portfolio-card:nth-child(7) {
    animation-delay: 0.6s;
}

.portfolio-card:nth-child(8) {
    animation-delay: 0.65s;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .portfolio-section {
        padding: 80px 20px;
    }

    .portfolio-title {
        font-size: 2rem;
    }

    .portfolio-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
}

@media (max-width: 768px) {
    .portfolio-section {
        padding: 60px 15px;
    }

    .portfolio-header {
        margin-bottom: 50px;
    }

    .portfolio-title {
        font-size: 1.75rem;
    }

    .portfolio-subtitle {
        font-size: 1rem;
    }

    .portfolio-filters {
        gap: 12px;
        margin-bottom: 50px;
    }

    .filter-btn {
        padding: 10px 20px;
        font-size: 0.85rem;
    }

    .portfolio-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }

    .card-content {
        padding: 20px;
    }

    .card-title {
        font-size: 1.1rem;
    }
}

/* --- ABOUT US --- */
#about {
    background: linear-gradient(180deg, var(--bg-color) 0%, #0c0c0c 100%);
}

.about-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-text h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.about-text p {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    font-size: 1.05rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-top: 2rem;
}

.stat-item h4 {
    font-size: 2.5rem;
    color: var(--gold-primary);
    font-weight: 700;
    margin-bottom: 0.2rem;
}

.stat-item span {
    font-size: 0.9rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.about-visual {
    position: relative;
    height: 500px;
    background: var(--surface-color);
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.about-visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.8;
}

/* --- WHY CHOOSE US --- */
#why-us {
    background-color: var(--bg-color);
}

.features-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.feature-box {
    text-align: center;
    padding: 2rem;
}

.feature-icon-lg {
    font-size: 2rem;
    color: var(--gold-primary);
    margin-bottom: 1.5rem;
    opacity: 0.9;
}

.feature-box h3 {
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

.feature-box p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* --- TESTIMONIALS --- */
#testimonials {
    background: #080808;
}

.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.testimonial-card {
    background: var(--surface-color);
    padding: 2.5rem;
    border-radius: 16px;
    border: 1px solid var(--border-color);
    position: relative;
}

.quote-icon {
    font-size: 2rem;
    color: rgba(212, 175, 55, 0.2);
    position: absolute;
    top: 2rem;
    right: 2rem;
}

.testimonial-text {
    font-size: 1.1rem;
    font-style: italic;
    color: #d1d1d1;
    margin-bottom: 1.5rem;
}

.client-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.client-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--gold-primary);
}

.client-details h5 {
    font-size: 1rem;
    font-weight: 600;
}

.client-details span {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/*Contact Us Section*/
.contact-section {
    font-family: 'Segoe UI', sans-serif;
    padding-top: 60px;
    padding-bottom: 30px;
}

.contact-section {
    background: #0b0b0b;
}

.contact-container {
    display: flex;
}

/* LEFT IMAGE */
.contact-image-col .contact-image {
    background-image: url("images/contact1.png");
    background-repeat: no-repeat;
    background-size: cover;
    width: 100%;
    height: 100%;
}

/* RIGHT FORM */
.col-md-6 .contact-form {
    background: #0f0f0f;
    padding: 50px;
    margin: 20px;
    border-radius: 15px;
}

.contact-form h3 {
    margin-bottom: 25px;
    font-size: 30px;
}

.input-group {
    position: relative;
    margin-bottom: 35px;
}

.input-group input,
.input-group textarea {
    width: 100%;
    padding: 12px 5px;
    background: transparent;
    border: none;
    border-bottom: 1px solid #333;
    color: white;
    font-size: 16px;
    outline: none;
    transition: 0.4s ease;
}

/* Remove any default background on autofill */
input:-webkit-autofill,
textarea:-webkit-autofill {
    -webkit-box-shadow: 0 0 0 1000px #0f0f0f inset !important;
    -webkit-text-fill-color: white !important;
}

/* Label Style */
.input-group label {
    position: absolute;
    left: 5px;
    top: 12px;
    color: #777;
    pointer-events: none;
    transition: 0.3s ease;
}

/* Floating Effect */
.input-group input:focus~label,
.input-group input:valid~label,
.input-group textarea:focus~label,
.input-group textarea:valid~label {
    top: -12px;
    font-size: 13px;
    color: #7c3aed;
}

/* Gold bottom glow */
.input-group input:focus,
.input-group textarea:focus {
    border-bottom: 1px solid #7c3aed;
    box-shadow: 0 10px 35px rgba(37, 99, 235, 0.25);
}

.contact-button {
    display: inline-block;
    width: 100%;
    padding: 14px 38px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 50px;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.4s ease;
}

.contact-button {
    background: linear-gradient(90deg,
            #2563eb,
            #7c3aed);
    color: #ffffff;
    box-shadow: 0 10px 35px rgba(37, 99, 235, 0.25);
}

/* Hover Effect */
.contact-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 35px rgba(37, 99, 235, 0.8);
}

/* Click Effect */
.contact-button:active {
    transform: scale(0.97);
    box-shadow: 0 0 15px rgba(37, 99, 235, 0.6);
}

/* Responsive */
@media(max-width:768px) {
    .contact-container {
        flex-direction: column;
    }
}

/* --- CTA SECTION --- */
#contact {
    position: relative;
    padding: 10rem 0;
    text-align: center;
    overflow: hidden;
    background: radial-gradient(circle at center, rgba(20, 20, 20, 1) 0%, var(--bg-color) 70%);
}

/* Ambient Glow Behind CTA */
#contact::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 300px;
    background: var(--gold-primary);
    filter: blur(150px);
    opacity: 0.15;
    z-index: 0;
}

.cta-content {
    position: relative;
    z-index: 1;
}

.cta-headline {
    font-size: clamp(2rem, 5vw, 3.5rem);
    margin-bottom: 2rem;
    font-weight: 700;
}

/* --- FOOTER --- */
footer {
    background: var(--surface-color);
    border-top: 1px solid var(--border-color);
    padding: 4rem 0 1rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-brand p {
    color: var(--text-muted);
    margin-top: 1rem;
    max-width: 300px;
    font-size: 0.9rem;
}

.footer-col h4 {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    color: var(--text-main);
}

.footer-grid .footer-col ul {
    padding: 0px;
}

.footer-col ul li {
    margin-bottom: 0.8rem;
}

.footer-col ul li a {
    color: var(--text-muted);
    font-size: 0.8rem;
}

.footer-col ul li a:hover {
    color: var(--gold-primary);
}

.footer-bottom {
    border-top: 1px solid var(--border-color);
    padding-top: 2rem;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* --- RESPONSIVE --- */
@media (max-width: 992px) {
    .about-wrapper {
        grid-template-columns: 1fr;
    }

    .about-visual {
        height: 350px;
        order: -1;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--surface-color);
        flex-direction: column;
        padding: 2rem;
        gap: 1.5rem;
        border-bottom: 1px solid var(--border-color);
    }

    .nav-links.active {
        display: flex;
    }

    .mobile-toggle {
        display: block;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-brand p {
        margin: 1rem auto;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
    }
}