:root {
    --bg-main: #0a0e17;
    --bg-darker: #05070a;
    --text-primary: #e0e6ed;
    --text-secondary: #94a3b8;
    --accent-color: #3b82f6;
    --accent-glow: #8b5cf6;
    --glass-bg: rgba(15, 23, 42, 0.6);
    --glass-border: rgba(255, 255, 255, 0.1);
    --error-color: #ef4444;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Outfit', sans-serif;
    scroll-behavior: smooth;
    cursor: none; /* Hide default cursor - custom cursor handles this */
}

body {
    background-color: var(--bg-main);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Glassmorphism utility */
.glass-effect {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
}

.highlight {
    background: linear-gradient(90deg, var(--accent-color), var(--accent-glow));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 800;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section {
    padding: 100px 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.bg-darker {
    background-color: var(--bg-darker);
}

/* Typography */
h1 { font-size: 4rem; line-height: 1.2; margin-bottom: 1.5rem; }
h2 { font-size: 2.5rem; margin-bottom: 1rem; }
h3 { font-size: 1.5rem; margin-bottom: 0.5rem; color: #fff; }
p { color: var(--text-secondary); margin-bottom: 1rem; font-size: 1.1rem; }

/* Buttons */
button, .outline-btn {
    cursor: pointer;
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.neon-btn {
    background: linear-gradient(45deg, var(--accent-color), var(--accent-glow));
    color: white;
    padding: 12px 28px;
    border: none;
    border-radius: 30px;
    font-size: 1rem;
    box-shadow: 0 0 15px rgba(59, 130, 246, 0.4);
    position: relative;
    z-index: 1;
    overflow: hidden;
}

.neon-btn::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(45deg, var(--accent-glow), var(--accent-color));
    z-index: -1;
    transition: opacity 0.3s ease;
    opacity: 0;
}

.neon-btn:hover::before {
    opacity: 1;
}

.neon-btn:hover {
    box-shadow: 0 0 25px rgba(139, 92, 246, 0.6);
    transform: translateY(-2px);
}

.outline-btn {
    padding: 10px 26px;
    border: 2px solid var(--accent-color);
    color: var(--text-primary);
    border-radius: 30px;
}

.outline-btn:hover {
    background: var(--accent-color);
    color: white;
    box-shadow: 0 0 15px rgba(59, 130, 246, 0.4);
}

/* Navbar */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 20px 0;
    z-index: 1000;
    transition: all 0.4s ease;
}

nav.scrolled {
    background: rgba(10, 14, 23, 0.9);
    backdrop-filter: blur(10px);
    padding: 15px 0;
    border-bottom: 1px solid var(--glass-border);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

.logo h1 {
    font-size: 1.5rem;
    margin: 0;
}

.logo-icon {
    width: 24px;
    height: 24px;
    background: var(--accent-color);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--accent-color);
    position: relative;
}
.logo-icon::after {
    content: '';
    position: absolute;
    top: 6px; left: 6px; right: 6px; bottom: 6px;
    background: #000;
    border-radius: 50%;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
    position: relative;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--accent-color);
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0; height: 2px;
    bottom: -5px; left: 0;
    background: var(--accent-color);
    transition: width 0.3s;
}

.nav-links a:hover::after {
    width: 100%;
}

/* Hero Section */
.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.hero-image-container {
    position: relative;
    height: 500px;
    display: flex;
    justify-content: center;
    align-items: center;
    perspective: 1000px;
}

.floating-cctv {
    width: 100%;
    max-width: 450px;
    object-fit: contain;
    z-index: 10;
    animation: float 6s ease-in-out infinite;
    filter: drop-shadow(0 20px 30px rgba(0,0,0,0.5));
    transition: transform 0.1s ease;
    /* Styles for when image is broken/empty */
    background: linear-gradient(135deg, rgba(59,130,246,0.1), rgba(139,92,246,0.1));
    border-radius: 20px;
    color: var(--accent-color);
    text-align: center;
    line-height: 450px;
    font-size: 1.2rem;
}

.glow-ring {
    position: absolute;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(59,130,246,0.4) 0%, rgba(139,92,246,0) 70%);
    filter: blur(20px);
    z-index: 1;
    animation: pulse 4s infinite alternate;
}

@keyframes float {
    0% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(2deg); }
    100% { transform: translateY(0px) rotate(0deg); }
}

@keyframes pulse {
    0% { transform: scale(0.8); opacity: 0.5; }
    100% { transform: scale(1.2); opacity: 0.8; }
}

/* About Section */
.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-image {
    display: flex;
    flex-direction: column;
    gap: 2.5rem; /* Space between the two images */
}

.about-details {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

.detail-card {
    padding: 1.5rem;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.detail-card:hover {
    transform: translateX(10px);
    border-color: var(--accent-color);
}

.styled-img {
    width: 100%;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
    border: 1px solid var(--glass-border);
    /* Fallback styles */
    background: linear-gradient(135deg, #1e293b, #0f172a);
    color: var(--text-secondary);
    min-height: 550px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

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

.service-card {
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.hover-lift {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4);
    border-color: rgba(59, 130, 246, 0.5);
}

.service-img-wrapper {
    height: 200px;
    width: 100%;
    overflow: hidden;
}

.service-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
    /* Fallback */
    background: #1e293b;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-card:hover .service-img-wrapper img {
    transform: scale(1.1);
}

.service-content {
    padding: 1.5rem;
}

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

.contact-info {
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.info-item {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.info-item .icon {
    font-size: 1.5rem;
    background: rgba(59, 130, 246, 0.1);
    padding: 10px;
    border-radius: 10px;
}

.social-links {
    margin-top: 1rem;
}

.social-icons {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-icon:hover {
    background: var(--accent-color);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(59, 130, 246, 0.4);
}

/* Quotation Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

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

.modal-wrapper {
    width: 90%;
    max-width: 550px;
    position: relative;
    transform: translateY(-50px) scale(0.9);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.modal-overlay.active .modal-wrapper {
    transform: translateY(0) scale(1);
}

.modal-content {
    height: 80vh;
    max-height: 600px;
    overflow-y: auto;
    padding: 2.5rem;
    background: rgba(15, 23, 42, 0.85);
    border-radius: 20px;
    scrollbar-width: thin;
    scrollbar-color: var(--accent-color) rgba(255, 255, 255, 0.05);
}

.modal-content::-webkit-scrollbar {
    width: 6px;
}
.modal-content::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    margin: 10px 0;
}
.modal-content::-webkit-scrollbar-thumb {
    background: var(--accent-color);
    border-radius: 10px;
}

.close-btn {
    position: absolute;
    top: -15px;
    right: -15px;
    background: var(--bg-main);
    border: 1px solid var(--glass-border);
    color: var(--text-secondary);
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    box-shadow: 0 4px 10px rgba(0,0,0,0.5);
}

.close-btn:hover {
    color: white;
    background: var(--error-color);
    border-color: var(--error-color);
    transform: scale(1.1);
}

.modal-content h2 {
    margin-bottom: 0.5rem;
}

.modal-content p {
    font-size: 0.95rem;
    margin-bottom: 2rem;
}

.input-group {
    margin-bottom: 1.5rem;
    position: relative;
}

.input-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-primary);
}

.input-group input,
.input-group select,
.input-group textarea {
    width: 100%;
    padding: 12px 15px;
    border-radius: 8px;
    border: 1px solid var(--glass-border);
    background: rgba(255, 255, 255, 0.05);
    color: white;
    font-size: 1rem;
    transition: all 0.3s ease;
    font-family: 'Outfit', sans-serif;
}

.input-group input:focus,
.input-group select:focus,
.input-group textarea:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.2);
    background: rgba(255, 255, 255, 0.1);
}

.input-group select option {
    background: var(--bg-darker);
    color: white;
}

.error-msg {
    color: var(--error-color);
    font-size: 0.8rem;
    position: absolute;
    bottom: -20px;
    left: 0;
    opacity: 0;
    transform: translateY(-5px);
    transition: all 0.3s ease;
}

.input-group.error input,
.input-group.error select,
.input-group.error textarea {
    border-color: var(--error-color);
}

.input-group.error .error-msg {
    opacity: 1;
    transform: translateY(0);
}

.submit-btn {
    width: 100%;
    margin-top: 1rem;
    padding: 14px;
    font-size: 1.1rem;
}

/* Footer */
footer {
    padding: 80px 0 30px;
    background: var(--bg-darker);
    border-top: 1px solid var(--glass-border);
    position: relative;
    overflow: hidden;
}

footer::before {
    content: '';
    position: absolute;
    top: -150px;
    right: -150px;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.05) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1.2fr;
    gap: 4rem;
    margin-bottom: 50px;
}

.footer-brand .logo {
    margin-bottom: 1.5rem;
    justify-content: flex-start;
}

.footer-brand p {
    font-size: 1rem;
    max-width: 350px;
    margin-bottom: 1.5rem;
}

.footer-socials {
    display: flex;
    gap: 1rem;
}

.footer-socials a {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid var(--glass-border);
}

.footer-socials a:hover {
    background: var(--accent-color);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(59, 130, 246, 0.3);
}

.footer-links h4,
.footer-contact h4 {
    color: white;
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 10px;
}

.footer-links h4::after,
.footer-contact h4::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 40px;
    height: 2px;
    background: var(--accent-color);
}

.footer-links ul,
.footer-contact ul {
    list-style: none;
}

.footer-links li,
.footer-contact li {
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-links a:hover {
    color: var(--accent-color);
    padding-left: 5px;
}

.footer-contact i {
    color: var(--accent-color);
    font-size: 1rem;
}

.footer-contact span {
    color: var(--text-secondary);
}

.footer-bottom {
    padding-top: 30px;
    border-top: 1px solid var(--glass-border);
    text-align: center;
}

.footer-bottom p {
    font-size: 0.9rem;
    margin: 0;
}

@media (max-width: 992px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 3rem;
    }
}

@media (max-width: 576px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
    
    footer {
        padding: 60px 0 30px;
    }
}

/* Animations (Reveal on scroll) */
.reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }

/* Responsive */
@media (max-width: 992px) {
    .hero-content, .about-grid, .contact-wrapper {
        grid-template-columns: 1fr;
    }
    
    .hero-text {
        text-align: center;
        order: 2;
    }
    
    .hero-actions {
        justify-content: center;
    }
    
    .hero-image-container {
        order: 1;
        height: 350px;
    }
    
    h1 { font-size: 3rem; }
}

@media (max-width: 768px) {
    .nav-links {
        display: none; /* In a real app, implement a hamburger menu here */
    }
    
    h1 { font-size: 2.5rem; }
    h2 { font-size: 2rem; }
    
    .section {
        padding: 80px 0;
    }
}

/* =============================================
   CUSTOM CURSOR
   ============================================= */
#cursor-dot {
    position: fixed;
    top: 0; left: 0;
    width: 14px;
    height: 14px;
    background: linear-gradient(135deg, var(--accent-color), var(--accent-glow));
    border-radius: 50%;
    pointer-events: none;
    z-index: 99999;
    transform: translate(-50%, -50%);
    transition: width 0.2s ease, height 0.2s ease, border-radius 0.2s ease,
                background 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 0 10px rgba(33, 114, 244, 0.8), 0 0 20px rgba(139, 92, 246, 0.4);
    will-change: transform;
}

#cursor-ring {
    position: fixed;
    top: 0; left: 0;
    width: 38px;
    height: 38px;
    border: 2px solid rgba(59, 130, 246, 0.5);
    border-radius: 50%;
    pointer-events: none;
    z-index: 99998;
    transform: translate(-50%, -50%);
    transition: width 0.3s ease, height 0.3s ease, border-radius 0.3s ease,
                border-color 0.3s ease, opacity 0.3s ease, background-color 0.3s ease;
    will-change: transform;
}

/* State: hovering a button or anchor — dot and ring expand */
#cursor-dot.cursor-hover {
    width: 22px;
    height: 22px;
    box-shadow: 0 0 18px rgba(59, 130, 246, 1), 0 0 35px rgba(139, 92, 246, 0.6);
}

#cursor-ring.cursor-hover {
    width: 55px;
    height: 55px;
    border-color: rgba(139, 92, 246, 0.7);
}

/* State: hovering text — dot morphs into a thin vertical bar */
#cursor-dot.cursor-text {
    width: 3px;
    height: 28px;
    border-radius: 3px;
    background: linear-gradient(180deg, var(--accent-color), var(--accent-glow));
    box-shadow: 0 0 10px rgba(59, 130, 246, 0.9);
}

#cursor-ring.cursor-text {
    width: 15px;
    height: 40px;
    border-radius: 10px;
    border-color: rgba(139, 92, 246, 0.7);
    background: rgba(139, 92, 246, 0.1);
    opacity: 1;
}

/* =============================================
   ABOUT IMAGE AUTO-ANIMATION
   ============================================= */
.about-floating {
    animation: aboutSway 5s ease-in-out infinite !important;
    transition: box-shadow 0.3s ease !important;
}

.about-image img {
    transition: transform 0.15s ease, box-shadow 0.3s ease;
    transform-style: preserve-3d;
    will-change: transform;
}

@keyframes aboutSway {
    0%   { transform: translateY(0px)   rotate(0deg)   scale(1);    }
    25%  { transform: translateY(-12px) rotate(1.5deg) scale(1.02); }
    50%  { transform: translateY(-6px)  rotate(-1deg)  scale(1.01); }
    75%  { transform: translateY(-14px) rotate(0.5deg) scale(1.02); }
    100% { transform: translateY(0px)   rotate(0deg)   scale(1);    }
}

/* =============================================
   NOTIFICATION TOAST
   ============================================= */
.toast {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 10000;
    transition: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    transform: translateX(120%);
}

.toast.active {
    transform: translateX(0);
}

.toast.hidden {
    display: block; /* We manage visibility with transform and opacity */
    pointer-events: none;
    opacity: 0;
}

.toast.active {
    pointer-events: all;
    opacity: 1;
}

.toast-content {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 18px 25px;
    min-width: 350px;
    max-width: 450px;
    position: relative;
    overflow: hidden;
    background: rgba(15, 23, 42, 0.9) !important;
    border-left: 4px solid #10b981 !important;
}

.toast-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.toast-text h4 {
    color: #10b981;
    margin-bottom: 2px;
    font-size: 1.1rem;
}

.toast-text p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--text-primary);
}

.toast-close {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 1.5rem;
    cursor: pointer;
    position: absolute;
    top: 10px;
    right: 15px;
    transition: color 0.3s;
}

.toast-close:hover {
    color: white;
}

.toast-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    width: 100%;
    background: #10b981;
    transform-origin: left;
}

.toast.active .toast-progress {
    animation: toastProgress 5s linear forwards;
}

@keyframes toastProgress {
    from { transform: scaleX(1); }
    to { transform: scaleX(0); }
}
