body {
    background-color: #0A0C21; 
    color: #E8E9F3; 
    font-family: 'Courier New', Courier, monospace;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

header {
    background: linear-gradient(135deg, #0A0C21, #244a87); /* Gradient of blue shades */
    height: 100vh; 
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 20px; 
    animation: fadeIn 2s ease-in-out;
}

.intro h1 {
    font-size: 4rem;
    margin-bottom: 20px;
    color: #F0F4FF;
    white-space: nowrap;
    overflow: hidden;
    border-right: 3px solid #F0F4FF;
    width: 0;
    animation: typing 3s steps(30, end) forwards, blink-caret 0.75s step-end infinite;
}

.intro p {
    font-size: 1.5rem;
    margin: 10px 0;
    animation: fadeIn 2s ease-in-out 3s forwards; 
    opacity: 0;
}

.intro-links .button {
    background-color: #1976D2;
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    margin: 10px;
    display: inline-block;
    transition: transform 0.3s, background-color 0.3s;
    animation: fadeIn 5s ease-in-out 3.5s forwards;
    opacity: 0;
}

.intro-links .button:hover {
    background-color: #0D47A1;
    transform: scale(1.05);
}

nav {
    position: fixed;
    top: 0;
    width: 100%;
    background-color: #0A0C21;
    border-bottom: 2px solid #1976D2;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

nav ul {
    list-style: none;
    margin: 0;
    padding: 10px;
    display: flex;
    justify-content: center;
    flex-wrap: wrap; 
}

nav li {
    margin: 5px 10px;
}

nav a {
    color: #E8E9F3;
    text-decoration: none;
    font-weight: bold;
    padding: 5px 10px;
    border-radius: 5px;
    transition: background-color 0.3s, color 0.3s;
}

nav a:hover {
    background-color: #1976D2;
    color: white;
}

main {
    margin-top: 60px;
    padding: 20px;
    animation: fadeIn 1.5s ease-in-out;
}

section {
    min-height: 50vh;
    padding: 40px 20px;
    text-align: center;
}

h2 {
    color: #1976D2;
    margin-bottom: 20px;
    text-align: center;
    position: relative;
}

h2::after {
    content: '';
    display: block;
    width: 80px;
    height: 3px;
    background-color: #1976D2;
    margin: 10px auto;
    border-radius: 3px;
}

.skills-list, .projects-list, .contact-list {
    text-align: left;
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    background-color: #112B54;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    animation: fadeIn 2s ease-in-out;
}

.skills-list li, .projects-list li, .contact-list li {
    margin-bottom: 15px;
    transition: color 0.3s, transform 0.3s;
}

.skills-list li:hover, .projects-list li:hover, .contact-list li:hover {
    color: #F0F4FF;
    transform: translateX(10px);
}

.stats-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    margin-top: 20px;
}

.stat-box {
    margin: 10px;
    min-width: 250px; 
}

@keyframes typing {
    from { width: 0; }
    to { width: 100%; }
}

@keyframes blink-caret {
    from, to { border-color: transparent; }
    50% { border-color: #F0F4FF; }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@media (max-width: 768px) {
    .intro h1 {
        font-size: 2.5rem; 
    }
    
    .intro p {
        font-size: 1.2rem;
    }
    
    nav ul {
        flex-direction: column;
        padding: 20px; 
    }
    
    section {
        padding: 20px 10px;
    }
    
    .skills-list, .projects-list, .contact-list {
        padding: 15px;
    }
    
    .stat-box {
        margin: 10px 0;
    }
}

@media (max-width: 480px) {
    .intro h1 {
        font-size: 2rem;
    }
    
    .intro p {
        font-size: 1rem;
    }
    
    .intro-links .button {
        padding: 8px 16px;
    }
    
    nav ul {
        padding: 15px;
    }
    
    section {
        padding: 15px 10px;
    }
    
    .stat-box {
        width: 100%; 
    }
}
