:root {
    --primary: #002060;
    --accent: #2563eb;
    --text-main: #111;
    --bg-light: #ffffff;
}

body {
    font-family: 'Montserrat', sans-serif;
    color: var(--text-main);
    overflow-x: hidden;
    background-color: #ffffff;
    position: relative;
}

.bg-pattern-dots {
    background-image: radial-gradient(#e5e7eb 1px, transparent 1px);
    background-size: 20px 20px;
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
    100% { transform: translateY(0px); }
}
@keyframes float-delayed {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
    100% { transform: translateY(0px); }
}
.animate-float { animation: float 6s ease-in-out infinite; }
.animate-float-delayed { animation: float-delayed 8s ease-in-out infinite; animation-delay: 2s; }

@keyframes pulse-soft {
    0%, 100% { opacity: 0.05; }
    50% { opacity: 0.15; }
}
.animate-pulse-soft { animation: pulse-soft 4s infinite; }

.nav-link {
    position: relative;
    color: #555;
    font-weight: 600;
    transition: color 0.3s;
}
.nav-link:hover, .nav-link.active { color: var(--primary); }
.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    left: 0;
    background-color: var(--primary);
    transition: width 0.3s;
}
.nav-link:hover::after, .nav-link.active::after { width: 100%; }

.tech-card {
    background: white;
    border: 1px solid #f3f4f6;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}
.tech-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 4px; height: 100%;
    background: var(--primary);
    transform: scaleY(0);
    transition: transform 0.3s;
}
.tech-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    border-color: #e5e7eb;
}
.tech-card:hover::before { transform: scaleY(1); }

#contact-page {
    display: none;
    background-color: #020617;
    color: white;
    min-height: 100vh;
    position: fixed;
    top: 0; left: 0; width: 100%;
    z-index: 9999;
    overflow-y: auto;
}
.glow-input {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s;
}
.glow-input:focus {
    border-color: #38bdf8;
    box-shadow: 0 0 20px rgba(56, 189, 248, 0.2);
    outline: none;
}

.modal {
    display: none;
    position: fixed;
    z-index: 100;
    left: 0; top: 0; width: 100%; height: 100%;
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(5px);
}
.modal-content { animation: slideUp 0.4s ease; }
@keyframes slideUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}