* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    background: #0b0f19;
    color: #ffffff;
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
}

/* Navbar */

.navbar {
    width: 100%;
    padding: 25px 8%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
    background: rgba(11, 15, 25, 0.9);
    
}

.hero {
    min-height: 100vh;
    padding: 120px 8% 80px;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 60px;
}

.hero-content {
    max-width: 650px;
}

.hero-image {
    width: 380px;
    height: 480px;

    overflow: hidden;
    border-radius: 20px;
}

.hero-image img {
    width: 100%;
    height: 100%;

    object-fit: cover;
    object-position: center top;

    display: block;
}

.logo {
    font-size: 24px;
    font-weight: bold;
}

.navbar nav {
    display: flex;
    gap: 30px;
}

.navbar nav a {
    color: #b8becb;
    transition: 0.3s;
}

.navbar nav a:hover {
    color: #ffffff;
}


/* Hero */

.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 120px 8% 80px;
}

.hero-content {
    max-width: 850px;
}

.small-title {
    color: #4f8cff;
    font-size: 20px;
    margin-bottom: 15px;
}

.hero h1 {
    font-size: clamp(45px, 7vw, 85px);
    line-height: 1.1;
    margin-bottom: 15px;
}

.hero h2 {
    font-size: 32px;
    color: #4f8cff;
    margin-bottom: 25px;
}

.hero-description {
    max-width: 700px;
    color: #aab1bf;
    font-size: 18px;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    margin-top: 35px;
}

.btn {
    padding: 13px 25px;
    border-radius: 8px;
    transition: 0.3s;
}

.primary {
    background: #4f8cff;
}

.primary:hover {
    transform: translateY(-3px);
}

.secondary {
    border: 1px solid #4f8cff;
    color: #4f8cff;
}


/* Sections */

.section {
    padding: 100px 8%;
}

.section-title {
    margin-bottom: 50px;
}

.section-title span {
    color: #4f8cff;
    font-size: 15px;
}

.section-title h2 {
    font-size: 40px;
    margin-top: 5px;
}


/* About */

.about-content {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 60px;
}

.about-text p {
    color: #aab1bf;
    margin-bottom: 20px;
    font-size: 17px;
}

.about-info {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.about-info div {
    padding-bottom: 15px;
    border-bottom: 1px solid #252b38;
}

.about-info span {
    display: block;
    color: #7f8796;
    font-size: 14px;
}

.about-info strong {
    font-size: 16px;
}


/* Skills */

.skills-section {
    background: #0e1420;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.skill-card {
    padding: 30px;
    background: #151b28;
    border: 1px solid #252c3a;
    border-radius: 12px;
}

.skill-card h3 {
    margin-bottom: 20px;
    color: #4f8cff;
}

.skill-card p {
    color: #aab1bf;
    margin-bottom: 8px;
}


/* Experience */

.timeline {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.experience-card {
    padding: 30px;
    border-left: 3px solid #4f8cff;
    background: #111722;
}

.experience-card .date {
    color: #4f8cff;
    font-size: 14px;
}

.experience-card h3 {
    margin-top: 8px;
    font-size: 24px;
}

.experience-card h4 {
    color: #aab1bf;
    margin: 5px 0 15px;
}

.experience-card p {
    color: #aab1bf;
    margin-bottom: 8px;
}


/* Projects */

.projects-section {
    background: #0e1420;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
}

.project-card {
    overflow: hidden;
    border-radius: 12px;
    background: #151b28;
    border: 1px solid #252c3a;
    transition: 0.3s;
}

.project-card:hover {
    transform: translateY(-7px);
    border-color: #4f8cff;
}

.project-image {
    height: 230px;
    background: #20283a;
    display: flex;
    align-items: center;
    justify-content: center;
}

.project-image span {
    font-size: 35px;
    font-weight: bold;
    color: #4f8cff;
}

.project-content {
    padding: 25px;
}

.project-content h3 {
    font-size: 25px;
    margin-bottom: 10px;
}

.project-content p {
    color: #aab1bf;
}

.tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 20px 0;
}

.tech-stack span {
    padding: 5px 10px;
    border-radius: 5px;
    background: #20283a;
    color: #aab1bf;
    font-size: 13px;
}

.project-links {
    display: flex;
    gap: 20px;
}

.project-links a {
    color: #4f8cff;
}


/* Education */

.education-card {
    max-width: 700px;
    padding: 30px;
    border: 1px solid #252c3a;
    border-radius: 12px;
    background: #151b28;
}

.education-card h3 {
    font-size: 25px;
}

.education-card p {
    color: #4f8cff;
}

.education-card span {
    color: #7f8796;
}

.education-card ul {
    margin-top: 20px;
    padding-left: 20px;
    color: #aab1bf;
}


/* Training */

.training-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.training-card {
    padding: 25px;
    background: #151b28;
    border-radius: 10px;
    border: 1px solid #252c3a;
}

.training-card h3 {
    color: #4f8cff;
    margin-bottom: 10px;
}

.training-card p {
    color: #aab1bf;
}


/* Contact */

.contact-section {
    text-align: center;
}

.contact-section > p {
    color: #aab1bf;
    max-width: 600px;
    margin: auto;
}

.contact-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
}

.contact-links a {
    padding: 12px 25px;
    border: 1px solid #4f8cff;
    border-radius: 8px;
    color: #4f8cff;
}


/* Footer */

footer {
    padding: 30px;
    text-align: center;
    color: #707887;
    border-top: 1px solid #202633;
}


/* Responsive */

@media (max-width: 900px) {

    .navbar nav {
        display: none;
    }

    .about-content {
        grid-template-columns: 1fr;
    }

    .skills-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .projects-grid {
        grid-template-columns: 1fr;
    }

    .training-grid {
        grid-template-columns: repeat(2, 1fr);
    }

}


@media (max-width: 600px) {

    .section {
        padding: 70px 5%;
    }

    .hero {
        padding-left: 5%;
        padding-right: 5%;
    }

    .hero h1 {
        font-size: 45px;
    }

    .hero h2 {
        font-size: 24px;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .skills-grid {
        grid-template-columns: 1fr;
    }

    .training-grid {
        grid-template-columns: 1fr;
    }

    .section-title h2 {
        font-size: 32px;
    }

}

/* Home Animation */

.hero-content {
    animation: slideUp 1s ease forwards;
}

.hero-image {
    animation: slideIn 1s ease 0.2s forwards;
    opacity: 0;
}

.hero-image img {
    animation: float 4s ease-in-out infinite;
}


/* Text Animation */

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* Image Animation */

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(60px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}


/* Floating Image */

@keyframes float {
    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

.hero {
    background:
        radial-gradient(
            circle at 20% 30%,
            rgba(37, 99, 235, 0.15),
            transparent 35%
        ),
        radial-gradient(
            circle at 80% 70%,
            rgba(59, 130, 246, 0.12),
            transparent 35%
        ),
        #0b0f19;

    background-size: 150% 150%;

    animation: backgroundMove 10s ease-in-out infinite alternate;
}

@keyframes backgroundMove {

    0% {
        background-position: 0% 0%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 50% 100%;
    }

}

/* =========================
   Theme Variables
========================= */

:root {
    --bg-color: #0b0f19;
    --surface-color: #151b28;
    --surface-secondary: #111722;

    --text-color: #ffffff;
    --text-secondary: #aab1bf;
    --text-muted: #7f8796;

    --border-color: #252c3a;
    --primary-color: #4f8cff;

    --navbar-bg: rgba(11, 15, 25, 0.9);
}

[data-theme="light"] {
    --bg-color: #f5f7fb;
    --surface-color: #ffffff;
    --surface-secondary: #eef2f7;

    --text-color: #111827;
    --text-secondary: #5b6472;
    --text-muted: #6b7280;

    --border-color: #dfe3eb;
    --primary-color: #2563eb;

    --navbar-bg: rgba(245, 247, 251, 0.9);
}


/* =========================
   Reset
========================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: Arial, Helvetica, sans-serif;

    background-color: var(--bg-color);
    color: var(--text-color);

    line-height: 1.6;

    transition:
        background-color 0.3s ease,
        color 0.3s ease;
}

a {
    text-decoration: none;
    color: inherit;
}


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

.navbar {
    width: 100%;

    padding: 25px 8%;

    display: flex;
    align-items: center;
    justify-content: space-between;

    position: fixed;
    top: 0;
    left: 0;

    z-index: 1000;

    background: var(--navbar-bg);
    

    border-bottom: 1px solid var(--border-color);

    transition:
        background 0.3s ease,
        border-color 0.3s ease;
}

.logo {
    font-size: 24px;
    font-weight: bold;
}

.navbar nav {
    display: flex;
    gap: 30px;
}

.navbar nav a {
    color: var(--text-secondary);
    transition: color 0.3s ease;
}

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


/* =========================
   Theme Toggle
========================= */

.theme-toggle {
    width: 42px;
    height: 42px;

    border: 1px solid var(--border-color);
    border-radius: 50%;

    background: var(--surface-color);
    color: var(--text-color);

    cursor: pointer;

    font-size: 18px;

    display: flex;
    align-items: center;
    justify-content: center;

    transition:
        background-color 0.3s ease,
        color 0.3s ease,
        border-color 0.3s ease,
        transform 0.3s ease;
}

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


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

.hero {
    position: relative;

    min-height: 100vh;

    padding: 120px 8% 80px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 80px;

    overflow: hidden;

    background-color: var(--bg-color);

    transition: background-color 0.3s ease;
}

.hero-content {
    flex: 1;
    max-width: 700px;

    position: relative;
    z-index: 1;
}

.small-title {
    color: var(--primary-color);

    font-size: 20px;

    margin-bottom: 15px;
}

.hero h1 {
    font-size: clamp(45px, 7vw, 85px);
    line-height: 1.1;

    margin-bottom: 15px;
}

.hero h2 {
    color: var(--primary-color);

    font-size: 32px;

    margin-bottom: 25px;
}

.hero-description {
    max-width: 700px;

    color: var(--text-secondary);

    font-size: 18px;
}


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

.hero-buttons {
    display: flex;
    gap: 15px;

    margin-top: 35px;
}

.btn {
    padding: 13px 25px;

    border-radius: 8px;

    transition: 0.3s;
}

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

.primary:hover {
    transform: translateY(-3px);
}

.secondary {
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
}


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

.hero-image {
    width: 380px;
    height: 500px;

    flex-shrink: 0;

    overflow: hidden;

    border-radius: 24px;

    border: 1px solid var(--primary-color);

    position: relative;
    z-index: 1;

    transition: border-color 0.3s ease;
}

.hero-image img {
    width: 100%;
    height: 100%;

    display: block;

    object-fit: cover;
    object-position: center top;
}


/* =========================
   Animated Background
========================= */

.hero::before,
.hero::after {
    content: "";

    position: absolute;

    width: 450px;
    height: 450px;

    border-radius: 50%;

    background: var(--primary-color);

    filter: blur(120px);

    opacity: 0.12;

    pointer-events: none;

    animation: glowMove 8s ease-in-out infinite alternate;
}

.hero::before {
    top: -150px;
    left: -150px;
}

.hero::after {
    right: -150px;
    bottom: -150px;

    animation-delay: 2s;
}

@keyframes glowMove {

    0% {
        transform: translate(0, 0) scale(1);
    }

    50% {
        transform: translate(100px, 50px) scale(1.2);
    }

    100% {
        transform: translate(-50px, 100px) scale(0.9);
    }
}


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

.section {
    padding: 100px 8%;

    background-color: var(--bg-color);

    transition: background-color 0.3s ease;
}

.section-title {
    margin-bottom: 50px;
}

.section-title span {
    color: var(--primary-color);
    font-size: 15px;
}

.section-title h2 {
    font-size: 40px;
    margin-top: 5px;
}


/* =========================
   About
========================= */

.about-content {
    display: grid;

    grid-template-columns: 1.5fr 1fr;

    gap: 60px;
}

.about-text p {
    color: var(--text-secondary);

    margin-bottom: 20px;

    font-size: 17px;
}

.about-info {
    display: flex;
    flex-direction: column;

    gap: 20px;
}

.about-info div {
    padding-bottom: 15px;

    border-bottom: 1px solid var(--border-color);
}

.about-info span {
    display: block;

    color: var(--text-muted);

    font-size: 14px;
}


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

.skills-section,
.projects-section {
    background-color: var(--surface-secondary);
}

.skills-grid {
    display: grid;

    grid-template-columns: repeat(4, 1fr);

    gap: 20px;
}

.skill-card {
    padding: 30px;

    background-color: var(--surface-color);

    border: 1px solid var(--border-color);

    border-radius: 12px;

    transition:
        background-color 0.3s ease,
        border-color 0.3s ease,
        transform 0.3s ease;
}

.skill-card:hover {
    transform: translateY(-5px);

    border-color: var(--primary-color);
}

.skill-card h3 {
    margin-bottom: 20px;

    color: var(--primary-color);
}

.skill-card p {
    color: var(--text-secondary);

    margin-bottom: 8px;
}


/* =========================
   Experience
========================= */

.timeline {
    display: flex;
    flex-direction: column;

    gap: 25px;
}

.experience-card {
    padding: 30px;

    border-left: 3px solid var(--primary-color);

    background-color: var(--surface-secondary);

    transition: background-color 0.3s ease;
}

.experience-card .date {
    color: var(--primary-color);

    font-size: 14px;
}

.experience-card h3 {
    margin-top: 8px;

    font-size: 24px;
}

.experience-card h4 {
    color: var(--text-secondary);

    margin: 5px 0 15px;
}

.experience-card p {
    color: var(--text-secondary);

    margin-bottom: 8px;
}


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

.projects-grid {
    display: grid;

    grid-template-columns: repeat(2, 1fr);

    gap: 25px;
}

.project-card {
    overflow: hidden;

    border-radius: 12px;

    background-color: var(--surface-color);

    border: 1px solid var(--border-color);

    transition:
        background-color 0.3s ease,
        border-color 0.3s ease,
        transform 0.3s ease;
}

.project-card:hover {
    transform: translateY(-7px);

    border-color: var(--primary-color);
}

.project-image {
    height: 230px;

    background-color: var(--surface-secondary);

    display: flex;
    align-items: center;
    justify-content: center;
}

.project-image span {
    font-size: 35px;
    font-weight: bold;

    color: var(--primary-color);
}

.project-content {
    padding: 25px;
}

.project-content h3 {
    font-size: 25px;

    margin-bottom: 10px;
}

.project-content p {
    color: var(--text-secondary);
}

.tech-stack {
    display: flex;
    flex-wrap: wrap;

    gap: 8px;

    margin: 20px 0;
}

.tech-stack span {
    padding: 5px 10px;

    border-radius: 5px;

    background-color: var(--surface-secondary);

    color: var(--text-secondary);

    font-size: 13px;
}

.project-links {
    display: flex;

    gap: 20px;
}

.project-links a {
    color: var(--primary-color);
}


/* =========================
   Education
========================= */

.education-card {
    max-width: 700px;

    padding: 30px;

    background-color: var(--surface-color);

    border: 1px solid var(--border-color);

    border-radius: 12px;
}

.education-card p,
.education-card li {
    color: var(--text-secondary);
}


/* =========================
   Training
========================= */

.training-grid {
    display: grid;

    grid-template-columns: repeat(3, 1fr);

    gap: 20px;
}

.training-card {
    padding: 25px;

    background-color: var(--surface-color);

    border-radius: 10px;

    border: 1px solid var(--border-color);
}

.training-card h3 {
    color: var(--primary-color);

    margin-bottom: 10px;
}

.training-card p {
    color: var(--text-secondary);
}


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

.contact-section {
    text-align: center;
}

.contact-section > p {
    max-width: 600px;

    margin: auto;

    color: var(--text-secondary);
}

.contact-links {
    display: flex;

    justify-content: center;

    gap: 20px;

    margin-top: 30px;
}

.contact-links a {
    padding: 12px 25px;

    border: 1px solid var(--primary-color);

    border-radius: 8px;

    color: var(--primary-color);

    transition: 0.3s;
}

.contact-links a:hover {
    background-color: var(--primary-color);

    color: #ffffff;
}


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

footer {
    padding: 30px;

    text-align: center;

    color: var(--text-muted);

    border-top: 1px solid var(--border-color);

    background-color: var(--bg-color);
}


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

@media (max-width: 900px) {

    .navbar nav {
        display: none;
    }

    .hero {
        flex-direction: column;

        text-align: center;

        padding-top: 150px;
    }

    .hero-image {
        width: 300px;
        height: 400px;
    }

    .hero-buttons {
        justify-content: center;
    }

    .about-content {
        grid-template-columns: 1fr;
    }

    .skills-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .projects-grid {
        grid-template-columns: 1fr;
    }

    .training-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}


@media (max-width: 600px) {

    .section {
        padding: 70px 5%;
    }

    .hero {
        padding-left: 5%;
        padding-right: 5%;
    }

    .hero h1 {
        font-size: 45px;
    }

    .hero h2 {
        font-size: 24px;
    }

    .hero-image {
        width: 260px;
        height: 350px;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .skills-grid,
    .training-grid {
        grid-template-columns: 1fr;
    }

    .section-title h2 {
        font-size: 32px;
    }
}

.hero-buttons {
    display: flex;
    gap: 15px;
    margin-top: 35px;
}

.btn {
    padding: 13px 25px;
    border-radius: 8px;
    transition: 0.3s;
    cursor: pointer;
}

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

.secondary {
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
}

.secondary:hover {
    background: var(--primary-color);
    color: #fff;
    transform: translateY(-3px);
}