/* Base Setup */
:root {
    --bg-dark: #0f1115;
    --bg-darker: #050505;
    --text-light: #f0f0f0;
    --text-muted: #a0a0a0;

    --accent-glow: rgba(133, 85, 42, 0.4);
    /* Bronze Glow */
    --primary-glow: rgba(61, 72, 82, 0.4);
    /* Dark Blue Glow */

    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.05);
    --glass-blur: 20px;

    --color-success: #4CAF50;
    --color-glow-green: rgba(76, 175, 80, 0.6);
}

html {
    scroll-behavior: smooth;
}

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

body {
    font-family: var(--font-body);
    background-color: var(--bg-dark);
    color: var(--text-light);
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    color: #fff;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

/* Utilities */
.text-gradient {
    background: linear-gradient(135deg, #fff 0%, var(--color-link) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.glass-card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    /* Highlight top border */
    border-radius: 20px;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
}

/* Shine effect on hover */
.glass-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg,
            transparent,
            rgba(255, 255, 255, 0.05),
            transparent);
    transition: 0.5s;
}

.glass-card:hover::before {
    left: 100%;
}

.section-title {
    font-size: 3rem;
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
    display: inline-block;
    width: 100%;
}

/* Header */
.main-header {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 1200px;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    border-radius: 50px;
    /* Pill shape header */
}

.logo img {
    height: 90px;
    border-radius: 10px;
    /* Increased size and reduced radius for better visibility */
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
}

.main-nav ul {
    list-style: none;
    display: flex;
    gap: 2rem;
    align-items: center;
}

.main-nav a {
    font-size: 0.95rem;
    font-weight: 600;
}

.main-nav a:hover {
    color: var(--color-success);
    text-shadow: 0 0 8px var(--color-glow-green);
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
}

/* Buttons */
.btn-primary {
    background: linear-gradient(135deg, var(--color-accent) 0%, rgb(100, 60, 20) 100%);
    color: #fff;
    padding: 0.8rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    position: relative;
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.3s ease, border-color 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    border: 2px solid transparent;
    /* Prevent layout shift */
}

.btn-primary.glow-effect {
    box-shadow: 0 0 20px var(--accent-glow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 20px var(--color-glow-green);
    border-color: var(--color-success);
    color: #fff !important;
    /* Ensure text visible */
}

.btn-primary .icon {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 1.2rem;
}

.btn-secondary {
    background: transparent;
    border: 2px solid var(--glass-border);
    color: var(--text-light);
    padding: 0.8rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    margin-left: 1rem;
    transition: transform 0.2s, box-shadow 0.3s ease, border-color 0.3s ease;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.05);
    transform: translateY(-2px);
    box-shadow: 0 0 20px var(--color-glow-green);
    border-color: var(--color-success);
    color: #fff !important;
}

/* Hero Section */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    padding: 0 2rem;
    overflow: hidden;
    background: radial-gradient(circle at 50% 50%, #1a1d24 0%, var(--bg-dark) 100%);
}

.hero-content {
    max-width: 900px;
    z-index: 10;
    position: relative;
}

.hero-content h1 {
    font-size: 5rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    letter-spacing: -2px;
    font-weight: 700;
}

.hero-content p {
    font-size: 1.5rem;
    color: var(--text-muted);
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    overflow: hidden;
}

.glow-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.5;
    animation: float 10s infinite ease-in-out;
}

.orb-1 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--color-primary) 0%, transparent 70%);
    top: -200px;
    left: -100px;
    animation-delay: 0s;
}

.orb-2 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, var(--color-accent) 0%, transparent 70%);
    bottom: -100px;
    right: -100px;
    animation-delay: -5s;
}

.orb-3 {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, #4a90e2 0%, transparent 70%);
    /* Subtle blue accent from logo */
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0.2;
    animation-duration: 15s;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0) scale(1);
    }

    50% {
        transform: translateY(-20px) scale(1.05);
    }
}

/* Services Section */
.services-section {
    padding: 8rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.service-card {
    padding: 3rem 2rem;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.05);
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.03) 0%, rgba(255, 255, 255, 0.01) 100%);
}

.service-card:hover {
    transform: translateY(-10px) scale(1.02);
    border-color: var(--color-accent);
    /* Bronze glow on hover */
    box-shadow: 0 10px 40px -10px rgba(133, 85, 42, 0.3);
}

.service-card .icon {
    font-size: 3.5rem;
    margin-bottom: 2rem;
    display: inline-block;
    filter: drop-shadow(0 0 15px rgba(255, 255, 255, 0.3));
    transition: transform 0.3s ease;
}

.service-card:hover .icon {
    transform: scale(1.1) rotate(5deg);
}

.service-card h3 {
    margin-bottom: 1rem;
    font-size: 1.75rem;
    font-weight: 600;
    color: #fff;
}

.service-card p {
    color: var(--text-muted);
    font-size: 1.05rem;
}

/* About Section */
.about-section {
    padding: 8rem 2rem;
    display: flex;
    justify-content: center;
    position: relative;
}

/* Subtle background accent for About */
.about-section::before {
    content: '';
    position: absolute;
    width: 60%;
    height: 60%;
    background: radial-gradient(circle, rgba(61, 72, 82, 0.15) 0%, transparent 70%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: -1;
}

.about-content {
    max-width: 900px;
    padding: 5rem;
    text-align: center;
    border: 1px solid rgba(133, 85, 42, 0.3);
    /* Bronze accent border */
    position: relative;
    background: rgba(5, 5, 5, 0.6);
    /* Slightly darker backing */
}

.about-content h2 {
    font-size: 3rem;
    margin-bottom: 2rem;
    background: linear-gradient(to right, #fff, var(--text-muted));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.about-content p {
    font-size: 1.2rem;
    line-height: 1.8;
    color: var(--text-light);
}

/* Portfolio Section */
.portfolio-section {
    padding: 8rem 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
    gap: 2rem;
}

.portfolio-item {
    border-radius: 20px;
    overflow: hidden;
    height: 350px;
    position: relative;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.3s ease;
}

.portfolio-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.portfolio-item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7) 0%, transparent 100%);
    opacity: 0.6;
    transition: opacity 0.3s ease;
}

.portfolio-item:hover {
    border-color: var(--color-success);
    box-shadow: 0 0 20px var(--color-glow-green);
    transform: translateY(-5px);
}

.portfolio-item:hover img {
    transform: scale(1.1);
}

.portfolio-item:hover::after {
    opacity: 0.3;
}

/* Contact Section */
.contact-section {
    padding: 6rem 2rem 10rem;
    text-align: center;
}

.contact-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 4rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.03) 0%, rgba(255, 255, 255, 0) 100%);
}

.contact-actions {
    margin-top: 2rem;
    margin-bottom: 2rem;
}

.contact-details {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin: 3rem 0;
    flex-wrap: wrap;
}

.contact-link {
    font-size: 1.3rem;
    color: var(--color-accent);
    font-weight: 600;
    padding: 1rem 2rem;
    border: 1px solid rgba(133, 85, 42, 0.3);
    border-radius: 50px;
    background: rgba(133, 85, 42, 0.05);
    transition: all 0.3s ease;
}

.contact-link:hover {
    background: rgba(46, 204, 113, 0.1);
    border-color: var(--color-success);
    box-shadow: 0 0 20px var(--color-glow-green);
    transform: translateY(-2px);
}

.address,
.po-box {
    color: var(--text-muted);
    font-size: 1rem;
    opacity: 0.8;
}

/* Footer */
.main-footer {
    text-align: center;
    padding: 1.5rem 1rem;
    color: var(--text-muted);
    border-top: 1px solid var(--glass-border);
    font-size: 0.9rem;
    background: black;
    display: flex;
    justify-content: center;
    align-items: center;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.social-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--color-accent);
    font-weight: 600;
    transition: all 0.3s ease;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.05);
}

.social-link:hover {
    color: #fff;
    background: var(--color-accent);
    transform: translateY(-2px);
}

.social-link .icon {
    font-family: 'Poppins', sans-serif;
    /* Simplified icon approach */
    font-weight: 700;
    font-size: 1.2rem;
}

/* Animations */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.215, 0.61, 0.355, 1), transform 0.8s cubic-bezier(0.215, 0.61, 0.355, 1);
}

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

.fade-in {
    opacity: 0;
    transition: opacity 1.2s ease;
}

.fade-in.visible {
    opacity: 1;
}

.delay-1 {
    transition-delay: 0.15s;
}

.delay-2 {
    transition-delay: 0.3s;
}

/* Responsive */
@media (max-width: 768px) {
    .main-header {
        width: 95%;
        padding: 0.8rem 1.5rem;
        justify-content: space-between;
    }

    .main-nav {
        /* Hidden by default on mobile - would need JS toggle */
        display: none;
    }

    .mobile-menu-toggle {
        display: block;
        width: 30px;
        height: 20px;
        position: relative;
    }

    .mobile-menu-toggle span {
        display: block;
        width: 100%;
        height: 2px;
        background: #fff;
        position: absolute;
        transition: 0.3s;
    }

    .mobile-menu-toggle span:first-child {
        top: 0;
    }

    .mobile-menu-toggle span:nth-child(2) {
        top: 9px;
    }

    .mobile-menu-toggle span:last-child {
        bottom: 0;
    }

    .hero-content h1 {
        font-size: 2.8rem;
    }

    .hero-content p {
        font-size: 1.1rem;
    }

    .orb-1 {
        width: 300px;
        height: 300px;
        top: -50px;
        left: -50px;
    }

    .orb-2 {
        width: 250px;
        height: 250px;
        bottom: -50px;
        right: -50px;
    }

    .about-content {
        padding: 2.5rem;
    }

    .contact-details {
        flex-direction: column;
        gap: 1rem;
    }
}

/* Green Accents */
.text-accent-green {
    color: var(--color-success);
}

.glow-green {
    box-shadow: 0 0 15px var(--color-glow-green);
    border-color: var(--color-success);
}

.icon-green {
    color: var(--color-success);
    text-shadow: 0 0 10px rgba(76, 175, 80, 0.5);
}

/* Chatbot */
.chatbot-toggle {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(76, 175, 80, 0.5);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    z-index: 1000;
    font-size: 1.8rem;
}

.chatbot-toggle:hover {
    transform: scale(1.1);
    box-shadow: 0 0 20px var(--color-glow-green);
    background: rgba(76, 175, 80, 0.2);
}

.chatbot-window {
    position: fixed;
    bottom: 6rem;
    right: 2rem;
    width: 350px;
    height: 450px;
    background: rgba(26, 29, 36, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(76, 175, 80, 0.3);
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    display: none;
    /* Hidden by default */
    flex-direction: column;
    z-index: 1000;
    overflow: hidden;
    transform-origin: bottom right;
    animation: fadeScale 0.3s ease;
}

.chatbot-window.visible {
    display: flex;
}

.chatbot-header {
    background: rgba(76, 175, 80, 0.2);
    padding: 1rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    justify-content: space-between;
}

.chatbot-header h3 {
    margin: 0;
    font-size: 1.1rem;
    color: #fff;
    flex: 1;
}

#chatbotClose {
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.5rem;
    cursor: pointer;
    line-height: 1;
    padding: 0;
    transition: color 0.3s;
}

#chatbotClose:hover {
    color: #fff;
}

.chatbot-status {
    width: 8px;
    height: 8px;
    background: #4CAF50;
    border-radius: 50%;
    box-shadow: 0 0 5px #4CAF50;
}

.chatbot-body {
    flex: 1;
    padding: 1rem;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.chat-message {
    padding: 0.8rem 1rem;
    border-radius: 12px;
    max-width: 80%;
    font-size: 0.9rem;
    line-height: 1.4;
}

.chat-message.bot {
    background: rgba(255, 255, 255, 0.05);
    border-bottom-left-radius: 2px;
    color: #eee;
}

.chat-message.user {
    background: rgba(76, 175, 80, 0.3);
    border-bottom-right-radius: 2px;
    align-self: flex-end;
    color: #fff;
}

.chatbot-input {
    padding: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    gap: 0.5rem;
}

.chatbot-input input {
    flex: 1;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 0.8rem;
    border-radius: 20px;
    color: #fff;
    outline: none;
}

.chatbot-input input:focus {
    border-color: var(--color-success);
}

.chatbot-input button {
    background: transparent;
    border: none;
    color: var(--color-success);
    cursor: pointer;
    font-size: 1.2rem;
    transition: transform 0.2s;
}

.chatbot-input button:hover {
    transform: scale(1.1);
}

@keyframes fadeScale {
    from {
        opacity: 0;
        transform: scale(0.9);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* --- Modals --- */
.clickable {
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.clickable:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(76, 175, 80, 0.2);
    border-color: var(--color-success);
}

.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    z-index: 2000;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
}

.modal-content {
    background: rgba(30, 30, 30, 0.95);
    max-width: 800px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    padding: 3rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.modal-overlay.active .modal-content {
    transform: scale(1);
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    font-size: 2rem;
    color: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    transition: color 0.3s;
    line-height: 1;
}

.modal-close:hover {
    color: var(--color-success);
}

.modal-body h2 {
    color: var(--color-success);
    margin-bottom: 1.5rem;
    font-size: 2rem;
}

.modal-body h3 {
    color: #fff;
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-size: 1.3rem;
    border-left: 3px solid var(--color-success);
    padding-left: 1rem;
}

.modal-body p {
    color: #ccc;
    line-height: 1.8;
    margin-bottom: 1rem;
}

.modal-cta {
    display: inline-block;
    text-decoration: none;
}

/* Mobile Menu Styles */
@media (max-width: 768px) {
    .main-nav.active {
        display: block;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: rgba(26, 26, 26, 0.95);
        backdrop-filter: blur(10px);
        padding: 20px 0;
        z-index: 1000;
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
        text-align: center;
    }

    .main-nav.active ul {
        flex-direction: column;
        gap: 20px;
        padding: 0;
    }

    .main-nav.active li {
        margin: 10px 0;
    }

    .mobile-menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg);
        top: 9px;
    }

    .mobile-menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .mobile-menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg);
        bottom: 9px;
        top: 9px;
    }
}