@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@600;700&family=Poppins:wght@300;400;500;600&display=swap');

:root {
    --primary: #ff5b57;
    --secondary: #7b2cbf;
    --bg-light: #fff1d6;
    --bg-dark: #ff5b57;
    --text-dark: #1c1c1c;
    --text-light: #fff;
    --text-muted: #555;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    background: var(--bg-dark);
    padding: 40px 20px;
    color: var(--text-dark);
}

/* ================= Main Wrapper ================= */
.landing-wrapper {
    max-width: 1380px;
    margin: auto;
    background: var(--bg-light);
    border-radius: 10px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.25);
    overflow: hidden;
    padding: 40px 80px;
    position: relative;
}

/* ================= General Elements ================= */
.btn {
    background: var(--primary);
    color: var(--text-light);
    padding: 10px 22px;
    border-radius: 25px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    display: inline-block;
    border: none;
    cursor: pointer;
    transition: transform 0.3s, background-color 0.3s;
}
.btn:hover {
    transform: scale(1.05);
    background: #e04a46;
}

section {
    padding: 60px 0;
    border-bottom: 1px solid #ffe6b9;
}
section:last-of-type {
    border-bottom: none;
}

.section-title {
    font-family: 'Playfair Display', serif;
    font-size: 38px;
    text-align: center;
    margin-bottom: 40px;
    color: var(--text-dark);
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
}
.section-title::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 3px;
    background: var(--primary);
    transition: width 0.4s ease-in-out;
}
.section-title:hover::after {
    width: 100%;
}


/* ================= NAV ================= */
.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
}
.nav .logo {
    font-family: 'Playfair Display', serif;
    font-size: 24px;
    font-weight: 700;
}
.nav ul {
    list-style: none;
    display: flex;
    gap: 25px;
}
.nav ul li a {
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
    color: var(--text-dark);
    transition: color 0.3s;
}
.nav ul li a:hover {
    color: var(--primary);
}

/* ================= HERO (Home) ================= */
.hero {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 40px;
    align-items: center;
    padding: 20px 0;
}
.badge {
    font-size: 12px;
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 15px;
}
.hero h1 {
    font-family: 'Playfair Display', serif;
    font-size: 48px;
    line-height: 1.15;
    color: var(--text-dark);
    margin-bottom: 20px;
}
.hero .typing-text {
    font-size: 18px;
    color: var(--text-muted);
    margin-bottom: 15px;
    min-height: 28px;
}
.hero .typing {
    color: var(--primary);
    font-weight: 600;
}
.hero .summary {
    font-size: 15px;
    color: var(--text-muted);
    max-width: 450px;
    margin-bottom: 25px;
}

/* ================= IMAGE CARD (for Hero) ================= */
.image-card {
    position: relative;
    background: #fff;
    padding: 15px;
    border-radius: 12px;
    border: 4px solid var(--primary);
}
.image-card img {
    width: 100%;
    border-radius: 8px;
    display: block;
}
.circle {
    position: absolute;
    top: -30px;
    right: -30px;
    width: 60px;
    height: 60px;
    background: var(--primary);
    border-radius: 50%;
    border: 4px solid var(--text-dark);
}
.triangle {
    position: absolute;
    bottom: 20px;
    left: -25px;
    width: 0;
    height: 0;
    border-left: 25px solid transparent;
    border-right: 25px solid transparent;
    border-top: 40px solid var(--secondary);
}
.lines {
    position: absolute;
    bottom: -15px;
    right: -10px;
    display: flex;
    gap: 6px;
}
.lines span {
    width: 6px;
    height: 60px;
    background: var(--secondary);
    border-radius: 5px;
    transform: rotate(20deg);
}

/* ================= ABOUT SECTION ================= */
#about {
    background: var(--bg-light); /* Match wrapper background */
    padding: 80px 0;
}
.about-card {
    margin: auto;
    background: var(--primary); /* dark orange */
    border-radius: 18px;
    padding: 70px 60px;
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 60px;
    align-items: center;
}
.about-badge {
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-light);
    letter-spacing: 1px;
    margin-bottom: 18px;
    text-transform: uppercase;
    opacity: 0.85;
}
.about-content h2 {
    font-family: 'Playfair Display', serif;
    font-size: 42px;
    margin-bottom: 26px;
    color: var(--text-light);
}
.about-list {
    list-style: none;
    max-width: 520px;
}
.about-list li {
    font-size: 15.5px;
    line-height: 1.8;
    color: var(--text-light);
    margin-bottom: 18px;
    padding-left: 26px;
    position: relative;
    opacity: 0.95;
}
.about-list li::before {
    content: "✔";
    position: absolute;
    left: 0;
    top: 2px;
    color: var(--text-light);
    font-size: 14px;
    font-weight: 600;
}
.about-image {
    background: #ffffff;
    border-radius: 16px;
    padding: 25px;
    text-align: center;
}
.about-image img {
    width: 100%;
    max-width: 280px;
    border-radius: 14px;
    object-fit: cover;
}


/* ================= SKILLS & STATS SECTION ================= */
.skills-grid, .stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}
.skill-card, .stats-card {
    background: #fff;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: background-color 0.3s, color 0.3s, transform 0.3s;
}
.skill-card h3, .stats-card h3 {
    font-family: 'Playfair Display', serif;
    margin-bottom: 15px;
    border-bottom: 2px solid var(--primary);
    padding-bottom: 10px;
    transition: color 0.3s, border-color 0.3s;
}
.skill-card ul {
    list-style: none;
}
.skill-card ul li {
    margin-bottom: 8px;
    color: var(--text-muted);
    transition: color 0.3s;
}

.skill-card:hover, .stats-card:hover {
    background-color: var(--primary);
    color: var(--text-light);
    transform: translateY(-10px);
}
.skill-card:hover h3, .stats-card:hover h3 {
    color: var(--text-light);
    border-bottom-color: var(--text-light);
}
.skill-card:hover ul li, .stats-card:hover .info span, .stats-card:hover .progress-bar span {
    color: var(--text-light);
}
.stats-card .bars {
    margin-bottom: 15px;
}
.stats-card .info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 5px;
}
.stats-card .info span {
    font-weight: 500;
    transition: color 0.3s;
}
.stats-card .line {
    height: 5px;
    width: 100%;
    background: #ddd;
    position: relative;
}
.stats-card .line::before {
    content: '';
    position: absolute;
    height: 100%;
    left: 0;
    top: 0;
    background: var(--primary);
}
.stats-card:hover .line {
    background: rgba(255,255,255,0.3);
}
.stats-card:hover .line::before {
    background: var(--text-light);
}

.js::before { width: 70%; }
.php::before { width: 30%; }
.mysql::before { width: 70%; }
.java::before { width: 75%; }
.nodejs::before { width: 70%; }
.expressjs::before { width: 60%; }
.mongodb::before { width: 70%; }
.react::before { width: 50%; }


/* ================= PROJECTS SECTION ================= */
.projects-carousel {
    padding: 0 40px;
}
.project-card {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    margin: 0 10px;
    transition: background-color 0.3s, transform 0.3s;
}
.project-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}
.project-card .box {
    padding: 20px;
}
.project-card .text {
    font-family: 'Playfair Display', serif;
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--text-dark);
    transition: color 0.3s;
}
.project-card p {
    font-size: 14px;
    color: var(--text-muted);
    transition: color 0.3s;
}
.project-card:hover {
    background-color: var(--primary);
    transform: translateY(-10px);
}
.project-card:hover .text,
.project-card:hover p {
    color: var(--text-light);
}
.owl-dots {
    text-align: center;
    margin-top: 30px;
}
.owl-dot {
    height: 13px;
    width: 13px;
    margin: 0 5px;
    outline: none!important;
    border-radius: 50%;
    border: 2px solid var(--primary)!important;
    transition: all 0.3s ease;
}
.owl-dot.active {
    background: var(--primary)!important;
}

/* ================= CONTACT SECTION ================= */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    align-items: center;
}
.contact-details-card, .contact-form {
    background: #fff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    height: 100%;
}
.contact-details-card {
    transition: background-color 0.3s, color 0.3s, transform 0.3s;
}
.contact-details-card h3 {
    font-family: 'Playfair Display', serif;
    margin-bottom: 15px;
    border-bottom: 2px solid var(--primary);
    padding-bottom: 10px;
    transition: color 0.3s, border-color 0.3s;
}
.contact-details-card p {
    color: var(--text-muted);
    margin-bottom: 20px;
    transition: color 0.3s;
}
.contact-details-card .info-item {
    margin-bottom: 10px;
    color: var(--text-muted);
    transition: color 0.3s;
}
.contact-details-card .info-item strong {
    color: var(--text-dark);
    transition: color 0.3s;
}
.contact-details-card:hover {
    background-color: var(--primary);
    color: var(--text-light);
    transform: translateY(-10px);
}
.contact-details-card:hover h3 {
    color: var(--text-light);
    border-bottom-color: var(--text-light);
}
.contact-details-card:hover p,
.contact-details-card:hover .info-item,
.contact-details-card:hover .info-item strong,
.contact-details-card:hover a {
    color: var(--text-light);
}

.contact-form .field {
    width: 100%;
    margin-bottom: 15px;
}
.contact-form input, .contact-form textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: 'Poppins', sans-serif;
}
.contact-form textarea {
    resize: vertical;
    min-height: 120px;
}

/* ================= FOOTER ================= */
.footer {
    margin-top: 40px;
    text-align: center;
}
.social-links a {
    color: var(--text-dark);
    font-size: 24px;
    margin: 0 10px;
    transition: color 0.3s;
}
.social-links a:hover {
    color: var(--primary);
}
.footer p {
    margin-top: 15px;
    font-size: 13px;
    color: #444;
}

/* ================= RESPONSIVE ================= */
@media (max-width: 900px) {
    .landing-wrapper {
        padding: 30px;
    }
    .hero {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .hero .summary {
        margin-left: auto;
        margin-right: auto;
    }
    .image-card {
        max-width: 400px;
        margin: 0 auto;
    }
    .nav {
        flex-direction: column;
        gap: 20px;
    }
    .about-card {
        grid-template-columns: 1fr;
        padding: 50px 35px;
    }
    .about-content h2 {
        font-size: 34px;
    }
    .about-image {
        margin-top: 30px;
    }
    .contact-grid {
        grid-template-columns: 1fr;
    }
}
@media (max-width: 600px) {
    body {
        padding: 20px 10px;
    }
    .landing-wrapper {
        padding: 20px;
    }
    .nav ul {
        gap: 15px;
        flex-wrap: wrap;
        justify-content: center;
    }
}
