/* Custom Design System for DAFCER */

:root {
    --primary: #F3811F;
    --secondary: #F4821F;
    --accent: #5C5A5D;
    --dark: #000000;
}

/* Base Styles */
body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: var(--dark);
}

::-webkit-scrollbar-thumb {
    background: var(--accent);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}

/* Typography Effects */
.font-display {
    letter-spacing: -0.03em;
}

.stroke-text {
    -webkit-text-stroke: 1px rgba(255, 255, 255, 0.4);
    color: transparent;
    transition: -webkit-text-stroke 0.5s ease;
}

.vertical-text {
    writing-mode: vertical-rl;
}

/* Animations */
@keyframes progressMove {
    0% { transform: scaleX(0); transform-origin: left; }
    45% { transform: scaleX(1); transform-origin: left; }
    50% { transform: scaleX(1); transform-origin: right; }
    100% { transform: scaleX(0); transform-origin: right; }
}

.animate-progress {
    animation: progressMove 3s infinite cubic-bezier(0.65, 0, 0.35, 1);
}

/* Glassmorphism */
.glass {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

/* Hero Section Depth */
#hero-canvas {
    filter: brightness(0.7) contrast(1.1);
}

/* Project Cards */
.project-card {
    transition: all 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}

.project-card:hover {
    transform: translateY(-10px);
}

/* Navigation State */
#main-nav.scrolled {
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    padding-top: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

/* Custom Selection */
::selection {
    background: var(--primary);
    color: var(--dark);
}

/* Form Styles */
input:-webkit-autofill,
input:-webkit-autofill:hover, 
input:-webkit-autofill:focus, 
input:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0 30px var(--dark) inset !important;
    -webkit-text-fill-color: white !important;
}

/* Reveal Animations Classes */
.reveal, .reveal-img {
    opacity: 0;
}

/* Mobile Menu */
#mobile-menu {
    width: 100%;
    right: 0;
    transform: translateX(100%);
}

#mobile-menu.active {
    transform: translateX(0);
}

/* Responsiveness Tweaks */
@media (max-width: 768px) {
    .section-title {
        font-size: 2.8rem;
        line-height: 1.1;
    }
}

@media (max-width: 640px) {
    .section-title {
        font-size: 2.5rem;
    }
    
    section {
        padding-top: 4rem !important;
        padding-bottom: 4rem !important;
    }
}
