/* Base Styles */
body {
    background-color: #030712;
    color: #cbd5e1;
    overflow-x: hidden;
}

/* Custom Scrollbar - Sharp */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: #020617; }
::-webkit-scrollbar-thumb { background: #1e293b; }
::-webkit-scrollbar-thumb:hover { background: #2563eb; }

/* Geometric Utilities */
.clip-angle {
    clip-path: polygon(
        0 0, 
        100% 0, 
        100% calc(100% - 20px), 
        calc(100% - 20px) 100%, 
        0 100%
    );
}

.clip-angle-button {
    clip-path: polygon(
        10px 0, 
        100% 0, 
        100% calc(100% - 10px), 
        calc(100% - 10px) 100%, 
        0 100%, 
        0 10px
    );
}

.chamfer-box {
    position: relative;
    background: rgba(11, 17, 33, 0.4); /* More transparent for glass effect */
    border: 1px solid rgba(30, 41, 59, 0.5);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(5px); /* Glass effect */
}

.chamfer-box:hover {
    border-color: #2563eb;
    transform: translateY(-2px);
    box-shadow: 0 0 20px rgba(37, 99, 235, 0.1);
}

/* Corner Accents */
.corner-accent {
    position: absolute;
    width: 8px;
    height: 8px;
    border: 1px solid #2563eb;
    transition: all 0.3s ease;
}
.chamfer-box:hover .corner-accent { background: #2563eb; }
.c-tl { top: -1px; left: -1px; border-right: none; border-bottom: none; }
.c-tr { top: -1px; right: -1px; border-left: none; border-bottom: none; }
.c-bl { bottom: -1px; left: -1px; border-right: none; border-top: none; }
.c-br { bottom: -1px; right: -1px; border-left: none; border-top: none; }

/* Grid Background */
.bg-tech-grid {
    background-size: 40px 40px;
    background-image: linear-gradient(to right, rgba(255,255,255,0.03) 1px, transparent 1px),
                      linear-gradient(to bottom, rgba(255,255,255,0.03) 1px, transparent 1px);
    mask-image: radial-gradient(circle at center, black 40%, transparent 100%);
    -webkit-mask-image: radial-gradient(circle at center, black 40%, transparent 100%);
}

/* Reveal Animation */
.reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Modal */
.modal-backdrop {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    background: rgba(0,0,0,0.8);
    backdrop-filter: blur(8px);
}
.modal-backdrop.active { opacity: 1; pointer-events: auto; }

.btn-tech {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}
.btn-tech::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: 0.5s;
}
.btn-tech:hover::after { left: 100%; }

/* Validation States */
.input-error {
    border-color: #ef4444 !important;
    box-shadow: 0 0 10px rgba(239, 68, 68, 0.2);
}

/* Glassmorphic Sections */
section {
    position: relative;
    z-index: 10; /* Above canvas */
}

/* Override specific background colors with glass variants */
/* Alternating Glass Effect */

/* About: Glass */
#about {
    background-color: rgba(3, 7, 18, 0.3);
    backdrop-filter: blur(4px);
}

/* Projects: Transparent (No Glass) */
#projects {
    background-color: transparent;
    backdrop-filter: none;
}

/* Services: Glass */
#services {
    background-color: rgba(3, 7, 18, 0.3);
    backdrop-filter: blur(4px);
}

/* Testimonials: Transparent (No Glass) */
#testimonials {
    background-color: transparent;
    backdrop-filter: none;
}

/* Contact: Glass */
#contact {
    background-color: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(4px);
}

/* Canvas positioning */
#geo-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0; /* Deepest layer */
    pointer-events: none;
    opacity: 0.8;
}

/* Helper for panel backgrounds in glass mode */
.glass-panel {
    background-color: rgba(11, 17, 33, 0.4);
    backdrop-filter: blur(4px);
}

