/* General Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg-color: #0c0d0f;
    --text-color: #e0e0e0;
    --accent-color: #00e5ff;
    --card-bg: rgba(23, 27, 34, 0.5);
    --card-border: rgba(43, 205, 224, 0.6);
    --card-hover-border: rgba(218, 105, 252, 0.549);
    --navbar-bg: rgba(18, 22, 28, 0.7);
}

body {
    font-family: 'Manrope', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
}

.background-glow {
    position: fixed;
    top: 50%;
    left: 50%;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(52, 158, 190, 0.356) 0%, rgba(12, 13, 15, 0) 70%);
    transform: translate(-50%, -50%);
    z-index: -1;
}

a {
    text-decoration: none;
    color: var(--text-color);
    transition: color 0.3s ease;
}

a:hover {
    color: #fff;
}

.main-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* New Navbar Styling */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 2rem;
    background: var(--navbar-bg);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 1rem;
    width: 95%;
    max-width: 1200px;
    margin: 1rem auto;
    z-index: 1000;
    border-radius: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    animation: fadeInDown 0.8s ease-in-out;
}

.logo a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.25rem;
    font-weight: bold;
    color: #fff;
}

.nav-links {
    display: flex;
    gap: 1.5rem;
}

/* --- HOVER ANIMATION ADDED HERE --- */
.nav-links a {
    font-size: 0.95rem;
    font-weight: 500;
    position: relative; /* Required for the ::after element */
    padding-bottom: 0.25rem; /* Creates space for the line */
}

.nav-links a:hover {
    color: var(--accent-color);
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--accent-color);
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}
/* --- END OF HOVER ANIMATION STYLES --- */

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.social-icon {
    font-size: 1.2rem;
    color: var(--text-color);
    transition: color 0.3s ease;
}

.social-icon:hover {
    color: var(--accent-color);
}

.btn {
    padding: 0.5rem 1rem;
    border-radius: 1.5rem;
    font-weight: bold;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.btn-primary {
    background-color: var(--accent-color);
    color: #000;
    border-color: var(--accent-color);
}

.btn-primary:hover {
    background-color: transparent;
    color: var(--accent-color);
}

.btn-outline {
    background-color: transparent;
    color: var(--text-color);
    border-color: var(--text-color);
}

.btn-outline:hover {
    background-color: var(--accent-color);
    color: #000;
}

.hamburger {
    display: none;
    font-size: 1.8rem;
    color: #d6d6e0;
    cursor: pointer;
}

/* Mobile Nav */
.mobile-nav-links {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(12, 13, 15, 0.98);
    backdrop-filter: blur(10px);
    z-index: 999;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.mobile-nav-links.active {
    display: flex;
    animation: fadeIn 0.3s ease;
}

.mobile-nav-links ul {
    list-style: none;
    padding: 0;
}

.mobile-nav-links li {
    margin: 1.5rem 0;
    text-align: center;
}

.mobile-nav-links a {
    font-size: 1.5rem;
    color: var(--text-color);
}

/* Hero Section */
.hero {
    text-align: center;
    padding: 8rem 2rem 6rem;
    margin-top: 2rem;
}

.hero-content h1 {
    font-size: 4rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.5rem;
    animation: slideInLeft 1s ease-out;
}

.hero-content p {
    font-size: 1.25rem;
    color: var(--text-color);
    animation: slideInRight 1s ease-out;
}

/* Sections */
.section {
    padding: 4rem 0;
    opacity: 0;
    animation: fadeInUp 1s forwards;
    animation-delay: 0.2s;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: #fff;
}

/* Grid & Card Styles */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.card {
    background: var(--card-bg);
    padding: 2rem;
    border: 1px solid var(--card-border);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    border-color: var(--card-hover-border);
    background: rgba(23, 27, 34, 0.7);
}


.card h2 { color: #fff; font-size: 2rem; margin-bottom: 1rem; text-align: center; }
.card h3 { color: var(--accent-color); margin-bottom: 0.75rem; font-size: 1.25rem; }
.card p { margin-bottom: 0.5rem; }
.card a { color: inherit; display: block; height: 100%; }
.card a h3 { color: var(--accent-color); }
.card a p { color: var(--text-color); }
.footer { text-align: center; padding: 4rem 1rem 2rem; margin-top: 3rem; }
.footer h2 { font-size: 2rem; margin-bottom: 1rem; color: #fff; }
.footer .email a { color: var(--text-color); font-size: 1.1rem; }
.footer .email a:hover { color: var(--accent-color); }


/* Responsive Design */
@media (max-width: 1024px) {
    .nav-links {
        display: none;
    }
    .hamburger {
        display: block;
    }
}

@media (max-width: 768px) {
    .navbar {
        width: 90%;
        padding: 0.2rem 1.5rem;
    }
    .nav-actions {
        display: none;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }
}

/* Keyframes for Animations */
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideInLeft { from { transform: translateX(-50px); opacity: 0; } to { transform: translateX(0); opacity: 1; } }
@keyframes slideInRight { from { transform: translateX(50px); opacity: 0; } to { transform: translateX(0); opacity: 1; } }
@keyframes fadeInUp { from { transform: translateY(20px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
@keyframes fadeInDown { from { transform: translateY(-20px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
