:root {
    --brand-orange: #FF6B00;
}

body {
    background-color: #050505;
    color: white;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #000; 
}
::-webkit-scrollbar-thumb {
    background: #333; 
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--brand-orange); 
}

/* 3D Canvas Background */
#canvas-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: -1;
    opacity: 1;
    pointer-events: none;
}

/* Utilities */
.glass-panel {
    background: rgba(20, 20, 20, 0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}

.border-glow {
    border: 1px solid rgba(255, 107, 0, 0.3);
    transition: all 0.3s ease;
}

.border-glow:hover {
    border-color: var(--brand-orange);
    box-shadow: 0 0 20px rgba(255, 107, 0, 0.3);
}

.text-glow {
    text-shadow: 0 0 10px rgba(255, 107, 0, 0.5);
}

.clip-diagonal {
    clip-path: polygon(0 0, 100% 0, 100% 85%, 85% 100%, 0 100%);
}

.clip-corner {
     clip-path: polygon(
        0 0, 
        100% 0, 
        100% 85%, 
        95% 100%, 
        0 100%
    );
}

.tech-border {
    position: relative;
}
.tech-border::before, .tech-border::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    border: 1px solid var(--brand-orange);
    transition: all 0.3s ease;
}
.tech-border::before { top: -1px; left: -1px; border-right: none; border-bottom: none; }
.tech-border::after { bottom: -1px; right: -1px; border-left: none; border-top: none; }

/* Animated Grid Overlay */
.grid-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(255, 107, 0, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 107, 0, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    z-index: -1;
    pointer-events: none;
    mask-image: linear-gradient(to bottom, black 40%, transparent 100%);
}

/* Loader */
#loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000;
    z-index: 100;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.5s ease-out;
}
.loader-spinner {
    width: 50px;
    height: 50px;
    border: 3px solid #333;
    border-top: 3px solid var(--brand-orange);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}
@keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }

/* Button Hover Ripple */
.btn-ripple {
    position: relative;
    overflow: hidden;
}
.btn-ripple::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}
.btn-ripple:hover::after {
    width: 300px;
    height: 300px;
}

/* Floating Animation */
.floating {
    animation: float 6s ease-in-out infinite;
}
@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
    100% { transform: translateY(0px); }
}

.scanline {
    width: 100%;
    height: 2px;
    background: rgba(255, 107, 0, 0.5);
    position: absolute;
    top: 0;
    left: 0;
    animation: scan 3s linear infinite;
    opacity: 0.5;
}
@keyframes scan {
    0% { top: 0%; opacity: 0; }
    50% { opacity: 1; }
    100% { top: 100%; opacity: 0; }
}

/* Number counter animation support */
@property --num {
  syntax: "<integer>";
  initial-value: 0;
  inherits: false;
}

/* Add Marquee Animation Keyframes (Adding this as it was missing in the original logic but required for the HTML class 'animate-marquee') */
@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}
.animate-marquee {
    animation: marquee 25s linear infinite;
}

/* Add this to style.css for Services Page */

.clip-notch {
    clip-path: polygon(
        0 0, 
        100% 0, 
        100% calc(100% - 20px), 
        calc(100% - 20px) 100%, 
        0 100%
    );
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px -10px rgba(255, 107, 0, 0.3);
}

.clip-tag {
    clip-path: polygon(0 0, 100% 0, 90% 100%, 0% 100%);
}

.blog-card:hover .blog-image-overlay {
    opacity: 0.3;
}

.blog-card:hover .blog-title {
    color: var(--brand-orange);
}

.clip-input {
    clip-path: polygon(
        0 0,
        100% 0,
        100% calc(100% - 10px),
        calc(100% - 10px) 100%,
        0 100%
    );
}

.tech-input {
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    transition: all 0.3s ease;
}

.tech-input:focus {
    border-color: var(--brand-orange);
    box-shadow: 0 0 15px rgba(255, 107, 0, 0.2);
    outline: none;
    background: rgba(0, 0, 0, 0.8);
}

.tech-label {
    position: absolute;
    top: -10px;
    left: 10px;
    background: #050505;
    padding: 0 5px;
    font-size: 0.75rem;
    color: #666;
    font-family: 'Rajdhani', sans-serif;
    font-weight: bold;
    transition: color 0.3s;
}

.group:focus-within .tech-label {
    color: var(--brand-orange);
}