/* ===== RESET ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
    scroll-behavior: smooth;
}

body {
    background: linear-gradient(135deg, #fdfbff, #eef2ff);
    color: #222;
}

/* ===== HEADER ===== */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 18px 8%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(15px);
    z-index: 999;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

.logo {
    font-size: 32px;
    font-weight: 700;
}
.logo span {
    color: #ff3cac;
}

nav a {
    margin-left: 25px;
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: 0.3s;
}
nav a:hover {
    color: #7b2ff7;
}

/* ===== HERO ===== */
.hero {
    min-height: 100vh;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 120px 8%;
    gap: 60px;
}

.hero-text {
    flex: 1;
}
.hero-text h3 {
    color: #7b2ff7;
    font-size: 25px;
}
.hero-text h1 {
    font-size: 65px;
    margin: 15px 0;
}
.hero-text h2 {
    color: #ff3cac;
    margin-bottom: 20px;
}
.hero-text p {
    line-height: 1.9;
    color: #555;
    margin-bottom: 35px;
}

.buttons {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}
.buttons a {
    text-decoration: none;
    padding: 15px 30px;
    border-radius: 50px;
    font-weight: 600;
    transition: 0.4s;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}
.buttons a:first-child {
    background: #7b2ff7;
    color: white;
}
.buttons a:last-child {
    border: 2px solid #7b2ff7;
    color: #7b2ff7;
}
.buttons a:hover {
    transform: translateY(-6px);
    box-shadow: 0 10px 30px rgba(123, 47, 247, 0.3);
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
}
.hero-image img {
    width: 420px;
    height: 420px;
    border-radius: 50%;
    object-fit: cover;
    border: 8px solid white;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.18);
}

/* ===== ABOUT ===== */
.about {
    padding: 100px 8%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 60px;
    background: white;
}

.about-image {
    flex: 1;
    display: flex;
    justify-content: center;
}
.about-image img {
    width: 550px;
    border-radius: 25px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
}

.about-content {
    flex: 1.2;
}
.about-content h4 {
    color: #7b2ff7;
    font-size: 22px;
    margin-bottom: 10px;
}
.about-content h2 {
    font-size: 40px;
    margin-bottom: 25px;
}
.about-content p {
    line-height: 1.9;
    color: #555;
    text-align: justify;
    margin-bottom: 35px;
}

.about-info {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}
.info-card {
    flex: 1;
    min-width: 150px;
    padding: 25px;
    border-radius: 20px;
    text-align: center;
    background: linear-gradient(135deg, #7b2ff7, #ff3cac);
    color: white;
    box-shadow: 0 10px 30px rgba(123, 47, 247, 0.25);
}
.info-card h3 {
    font-size: 35px;
    margin-bottom: 10px;
}

/* ===== SECTION HEADER ===== */
.section-header {
    text-align: center;
    margin-bottom: 60px;
}
.section-header h4 {
    color: #7b2ff7;
    font-size: 22px;
}
.section-header h2 {
    font-size: 42px;
    margin: 10px 0;
}
.section-header p {
    color: #666;
    font-size: 18px;
}

/* ===== SKILLS ===== */
.skills {
    padding: 100px 8%;
    background: #f8f9ff;
}
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}
.skill-card {
    background: white;
    padding: 35px 25px;
    border-radius: 25px;
    text-align: center;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
    transition: 0.4s;
}
.skill-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(123, 47, 247, 0.15);
}
.skill-icon {
    font-size: 45px;
    color: #7b2ff7;
    margin-bottom: 15px;
}
.skill-card h3 {
    font-size: 22px;
    margin-bottom: 10px;
}
.skill-card p {
    color: #666;
    font-size: 14px;
    margin-bottom: 20px;
}
.skill-bar {
    width: 100%;
    height: 8px;
    background: #eee;
    border-radius: 10px;
    overflow: hidden;
}
.skill-progress {
    height: 100%;
    border-radius: 10px;
    background: linear-gradient(90deg, #7b2ff7, #ff3cac);
}

/* ===== EXPERIENCE ===== */
.experience {
    padding: 100px 8%;
    background: white;
}
.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}
.timeline::before {
    content: '';
    position: absolute;
    left: 28px;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(180deg, #7b2ff7, #ff3cac);
}
.timeline-item {
    display: flex;
    gap: 40px;
    margin-bottom: 50px;
    position: relative;
}
.timeline-dot {
    min-width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #7b2ff7;
    margin-top: 5px;
    border: 4px solid white;
    box-shadow: 0 0 0 4px #7b2ff7;
    flex-shrink: 0;
}
.timeline-content {
    background: #f8f9ff;
    padding: 30px;
    border-radius: 20px;
    flex: 1;
}
.timeline-content .timeline-date {
    display: inline-block;
    background: linear-gradient(135deg, #7b2ff7, #ff3cac);
    color: white;
    padding: 5px 18px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 12px;
}
.timeline-content h3 {
    font-size: 24px;
}
.timeline-content h4 {
    color: #7b2ff7;
    font-weight: 500;
    margin-bottom: 12px;
}
.timeline-content p {
    color: #555;
    line-height: 1.7;
    margin-bottom: 15px;
}
.timeline-content ul {
    list-style: none;
    padding: 0;
}
.timeline-content ul li {
    color: #444;
    font-size: 14px;
    margin-bottom: 5px;
}
.timeline-content ul li i {
    color: #7b2ff7;
    margin-right: 10px;
}

/* ===== PROJECTS ===== */
.projects {
    padding: 100px 8%;
    background: #f8f9ff;
}
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}
.project-card {
    background: white;
    padding: 30px;
    border-radius: 25px;
    text-align: center;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
    transition: 0.4s;
}
.project-card:hover {
    transform: translateY(-10px);
}
.project-image {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 32px;
    color: white;
}
.project-card h3 {
    font-size: 20px;
    margin-bottom: 10px;
}
.project-card p {
    color: #666;
    font-size: 14px;
}

/* ===== CONTACT ===== */
.contact {
    padding: 100px 8%;
    background: white;
}
.contact-container {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 60px;
}
.contact-info {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}
.contact-card {
    background: #f8f9ff;
    padding: 25px;
    border-radius: 20px;
    text-align: center;
    transition: 0.3s;
}
.contact-card:hover {
    background: #f0f2ff;
}
.contact-icon {
    font-size: 30px;
    color: #7b2ff7;
    margin-bottom: 10px;
}
.contact-card h3 {
    font-size: 16px;
}
.contact-card p {
    color: #666;
    font-size: 13px;
}
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}
.contact-form input,
.contact-form textarea {
    padding: 15px 20px;
    border: 2px solid #eee;
    border-radius: 15px;
    font-size: 15px;
    transition: 0.3s;
    outline: none;
}
.contact-form input:focus,
.contact-form textarea:focus {
    border-color: #7b2ff7;
}
.contact-form button {
    padding: 16px 35px;
    border: none;
    border-radius: 50px;
    background: linear-gradient(135deg, #7b2ff7, #ff3cac);
    color: white;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    transition: 0.3s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}
.contact-form button:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(123, 47, 247, 0.3);
}

/* ===== FOOTER ===== */
footer {
    padding: 30px 8%;
    text-align: center;
    background: #1a1a2e;
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}
footer p {
    font-size: 14px;
    color: #aaa;
}
.footer-socials {
    display: flex;
    gap: 15px;
}
.footer-socials a {
    color: #aaa;
    font-size: 20px;
    transition: 0.3s;
}
.footer-socials a:hover {
    color: #7b2ff7;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 980px) {
    header {
        flex-direction: column;
        padding: 15px 5%;
    }
    nav {
        margin-top: 10px;
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px 20px;
    }
    nav a {
        margin-left: 0;
    }

    .hero {
        flex-direction: column-reverse;
        text-align: center;
        padding-top: 170px;
        gap: 40px;
    }
    .hero-text h1 {
        font-size: 45px;
    }
    .hero-image img {
        width: 280px;
        height: 280px;
    }
    .buttons {
        justify-content: center;
    }

    .about {
        flex-direction: column;
        text-align: center;
        padding: 60px 5%;
    }
    .about-content p {
        text-align: center;
    }
    .about-image img {
        width: 280px;
    }
    .about-info {
        justify-content: center;
    }

    .contact-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .contact-info {
        grid-template-columns: 1fr 1fr;
    }

    .timeline::before {
        left: 14px;
    }
    .timeline-dot {
        min-width: 14px;
        height: 14px;
    }
}

@media (max-width: 480px) {
    .hero-text h1 {
        font-size: 32px;
    }
    .hero-text h2 {
        font-size: 18px;
    }
    .buttons a {
        padding: 12px 20px;
        font-size: 14px;
    }

    .section-header h2 {
        font-size: 30px;
    }

    .skills-grid {
        grid-template-columns: 1fr;
    }

    .contact-info {
        grid-template-columns: 1fr;
    }

    .info-card {
        min-width: 120px;
        padding: 18px;
    }
    .info-card h3 {
        font-size: 28px;
    }

    footer {
        flex-direction: column;
        text-align: center;
    }
}