/* =========================
   GLOBAL VARIABLES
========================= */

:root {
    --primary-font: 'Poppins', sans-serif;

    --bg-color: #ffffff;
    --text-color: #222222;
    --subtext-color: #555555;

    --primary-color: #6c63ff;
    --secondary-color: #f5f5f5;
    --border-color: #e0e0e0;

    --card-bg: #ffffff;
    --shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
}

/* =========================
   RESET & BASE
========================= */

*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--primary-font);
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
}

/* =========================
   UTILITIES
========================= */

.hidden {
    display: none !important;
}

/* =========================
   REUSABLE CLASSES
========================= */

.container {
    max-width: 1200px;
    margin-inline: auto;
    padding-inline: 20px;
}

.section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 50px;
    position: relative;
}

.section-title::after {
    content: "";
    width: 60px;
    height: 4px;
    background: var(--primary-color);
    display: block;
    margin: 15px auto 0;
    border-radius: 10px;
}

/* =========================
   BUTTONS & LINKS
========================= */

.btn,
button {
    cursor: pointer;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 500;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

a:focus-visible,
button:focus-visible {
    outline: 3px solid var(--primary-color);
    outline-offset: 3px;
}

.primary-btn {
    background: var(--primary-color);
    color: #ffffff;
    border: none;
}

.primary-btn:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

.secondary-btn {
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

.secondary-btn:hover {
    background: var(--primary-color);
    color: #ffffff;
}

/* =========================
   HEADER
========================= */

.header {
    position: sticky;
    top: 0;
    background: var(--bg-color);
    z-index: 999;
    border-bottom: 1px solid var(--border-color);
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.logo {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    position: relative;
}

.nav-links a::after {
    content: "";
    width: 0;
    height: 2px;
    background: var(--primary-color);
    position: absolute;
    left: 0;
    bottom: -5px;
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

.theme-btn {
    background: none;
    border: none;
    font-size: 1.2rem;
}

/* =========================
   HERO
========================= */

.hero {
    min-height: calc(100vh - 70px);
    display: flex;
    align-items: center;
}

.hero-content {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    align-items: center;
}

.hero-text h1 {
    font-size: 3rem;
}

.hero-text h1 span {
    color: var(--primary-color);
}

.hero-text h2 {
    font-size: 1.5rem;
    color: var(--subtext-color);
    margin: 10px 0;
}

.hero-text p {
    margin: 20px 0;
    max-width: 500px;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

/* =========================
   AVATAR
========================= */

.hero-image img {
    width: 320px;
    height: 320px;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 50%;
    margin: auto;
    display: block;
    box-shadow: var(--shadow);
}

/* =========================
   ABOUT
========================= */

.about-text {
    max-width: 800px;
    margin: auto;
    text-align: center;
    font-size: 1.1rem;
}

.about-info {
    margin-top: 40px;
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}

/* =========================
   SKILLS
========================= */

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 25px;
}

.skill-card {
    background: var(--card-bg);
    padding: 20px;
    text-align: center;
    border-radius: 15px;
    box-shadow: var(--shadow);
    transition: transform 0.4s ease;
    position: relative;
    overflow: hidden;
}

.skill-card:hover {
    transform: translateY(-8px) scale(1.03);
}

/* =========================
   PORTFOLIO
========================= */

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
}

.portfolio-item {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.portfolio-item img {
    width: 100%;
    height: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.portfolio-item:hover img {
    transform: scale(1.05);
}

/* =========================
   LOAD MORE
========================= */

.load-more-wrapper {
    text-align: center;
    margin-top: 40px;
}

/* =========================
   EDUCATION
========================= */

.education-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
}

.edu-card {
    background: var(--card-bg);
    padding: 25px;
    border-radius: 15px;
    box-shadow: var(--shadow);
}

/* =========================
   CONTACT
========================= */

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 40px;
    align-items: center;
}

.form-container iframe {
    width: 100%;
    border-radius: 12px;
    box-shadow: var(--shadow);
}

/* =========================
   FOOTER
========================= */

.footer {
    background: var(--secondary-color);
    padding: 20px 0;
    text-align: center;
    border-top: 1px solid var(--border-color);
}

/* =========================
   BACK TO TOP
========================= */

#backToTop {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    border: none;
    background: var(--primary-color);
    color: #ffffff;
    font-size: 1.5rem;
    box-shadow: var(--shadow);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

#backToTop.show {
    opacity: 1;
    visibility: visible;
}
