* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Inter", sans-serif;
}

:root {
    --primary: #ff2d20;
    --bg: #0f172a;
    --card-bg: #1e293b;
    --text: #f8fafc;
    --text-muted: #94a3b8;
    --border: #334155;
    --tag-bg: #263349;
    --project-tech-bg: #161e2b;
    --navbar-bg: rgba(15, 23, 42, 0.9);
    --transition: all 0.3s ease-in-out;
}


/* Light Theme */

body.light-theme {
    --bg: #f8fafc;
    --card-bg: #ffffff;
    --text: #0f172a;
    --text-muted: #64748b;
    --border: #e2e8f0;
    --tag-bg: #f1f5f9;
    --project-tech-bg: #f1f5f9;
    --navbar-bg: rgba(248, 250, 252, 0.9);
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg);
    color: var(--text);
    line-height: 1.6;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 1.5rem;
}


/* =========================
   Navbar
========================= */

.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background-color: var(--navbar-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid var(--border);
    padding: 1rem 0;
    transition: var(--transition);
}

.navbar .nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.navbar .logo {
    font-family: "Fira Code", monospace;
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text);
    text-decoration: none;
}

.navbar .logo span {
    color: var(--primary);
}

.navbar .nav-menu ul {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.navbar .nav-menu ul a {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
}

.navbar .nav-menu ul a:hover,
.navbar .nav-menu ul a.active {
    color: var(--primary);
}

.navbar-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.theme-toggle,
.nav-toggle {
    border: 0;
    background: transparent;
    color: var(--text);
    cursor: pointer;
}

.theme-toggle {
    width: 38px;
    height: 38px;
    border: 1px solid var(--border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.theme-toggle:hover {
    color: var(--primary);
    border-color: var(--primary);
    transform: rotate(15deg);
}

.nav-toggle {
    display: none;
    font-size: 1.5rem;
}


/* =========================
   Hero
========================= */

.hero {
    padding: 10rem 0 6rem;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.hero .badge {
    display: inline-block;
    background: rgba(255, 45, 32, 0.1);
    color: var(--primary);
    padding: 0.4rem 1rem;
    border-radius: 50px;
    font-size: 0.85rem;
    margin-bottom: 1rem;
    border: 1px solid rgba(255, 45, 32, 0.3);
}

.hero h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.hero h1 .highlight {
    color: var(--primary);
}

.hero h2 {
    font-size: 1.5rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    font-weight: 400;
}

.hero p {
    max-width: 700px;
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.hero-contact-info {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.hero-contact-info span {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}


/* =========================
   Buttons
========================= */

.btn {
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-primary {
    background-color: var(--primary);
    color: #fff;
}

.btn-primary:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

.btn-outline {
    border: 1px solid var(--border);
    color: var(--text);
}

.btn-outline:hover {
    border-color: var(--primary);
    color: var(--primary);
}


/* =========================
   Sections
========================= */

.section {
    padding: 5rem 0;
}

.section-title {
    font-size: 2rem;
    margin-bottom: 3rem;
    position: relative;
}

.section-title::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -8px;
    width: 50px;
    height: 3px;
    background-color: var(--primary);
}


/* =========================
   Cards
========================= */

.about-grid,
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.about-card,
.skill-category {
    background-color: var(--card-bg);
    padding: 2rem;
    border-radius: 10px;
    border: 1px solid var(--border);
    transition: var(--transition);
}

.about-card:hover,
.skill-category:hover,
.project-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 45, 32, 0.5);
}

.card-icon {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 1rem;
}

.about-card h3,
.skill-category h3 {
    margin-bottom: 0.8rem;
}

.about-card p {
    color: var(--text-muted);
}


/* =========================
   Skills
========================= */

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
}

.skill-tags span {
    background-color: var(--tag-bg);
    border: 1px solid var(--border);
    padding: 0.3rem 0.8rem;
    border-radius: 4px;
    font-size: 0.85rem;
    color: var(--text);
}


/* =========================
   Timeline
========================= */

.timeline {
    border-left: 2px solid var(--border);
    padding-left: 2rem;
}

.timeline-item {
    position: relative;
    margin-bottom: 3rem;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-dot {
    position: absolute;
    left: -2.55rem;
    top: 0;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background-color: var(--primary);
    box-shadow: 0 0 0 5px var(--bg);
}

.timeline-date {
    font-size: 0.85rem;
    color: var(--primary);
    font-weight: 600;
}

.timeline-item h3 {
    font-size: 1.25rem;
    margin-top: 0.2rem;
}

.timeline-item h4 {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.timeline-item ul {
    padding-left: 1.2rem;
    color: var(--text-muted);
}

.timeline-item li {
    margin-bottom: 0.4rem;
}


/* =========================
   Projects
========================= */

.project-card {
    background-color: var(--card-bg);
    padding: 2.5rem;
    border-radius: 12px;
    border: 1px solid var(--border);
    height: auto;
    min-height: 330px;
    transition: var(--transition);
}

.project-badge {
    font-size: 0.75rem;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.project-card h3 {
    margin: 0.5rem 0 1rem;
}

.project-desc {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.project-tech {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
}

.project-tech span {
    font-size: 0.8rem;
    background-color: var(--project-tech-bg);
    border: 1px solid var(--border);
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
}

.project-link {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
}

.project-link:hover {
    text-decoration: underline;
}


/* Swiper */

.project-slider {
    padding-bottom: 3.5rem;
}

.swiper-button-next,
.swiper-button-prev {
    color: var(--primary);
}

.swiper-pagination-bullet-active {
    background: var(--primary);
}


/* =========================
   Contact
========================= */

.contact-card p {
    margin-bottom: 1rem;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    color: var(--text-muted);
}

.contact-details a {
    color: var(--text-muted);
    text-decoration: none;
}

.contact-details a:hover {
    color: var(--primary);
}


/* =========================
   Footer
========================= */

footer {
    text-align: center;
    padding: 2rem 0;
    border-top: 1px solid var(--border);
    color: var(--text-muted);
    font-size: 0.9rem;
}


/* =========================
   Responsive
========================= */

@media (max-width: 768px) {
    .navbar .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--card-bg);
        padding: 1.5rem 0;
        border-bottom: 1px solid var(--border);
    }
    .navbar .nav-menu.active {
        display: block;
    }
    .navbar .nav-menu ul {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
    .nav-toggle {
        display: block;
    }
    .hero {
        padding-top: 8rem;
    }
    .hero h1 {
        font-size: 2.2rem;
    }
    .hero h2 {
        font-size: 1.25rem;
    }
    .hero-contact-info {
        flex-direction: column;
        gap: 0.6rem;
    }
    .section {
        padding: 4rem 0;
    }
    .project-card {
        padding: 2rem;
    }
}