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

:root {
    --navy: #0A192F;
    --charcoal: #1E1E1E;
    --slate: #2D3748;
    --teal: #00B8B5;
    --azure: #3FA9F5;
    --light-slate: #8892B0;
    --lightest-slate: #CCD6F6;
    --white: #E6F1FF;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
    background-color: var(--navy);
    color: var(--light-slate);
    line-height: 1.6;
    overflow-x: hidden;
}

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

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background-color: rgba(10, 25, 47, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(0, 184, 181, 0.1);
}

.navbar.scrolled {
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.7);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-brand {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--teal);
    letter-spacing: 2px;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-menu a {
    color: var(--lightest-slate);
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.3s ease;
    position: relative;
}

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

.nav-menu a:hover {
    color: var(--teal);
}

.nav-menu a:hover::after {
    width: 100%;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    padding: 0 2rem;
}

.hero-content {
    text-align: center;
    animation: fadeInUp 1s ease-out;
}

.hero-name {
    font-size: 4rem;
    color: var(--lightest-slate);
    margin-bottom: 1rem;
    font-weight: 700;
    animation: fadeInDown 0.8s ease-out;
}

.hero-title {
    font-size: 1.8rem;
    color: var(--teal);
    margin-bottom: 1rem;
    min-height: 60px;
    font-weight: 500;
}

.cursor {
    animation: blink 1s infinite;
}

.hero-location {
    font-size: 1.2rem;
    color: var(--light-slate);
    margin-bottom: 2rem;
}

.hero-links {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.social-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background-color: rgba(0, 184, 181, 0.1);
    border: 1px solid var(--teal);
    border-radius: 5px;
    color: var(--teal);
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 500;
}

.social-link:hover {
    background-color: rgba(0, 184, 181, 0.2);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 184, 181, 0.2);
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: var(--light-slate);
    animation: bounce 2s infinite;
}

.scroll-arrow {
    width: 20px;
    height: 20px;
    border-right: 2px solid var(--teal);
    border-bottom: 2px solid var(--teal);
    transform: rotate(45deg);
}

/* Sections */
.section {
    padding: 6rem 0;
    position: relative;
}

.section-dark {
    background-color: var(--charcoal);
}

.section-title {
    font-size: 2.5rem;
    color: var(--lightest-slate);
    margin-bottom: 3rem;
    text-align: center;
    position: relative;
    display: inline-block;
    width: 100%;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: linear-gradient(90deg, var(--teal), var(--azure));
}

/* About Section */
.about-content {
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.1rem;
    line-height: 1.8;
}

.about-content p {
    margin-bottom: 1.5rem;
    color: var(--light-slate);
}

/* Skills Section */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.skill-category {
    background-color: rgba(45, 55, 72, 0.5);
    padding: 2rem;
    border-radius: 10px;
    border: 1px solid rgba(0, 184, 181, 0.2);
    transition: all 0.3s ease;
}

.skill-category:hover {
    transform: translateY(-5px);
    border-color: var(--teal);
    box-shadow: 0 10px 30px rgba(0, 184, 181, 0.2);
}

.skill-category h3 {
    color: var(--teal);
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.skill-tag {
    background-color: rgba(0, 184, 181, 0.1);
    color: var(--lightest-slate);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    border: 1px solid rgba(0, 184, 181, 0.3);
    transition: all 0.3s ease;
}

.skill-tag:hover {
    background-color: rgba(0, 184, 181, 0.2);
    border-color: var(--teal);
    transform: scale(1.05);
}

/* Projects Section */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.project-card {
    background-color: var(--slate);
    padding: 2rem;
    border-radius: 10px;
    border: 1px solid rgba(0, 184, 181, 0.2);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.project-card:hover {
    transform: translateY(-10px);
    border-color: var(--teal);
    box-shadow: 0 20px 40px rgba(0, 184, 181, 0.3);
}

.project-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.project-header h3 {
    color: var(--lightest-slate);
    font-size: 1.4rem;
    flex: 1;
}

.project-link {
    color: var(--teal);
    transition: all 0.3s ease;
}

.project-link:hover {
    color: var(--azure);
    transform: scale(1.2);
}

.project-description {
    color: var(--light-slate);
    margin-bottom: 1rem;
    line-height: 1.6;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.project-tech span {
    background-color: rgba(63, 169, 245, 0.1);
    color: var(--azure);
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.85rem;
    border: 1px solid rgba(63, 169, 245, 0.3);
}

.project-achievements {
    list-style: none;
    margin-top: auto;
}

.project-achievements li {
    color: var(--light-slate);
    padding-left: 1.5rem;
    margin-bottom: 0.5rem;
    position: relative;
    font-size: 0.95rem;
}

.project-achievements li::before {
    content: '▹';
    position: absolute;
    left: 0;
    color: var(--teal);
    font-size: 1.2rem;
}

/* Certifications Section */
.cert-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.cert-card {
    background-color: rgba(45, 55, 72, 0.5);
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    border: 1px solid rgba(0, 184, 181, 0.2);
    transition: all 0.3s ease;
}

.cert-card:hover {
    transform: translateY(-5px);
    border-color: var(--teal);
    box-shadow: 0 10px 20px rgba(0, 184, 181, 0.2);
}

.cert-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.cert-card h4 {
    color: var(--teal);
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.cert-card p {
    color: var(--light-slate);
    font-size: 0.9rem;
}

/* Contact Section */
.contact-content {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.contact-text {
    font-size: 1.1rem;
    color: var(--light-slate);
    margin-bottom: 2rem;
    line-height: 1.8;
}

.contact-links {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.contact-button {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    background-color: transparent;
    border: 2px solid var(--teal);
    border-radius: 5px;
    color: var(--teal);
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.contact-button:hover {
    background-color: rgba(0, 184, 181, 0.1);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 184, 181, 0.3);
}

/* Footer */
.footer {
    background-color: var(--charcoal);
    padding: 2rem 0;
    text-align: center;
    border-top: 1px solid rgba(0, 184, 181, 0.2);
}

.footer p {
    color: var(--light-slate);
    margin-bottom: 0.5rem;
}

.footer-tech {
    font-size: 0.9rem;
    color: var(--teal);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-name {
        font-size: 2.5rem;
    }

    .hero-title {
        font-size: 1.3rem;
    }

    .nav-menu {
        gap: 1rem;
        font-size: 0.85rem;
    }

    .section {
        padding: 4rem 0;
    }

    .section-title {
        font-size: 2rem;
    }

    .projects-grid,
    .skills-grid,
    .cert-grid {
        grid-template-columns: 1fr;
    }

    .contact-links {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .hero-name {
        font-size: 2rem;
    }

    .hero-title {
        font-size: 1.1rem;
    }

    .nav-menu {
        flex-direction: column;
        gap: 0.5rem;
    }

    .hero-links {
        flex-direction: column;
    }
}
