/* ==================== BASE STYLES ==================== */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #020617;
}

::-webkit-scrollbar-thumb {
    background: #1e293b;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #334155;
}

::selection {
    background: rgba(6, 182, 212, 0.3);
    color: #fff;
}

/* ==================== PARALLAX BACKGROUND ==================== */
.parallax-section {
    position: relative;
}

.parallax-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.parallax-img {
    position: absolute;
    top: -30%;
    left: 0;
    width: 100%;
    height: 160%;
    object-fit: cover;
    object-position: center;
    will-change: transform;
    pointer-events: none;
}

/* ==================== NAVIGATION ==================== */
.nav-link {
    position: relative;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: #94a3b8;
    transition: color 0.3s ease;
    text-decoration: none;
}

.nav-link:hover,
.nav-link.active {
    color: #06b6d4;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: linear-gradient(to right, #06b6d4, #3b82f6);
    border-radius: 1px;
    transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 60%;
}

.nav-scrolled {
    background: rgba(2, 6, 23, 0.85) !important;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
    top: 40px !important;
}

/* ==================== MOBILE MENU ==================== */
.mobile-menu-closed {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
}

.mobile-menu-open {
    max-height: 500px;
    transition: max-height 0.4s ease;
}

.mobile-nav-link {
    display: block;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    font-weight: 500;
    color: #94a3b8;
    border-radius: 0.75rem;
    transition: all 0.3s ease;
    text-decoration: none;
}

.mobile-nav-link:hover {
    color: #06b6d4;
    background: rgba(6, 182, 212, 0.1);
}

/* ==================== HAMBURGER MENU ==================== */
.hamburger-lines {
    display: flex;
    flex-direction: column;
    gap: 5px;
    width: 22px;
}

.hamburger-lines span {
    display: block;
    height: 2px;
    width: 100%;
    background: #94a3b8;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.hamburger-active .hamburger-lines span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.hamburger-active .hamburger-lines span:nth-child(2) {
    opacity: 0;
}

.hamburger-active .hamburger-lines span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* ==================== TYPED CURSOR ==================== */
.typed-cursor::after {
    content: '|';
    animation: blink 0.7s infinite;
    color: #06b6d4;
    font-weight: 300;
    margin-left: 2px;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

/* ==================== SKILL BARS ANIMATION ==================== */
.skill-progress {
    width: 0;
    transition: width 1.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.skill-progress.animated {
    width: var(--target-width);
}

/* ==================== PARTICLES ==================== */
#particles-bg canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* ==================== GLOWING EFFECTS ==================== */
.glow-accent {
    box-shadow: 0 0 15px rgba(6, 182, 212, 0.15),
                0 0 30px rgba(6, 182, 212, 0.05);
}

/* ==================== SERVICE CARD HOVER GLOW ==================== */
.service-card::before {
    content: '';
    position: absolute;
    top: -1px;
    left: -1px;
    right: -1px;
    bottom: -1px;
    border-radius: 1rem;
    background: linear-gradient(135deg, transparent, rgba(6, 182, 212, 0.1), transparent);
    opacity: 0;
    transition: opacity 0.5s ease;
    z-index: 0;
    pointer-events: none;
}

.service-card:hover::before {
    opacity: 1;
}

/* ==================== COUNTER ANIMATION ==================== */
.counter {
    font-variant-numeric: tabular-nums;
}

/* ==================== FORM STYLES ==================== */
select option {
    background: #0f172a;
    color: #e2e8f0;
}

/* ==================== SMOOTH REVEAL ANIMATION ==================== */
[data-aos] {
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1) !important;
}

/* ==================== RESPONSIVE ADJUSTMENTS ==================== */
@media (max-width: 640px) {
    .hero-title {
        font-size: 3rem;
    }
}

/* ==================== PRINT STYLES ==================== */
@media print {
    nav, #back-to-top, #particles-bg {
        display: none !important;
    }
    
    body {
        background: white;
        color: black;
    }
    
    section {
        page-break-inside: avoid;
    }
}
