@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

:root {
    --primary-color: #3a6cf4;
    --secondary-color: #601cfc;
    --accent-color: #4e9eff;
    --dark-bg: #1a1a2e;
    --darker-bg: #16213e;
    --light-bg: #f8f9fa;
    --text-dark: #333;
    --text-light: #fff;
    --card-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    font-family: 'Poppins', sans-serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    background-color: var(--light-bg);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

header {
    background-color: rgba(255, 255, 255, 0.98);
    width: 100%;
    position: fixed;
    z-index: 999;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.2rem 10%;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.05);
    backdrop-filter: blur(10px);
    transition: var(--transition);
}

.logo {
    text-decoration: none;
    color: var(--primary-color);
    text-transform: capitalize;
    font-weight: 700;
    font-size: 1.8em;
    transition: var(--transition);
}

.logo:hover {
    color: var(--secondary-color);
}

.logo-dot {
    color: var(--accent-color);
    font-size: 1.2em;
}

.navigation {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.navigation a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    font-size: 1em;
    position: relative;
    transition: var(--transition);
}

.navigation a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--primary-color);
    transition: var(--transition);
}

.navigation a:hover {
    color: var(--primary-color);
}

.navigation a:hover::after {
    width: 100%;
}

section {
    padding: 100px 10%;
}

.main {
    width: 100%;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, var(--darker-bg) 0%, var(--dark-bg) 100%);
    background-size: cover;
    background-position: center;
    position: relative;
}

.main::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url(images/portfolio-background-.png);
    background-size: cover;
    background-position: center;
    opacity: 0.15;
    z-index: 0;
}

.main-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
}

.hero-text {
    animation: fadeInUp 1s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.greeting {
    color: var(--accent-color);
    font-size: 1.2em;
    font-weight: 400;
    margin-bottom: 0.5rem;
    letter-spacing: 0.5px;
}

.hero-name {
    color: var(--text-light);
    font-size: 4em;
    font-weight: 800;
    margin-bottom: 0.3rem;
    line-height: 1.2;
}

.hero-title {
    color: var(--accent-color);
    font-size: 2.5em;
    font-weight: 600;
    margin-bottom: 1.5rem;
    line-height: 1.3;
}

.hero-description {
    color: rgba(255, 255, 255, 0.85);
    font-size: 1.1em;
    font-weight: 300;
    max-width: 600px;
    line-height: 1.8;
    margin-bottom: 2.5rem;
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.main-btn {
    color: var(--text-light);
    text-decoration: none;
    font-size: 1em;
    font-weight: 600;
    display: inline-block;
    padding: 1rem 2.5rem;
    letter-spacing: 0.5px;
    border-radius: 50px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.primary-btn {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    box-shadow: 0 4px 15px rgba(58, 108, 244, 0.4);
}

.primary-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 25px rgba(58, 108, 244, 0.6);
}

.secondary-btn {
    background: transparent;
    border: 2px solid var(--accent-color);
    color: var(--accent-color);
}

.secondary-btn:hover {
    background: var(--accent-color);
    color: var(--text-light);
    transform: translateY(-3px);
}

.social-icons {
    display: flex;
    gap: 1.5rem;
}

.social-icons a {
    color: var(--text-light);
    font-size: 1.5em;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.social-icons a:hover {
    color: var(--accent-color);
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-5px);
}

.about {
    background: var(--light-bg);
    text-align: center;
}

.about-content {
    max-width: 900px;
    margin: 0 auto;
}

.about-text {
    margin-top: 2rem;
    text-align: left;
}

.about-text p {
    font-size: 1.1em;
    line-height: 1.9;
    margin-bottom: 1.5rem;
    color: var(--text-dark);
}

.title {
    display: flex;
    justify-content: center;
    color: var(--primary-color);
    font-size: 2.8em;
    font-weight: 800;
    margin-bottom: 1rem;
    position: relative;
    padding-bottom: 1rem;
}

.title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 2px;
}

.content {
    display: flex;
    justify-content: center;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 2rem;
    margin-top: 3rem;
}

.skills {
    background: #fff;
}

.card {
    background-color: #fff;
    width: 320px;
    box-shadow: var(--card-shadow);
    border-radius: 15px;
    padding: 2.5rem 2rem;
    transition: var(--transition);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.skill-card .icon {
    color: var(--primary-color);
    font-size: 4em;
    text-align: center;
    margin-bottom: 1rem;
    transition: var(--transition);
}

.skill-card:hover .icon {
    transform: scale(1.1);
    color: var(--secondary-color);
}

.info {
    text-align: center;
}

.info h3 {
    color: var(--text-dark);
    font-size: 1.3em;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.info p {
    color: #666;
    font-size: 0.95em;
    font-weight: 400;
}

.projects {
    background: linear-gradient(135deg, var(--darker-bg) 0%, var(--dark-bg) 100%);
}

.projects .title {
    color: var(--text-light);
}

.projects .content {
    margin-top: 2rem;
}

.project-card {
    background-color: #fff;
    border: none;
    width: 380px;
    overflow: hidden;
    border-radius: 15px;
    transition: var(--transition);
    box-shadow: var(--card-shadow);
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

.project-image {
    position: relative;
    overflow: hidden;
    height: 250px;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.project-card:hover .project-image img {
    transform: scale(1.1);
}

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(58, 108, 244, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

.project-card:hover .project-overlay {
    opacity: 1;
}

.project-link {
    color: var(--text-light);
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1em;
    padding: 0.8rem 1.5rem;
    border: 2px solid var(--text-light);
    border-radius: 30px;
    transition: var(--transition);
}

.project-link:hover {
    background: var(--text-light);
    color: var(--primary-color);
}

.project-info {
    padding: 1.8rem;
}

.project-title {
    font-size: 1.3em;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.8rem;
    line-height: 1.4;
}

.project-description {
    font-size: 0.95em;
    color: #666;
    line-height: 1.7;
    margin-bottom: 1.2rem;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tag {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--text-light);
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.8em;
    font-weight: 500;
}

.contact {
    background: var(--light-bg);
    text-align: center;
}

.contact-subtitle {
    font-size: 1.1em;
    color: #666;
    max-width: 600px;
    margin: 0 auto 3rem;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.contact-card .icon {
    font-size: 3.5em;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.contact-card h3 {
    color: var(--text-dark);
    margin-bottom: 0.8rem;
    font-size: 1.2em;
}

.contact-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
}

.contact-link:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}

.footer {
    background: linear-gradient(135deg, var(--darker-bg) 0%, var(--dark-bg) 100%);
    color: var(--text-light);
    padding: 3rem 10%;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
}

.footer-left {
    flex: 1;
}

.footer-title {
    font-size: 1.1em;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.footer-title span {
    color: var(--accent-color);
    font-weight: 700;
}

.footer-subtitle {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95em;
    font-weight: 300;
}

.footer-right .social-icons a {
    font-size: 1.3em;
    width: 45px;
    height: 45px;
}

@media (max-width: 1200px) {
    section {
        padding: 80px 5%;
    }

    header {
        padding: 1.2rem 5%;
    }
}

@media (max-width: 1023px) {
    .hero-name {
        font-size: 3em;
    }

    .hero-title {
        font-size: 2em;
    }

    .title {
        font-size: 2.2em;
    }

    .navigation {
        gap: 1rem;
    }

    .navigation a {
        font-size: 0.95em;
    }
}

@media (max-width: 768px) {
    header {
        padding: 1rem 5%;
    }

    .navigation {
        flex-wrap: wrap;
        gap: 0.8rem;
    }

    .hero-name {
        font-size: 2.5em;
    }

    .hero-title {
        font-size: 1.6em;
    }

    .hero-description {
        font-size: 1em;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: flex-start;
    }

    .main-btn {
        width: 100%;
        text-align: center;
    }

    .title {
        font-size: 2em;
    }

    section {
        padding: 60px 5%;
    }

    .content {
        flex-direction: column;
        align-items: center;
    }

    .card,
    .project-card {
        width: 100%;
        max-width: 400px;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
    }

    .footer-left,
    .footer-right {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .logo {
        font-size: 1.5em;
    }

    .navigation {
        gap: 0.5rem;
    }

    .navigation a {
        font-size: 0.85em;
    }

    .hero-name {
        font-size: 2em;
    }

    .hero-title {
        font-size: 1.3em;
    }

    .greeting {
        font-size: 1em;
    }

    .hero-description {
        font-size: 0.95em;
    }

    .title {
        font-size: 1.8em;
    }

    .social-icons a {
        width: 40px;
        height: 40px;
        font-size: 1.2em;
    }

    .footer .social-icons a {
        width: 40px;
        height: 40px;
    }
}
