@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Outfit:wght@400;500;600;700&display=swap');

:root {
    --primary-color: #0a192f;
    --secondary-color: #64ffda;
    --bg-color: #f4f6f9;
    --card-bg: #ffffff;
    --text-main: #333333;
    --text-muted: #555555;
    --header-h: 80px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    background-color: var(--bg-color);
    color: var(--text-main);
}

h1,
h2,
h3 {
    font-family: 'Outfit', sans-serif;
    color: var(--primary-color);
}

/* Header */
header {
    background: var(--primary-color);
    color: white;
    padding: 0 5%;
    height: var(--header-h);
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

header h1 {
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    gap: 10px;
    color: white;
}

header nav {
    display: flex;
    gap: 25px;
}

header nav a {
    color: #ccd6f6;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.3s ease;
}

header nav a:hover {
    color: var(--secondary-color);
}

.menu-toggle {
    display: none;
    font-size: 1.8rem;
    color: white;
    cursor: pointer;
    z-index: 1001;
}

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }

    header nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        height: 100vh;
        background: #112240;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 40px;
        transition: 0.4s ease-in-out;
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.5);
    }

    header nav.active {
        right: 0;
    }

    header nav a {
        font-size: 1.2rem;
    }
}


/* Hero */
.hero {
    min-height: 60vh;
    background: radial-gradient(circle at top right, #172c4e, #0a192f);
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 40px 10%;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 15px;
    color: white;
}

.hero p {
    font-size: 1.2rem;
    max-width: 700px;
    margin-bottom: 30px;
    color: #8892b0;
}

.btn {
    display: inline-block;
    padding: 14px 30px;
    background: transparent;
    color: var(--secondary-color);
    border: 2px solid var(--secondary-color);
    text-decoration: none;
    font-weight: 600;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.btn:hover {
    background: rgba(100, 255, 218, 0.1);
    transform: translateY(-2px);
}

/* Sections */
section {
    padding: 100px 10%;
}

section h2 {
    font-size: 2.2rem;
    margin-bottom: 40px;
    position: relative;
    display: inline-block;
}

section h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60%;
    height: 4px;
    background: var(--secondary-color);
    border-radius: 2px;
}

@media (max-width: 768px) {
    section {
        padding: 60px 5%;
    }

    .hero {
        min-height: 50vh;
        padding: 40px 5%;
    }

    .hero h1 {
        font-size: 2.2rem;
    }

    .hero p {
        font-size: 1rem;
    }

    section h2 {
        font-size: 1.8rem;
    }
}


/* About Section */
#about p {
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 800px;
    margin-bottom: 20px;
}

/* Skills */
.skills-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 20px;
}

.skill {
    background: var(--card-bg);
    color: var(--primary-color);
    padding: 15px;
    text-align: center;
    border-radius: 8px;
    font-weight: 600;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.skill:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
}

/* Projects */
.project-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.project-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.project {
    padding: 40px;
    background: var(--card-bg);
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    border-top: 5px solid var(--secondary-color);
    height: 100%;
}

.project-card-link:hover .project {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(10, 25, 47, 0.15);
    background: var(--primary-color);
}

.project-card-link:hover .project h3 {
    color: var(--secondary-color);
}

.project-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
}

.project h3 {
    margin-bottom: 0;
    font-size: 1.5rem;
    transition: color 0.3s ease;
}

.project i {
    font-size: 1.8rem;
    color: var(--secondary-color);
    transition: all 0.3s ease;
}

.project-card-link:hover .project i {
    color: white;
    transform: scale(1.1);
}

.project p {
    color: var(--text-muted);
    transition: color 0.3s ease;
}



/* Certificates */
.cert-list {
    list-style: none;
}

.cert-item {
    margin-bottom: 20px;
    transition: transform 0.3s ease;
}

.cert-card-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--card-bg);
    padding: 25px 30px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    text-decoration: none;
    color: var(--primary-color);
    border: 1px solid rgba(0, 0, 0, 0.03);
    transition: all 0.3s ease;
}

.cert-item:hover {
    transform: translateY(-5px);
}

.cert-card-link:hover {
    background: var(--primary-color);
    color: white;
    box-shadow: 0 8px 25px rgba(10, 25, 47, 0.2);
}

.cert-card-link span {
    font-weight: 600;
    font-size: 1.1rem;
}

.cert-card-link i {
    font-size: 1.8rem;
    color: var(--secondary-color);
    transition: color 0.3s ease;
}

.cert-card-link:hover i {
    color: white;
}


/* Contact Section */
#contact {
    background: #0a192f;
    color: white;
    text-align: center;
}

#contact h2 {
    color: white;
}

.contact-info {
    margin-top: 30px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    align-items: center;
}

.contact-info a {
    color: var(--secondary-color);
    text-decoration: none;
    font-size: 1.1rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Footer */
footer {
    background: #020c1b;
    color: #8892b0;
    padding: 80px 10% 40px;
    font-size: 0.95rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1.5fr;
    gap: 50px;
    margin-bottom: 50px;
}

.footer-section h4 {
    color: white;
    font-family: 'Outfit', sans-serif;
    font-size: 1.2rem;
    margin-bottom: 25px;
    position: relative;
}

.footer-section h4::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 30px;
    height: 2px;
    background: var(--secondary-color);
}

.footer-section p {
    line-height: 1.8;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: #8892b0;
    text-decoration: none;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-links a:hover {
    color: var(--secondary-color);
    padding-left: 5px;
}

.footer-socials {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.footer-socials a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(100, 255, 218, 0.1);
    color: var(--secondary-color);
    display: flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid rgba(100, 255, 218, 0.2);
}

.footer-socials a:hover {
    background: var(--secondary-color);
    color: var(--primary-color);
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 0.85rem;
}

@media (max-width: 992px) {
    .footer-content {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    footer {
        padding: 60px 5% 30px;
        text-align: center;
    }

    .footer-section h4::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .footer-links a {
        justify-content: center;
    }

    .footer-socials {
        justify-content: center;
    }
}