/* Custom variables for a consistent theme */
:root {
    --glass-bg: rgba(255, 255, 255, 0.1);
    --accent-color: #00d2ff;
    --text-white: #ffffff;
}

body, html {
    margin: 0;
    padding: 0;
    height: 100%;
    font-family: 'Poppins', sans-serif;
    color: var(--text-white);
    /* High-quality Scenery Background */
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), 
                url('https://images.unsplash.com/photo-1464822759023-fed622ff2c3b?auto=format&fit=crop&w=1920&q=80');
    background-size: cover;
    background-attachment: fixed;
    background-position: center;
}

/* Glassmorphism Effect for Cards and Nav */
.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 2rem;
}

.navbar {
    background: rgba(0, 0, 0, 0.8) !important;
    border-bottom: 1px solid var(--accent-color);
}

.nav-link {
    color: white !important;
    font-weight: 500;
    margin: 0 10px;
    transition: 0.3s;
}

.nav-link:hover {
    color: var(--accent-color) !important;
    transform: translateY(-2px);
}

/* Typewriter Animation Logic */
.typewriter h1 {
    overflow: hidden;
    border-right: .15em solid var(--accent-color);
    white-space: nowrap;
    margin: 0 auto;
    letter-spacing: .15em;
    animation: typing 3.5s steps(40, end), blink-caret .75s step-end infinite;
}

@keyframes typing {
    from { width: 0 }
    to { width: 100% }
}

@keyframes blink-caret {
    from, to { border-color: transparent }
    50% { border-color: var(--accent-color); }
}

/* Project Card Hover from Video Prototype */
.project-card {
    transition: 0.4s;
    cursor: pointer;
}

.project-card:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 30px rgba(0, 210, 255, 0.3);
    border: 1px solid var(--accent-color);
}

.btn-primary {
    background-color: var(--accent-color);
    border: none;
    border-radius: 25px;
    padding: 10px 30px;
}