/* Modern Header */
header.modern-header {
    background: rgba(30, 30, 40, 0.7);
    backdrop-filter: blur(8px);
    color: #fff;
    padding: 18px 0;
    text-align: center;
    position: sticky;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 2px 16px rgba(0,0,0,0.08);
    transition: transform 0.4s, box-shadow 0.3s;
}
header.modern-header h1 {
    margin: 0;
    font-size: 2.5em;
    font-weight: 700;
    letter-spacing: 2px;
    animation: slide-in 1.5s ease-out;
}
header.modern-header nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
}
header.modern-header nav ul li {
    display: inline;
    margin: 0 10px;
}
header.modern-header nav ul li a.modern-nav {
    color: #fff;
    text-decoration: none;
    font-size: 1.1em;
    padding: 10px 22px;
    background: linear-gradient(90deg, #00c3ff 0%, #ffff1c 100%);
    border-radius: 30px;
    transition: background 0.3s, box-shadow 0.3s, color 0.3s;
    position: relative;
    font-weight: 500;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
header.modern-header nav ul li a.modern-nav:hover,
header.modern-header nav ul li a.modern-nav.active {
    background: linear-gradient(90deg, #ffff1c 0%, #00c3ff 100%);
    color: #232526;
    box-shadow: 0 4px 16px rgba(0,0,0,0.12);
}

/* Contact Cards */
.contact-cards {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    justify-content: center;
    margin: 32px 0 0 0;
}
.contact-card {
    background: rgba(40, 40, 60, 0.85);
    border-radius: 18px;
    box-shadow: 0 2px 16px rgba(0,0,0,0.12);
    padding: 24px 32px;
    min-width: 220px;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform 0.2s, box-shadow 0.2s;
}
.contact-card:hover {
    transform: translateY(-6px) scale(1.04);
    box-shadow: 0 8px 32px rgba(0,0,0,0.18);
}
.contact-icon {
    font-size: 2.2em;
    margin-bottom: 10px;
}
.contact-link {
    color: #00c3ff;
    font-size: 1.1em;
    text-decoration: none;
    margin-bottom: 6px;
    transition: color 0.2s;
}
.contact-link:hover {
    color: #ffff1c;
    text-decoration: underline;
}
.contact-label {
    font-size: 0.95em;
    color: #bbb;
}

/* Footer Divider and Text */
.footer-divider {
    border: none;
    border-top: 1.5px solid #444;
    margin: 32px 0 12px 0;
}
.footer-text {
    color: #bbb;
    font-size: 1em;
    text-align: center;
    margin-bottom: 12px;
}

/* Sprinkle Modern */
.sprinkle {
    position: absolute;
    top: 0;
    width: 6px;
    height: 6px;
    background: linear-gradient(135deg, #00c3ff 0%, #ffff1c 100%);
    border-radius: 50%;
    opacity: 0.5;
    animation: sprinkle-fall linear infinite;
    z-index: 0;
}
body {
    font-family: 'Poppins', sans-serif;
    margin: 0;
    padding: 0;
    background: #000; 
    color: #fff;
    overflow-x: hidden;
    position: relative;
}

header {
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    padding: 20px 0;
    text-align: center;
    position: fixed; 
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
}

header h1 {
    margin: 0;
    font-size: 2.5em;
    animation: slide-in 1.5s ease-out;
}

header nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

header nav ul li {
    display: inline;
    margin: 0 15px;
}

header nav ul li a {
    color: #fff;
    text-decoration: none;
    font-size: 1.2em;
    padding: 10px 20px;
    background: #00ff00; 
    border-radius: 50px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 0 10px #00ff00, 0 0 20px #00ff00, 0 0 30px #00ff00; 
}

header nav ul li a:hover {
    background: #00cc00; 
    box-shadow: 0 0 20px #00ff00, 0 0 30px #00ff00, 0 0 40px #00ff00; 
}

section.content {
    padding: 60px 20px;
    margin: 80px auto 0; 
    max-width: 1200px;
    background: rgba(0, 0, 0, 0.6);
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.2);
    border-radius: 15px;
    text-align: center;
    position: relative;
    overflow: hidden;
    animation: zoom-in 1.5s ease-out;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.project {
    background: #222; 
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project img {
    max-width: 100%;
    border-radius: 10px;
    transition: transform 0.3s ease;
}

.project:hover {
    transform: translateY(-10px);
    box-shadow: 0 0 20px rgba(0, 255, 0, 0.7); 
}

.project img:hover {
    transform: scale(1.05);
}

footer {
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    text-align: center;
    padding: 10px 0;
    position: fixed;
    bottom: 0;
    width: 100%;
}

footer p {
    margin: 0;
}

.animated-button {
    display: inline-block;
    padding: 10px 20px;
    background: #00ff00;
    color: #fff;
    border-radius: 50px;
    text-decoration: none;
    font-size: 1.2em;
    transition: background 0.3s ease, transform 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 0 10px #00ff00, 0 0 20px #00ff00, 0 0 30px #00ff00; 
}

.animated-button:hover {
    background: #00cc00;
    transform: translateY(-5px);
    box-shadow: 0 0 20px #00ff00, 0 0 30px #00ff00, 0 0 40px #00ff00; 
}

@keyframes sprinkle {
    0% {
        transform: translateY(-100px);
        opacity: 1;
    }
    100% {
        transform: translateY(100vh);
        opacity: 0;
    }
}

.sprinkle {
    position: absolute;
    width: 5px;
    height: 5px;
    background: #00ff00;
    border-radius: 50%;
    box-shadow: 0 0 10px #00ff00, 0 0 20px #00ff00, 0 0 30px #00ff00; 
    animation: sprinkle 10s linear infinite;
    top: -100px;
    z-index: 0;
}

@keyframes zoom-in {
    from {
        transform: scale(0.9);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes slide-in {
    from {
        transform: translateY(-100px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@media (max-width: 768px) {
    header h1 {
        font-size: 2em;
    }

    header nav ul li {
        display: block;
        margin: 10px 0;
    }

    .projects-grid {
        grid-template-columns: 1fr;
    }

    .project img {
        max-width: 100%;
    }
}
