/* =========================
   ROOT VARIABLES
========================= */

:root {
    --primary: #6c63ff;
    --primary-dark: #5148e5;

    --bg: #ffffff;
    --bg-secondary: #f6f7fb;
    --card: #ffffff;

    --text: #171725;
    --text-light: #666675;

    --border: #e6e6ee;

    --shadow:
        0 15px 40px rgba(20, 20, 50, 0.08);

    --transition: 0.3s ease;
}

body.dark {
    --bg: #0d0d14;
    --bg-secondary: #12121c;
    --card: #181824;

    --text: #f5f5fa;
    --text-light: #aaaab8;

    --border: #292938;

    --shadow:
        0 15px 40px rgba(0, 0, 0, 0.35);
}


/* =========================
   RESET
========================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Inter", sans-serif;
    background: var(--bg);
    color: var(--text);
    transition:
        background var(--transition),
        color var(--transition);
}

a {
    text-decoration: none;
    color: inherit;
}

button,
input,
textarea {
    font-family: inherit;
}

button {
    border: none;
    cursor: pointer;
}


/* =========================
   HEADER
========================= */

.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;

    background: rgba(255,255,255,.85);
    backdrop-filter: blur(15px);

    border-bottom: 1px solid var(--border);
}

.dark .header {
    background: rgba(13,13,20,.85);
}

.navbar {
    max-width: 1200px;
    height: 75px;

    margin: auto;
    padding: 0 25px;

    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    font-size: 25px;
    font-weight: 800;
}

.logo span {
    color: var(--primary);
}

.nav-menu {
    display: flex;
    gap: 30px;
}

.nav-link {
    color: var(--text-light);
    font-size: 14px;
    font-weight: 600;

    transition: var(--transition);
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.icon-btn {
    background: transparent;
    color: var(--text);

    display: flex;
}

.icon-btn:hover {
    color: var(--primary);
}

.hamburger {
    display: none;

    width: 40px;
    height: 40px;

    background: transparent;

    flex-direction: column;
    justify-content: center;
    gap: 5px;
}

.hamburger span {
    width: 25px;
    height: 2px;

    background: var(--text);

    transition: .3s;
}


/* =========================
   HERO
========================= */

.hero {
    min-height: 100vh;

    max-width: 1200px;
    margin: auto;

    padding: 140px 25px 80px;

    display: grid;
    grid-template-columns: 1.1fr .9fr;

    align-items: center;
    gap: 60px;
}

.hero-small {
    color: var(--primary);

    font-weight: 700;
    letter-spacing: 3px;

    margin-bottom: 15px;
}

.hero h1 {
    font-size: clamp(45px, 7vw, 78px);
    line-height: 1.05;
}

.hero h1 span {
    color: var(--primary);
}

.hero h2 {
    margin-top: 20px;

    font-size: clamp(22px, 4vw, 35px);
}

.hero h2 span {
    color: var(--primary);
}

.hero-description {
    max-width: 620px;

    color: var(--text-light);

    line-height: 1.8;

    margin-top: 25px;
}

.hero-buttons {
    display: flex;
    gap: 15px;

    margin-top: 35px;
}

.btn {
    min-height: 50px;

    padding: 0 25px;

    border-radius: 8px;

    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;

    font-weight: 700;

    transition: var(--transition);
}

.primary-btn {
    background: var(--primary);
    color: white;
}

.primary-btn:hover {
    background: var(--primary-dark);

    transform: translateY(-3px);
}

.secondary-btn {
    border: 1px solid var(--border);
}

.secondary-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.social-links {
    display: flex;
    gap: 12px;

    margin-top: 35px;
}

.social-links a {
    width: 42px;
    height: 42px;

    display: flex;
    align-items: center;
    justify-content: center;

    border: 1px solid var(--border);

    border-radius: 50%;

    transition: var(--transition);
}

.social-links a:hover {
    background: var(--primary);
    color: white;

    transform: translateY(-4px);
}


/* =========================
   CODE WINDOW
========================= */

.hero-visual {
    display: flex;
    justify-content: center;
}

.code-window {
    width: 100%;
    max-width: 480px;

    background: #151521;

    border-radius: 15px;

    overflow: hidden;

    box-shadow:
        0 30px 70px rgba(0,0,0,.3);

    transform: rotate(2deg);

    transition: var(--transition);
}

.code-window:hover {
    transform:
        rotate(0)
        translateY(-8px);
}

.window-header {
    height: 45px;

    background: #20202d;

    display: flex;
    align-items: center;

    gap: 8px;

    padding: 0 15px;
}

.window-header span {
    width: 12px;
    height: 12px;

    border-radius: 50%;

    background: #555;
}

.code-content {
    padding: 35px;

    color: #eee;

    line-height: 2;
    font-family: monospace;
}

.indent {
    padding-left: 25px;
}

.purple {
    color: #c792ea;
}

.orange {
    color: #f78c6c;
}

.green {
    color: #c3e88d;
}

.blue {
    color: #82aaff;
}


/* =========================
   STATS
========================= */

.stats {
    max-width: 1100px;

    margin: auto;

    padding: 40px 25px;

    display: grid;

    grid-template-columns:
        repeat(4, 1fr);

    gap: 20px;

    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.stat {
    text-align: center;
}

.stat h3 {
    color: var(--primary);

    font-size: 35px;
}

.stat p {
    color: var(--text-light);

    margin-top: 5px;
    font-size: 14px;
}


/* =========================
   SECTIONS
========================= */

.section {
    max-width: 1200px;

    margin: auto;

    padding: 110px 25px;
}

.section-title {
    text-align: center;

    margin-bottom: 60px;
}

.section-title p {
    color: var(--primary);

    font-size: 13px;
    font-weight: 700;

    letter-spacing: 3px;

    margin-bottom: 12px;
}

.section-title h2 {
    font-size: clamp(32px,5vw,48px);
}

.section-title h2 span {
    color: var(--primary);
}


/* =========================
   ABOUT
========================= */

.about-grid {
    display: grid;

    grid-template-columns:
        .9fr 1.1fr;

    gap: 70px;

    align-items: center;
}

.about-image {
    min-height: 380px;
/* 
    background:
        linear-gradient(
            135deg,
            var(--primary),
            #2d00e2
        ); */

         background-image: url('profile.PNG');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;

    border-radius: 20px;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
}

.profile-card {
    /* background: rgba(238, 6, 6, 0.15); */

    /* backdrop-filter: blur(10px); */

    /* border: 1px solid rgba(255,255,255,.3); */
  backdrop-filter: blur(1px);
    
    padding: 10px;

    border-radius: 20px;

    text-align: center;
    text-shadow: 1px 2px 2px rgba(255, 255, 255, 0.282);

    color: rgba(99, 121, 211, 0.938);
}

.profile-icon {
    width: 70px;
    height: 70px;
    backdrop-filter: blur(10px);
    border-radius: 50%;

    background: rgba(255, 255, 255, 0.57);

    color: var(--primary);

    margin: auto auto 20px;

    display: flex;
    align-items: center;
    justify-content: center;
}

.profile-icon .material-icons {
    font-size: 45px;
}

.about-content h3 {
    font-size: 28px;

    margin-bottom: 20px;
}

.about-content p {
    color: var(--text-light);

    line-height: 1.8;

    margin-bottom: 20px;
}

.about-features {
    display: grid;

    grid-template-columns:
        repeat(2,1fr);

    gap: 15px;

    margin-top: 30px;
}

.about-features div {
    display: flex;
    align-items: center;

    gap: 8px;

    font-weight: 600;
}

.about-features .material-icons {
    color: var(--primary);
}


/* =========================
   SERVICES
========================= */

.services {
    max-width: none;

    background: var(--bg-secondary);
}

.service-grid {
    max-width: 1150px;

    margin: auto;

    padding: 0 25px;

    display: grid;

    grid-template-columns:
        repeat(4,1fr);

    gap: 20px;
}

.service-card {
    padding: 35px;

    background: var(--card);

    border: 1px solid var(--border);

    border-radius: 15px;

    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-8px);

    border-color: var(--primary);

    box-shadow: var(--shadow);
}

.service-card > .material-icons {
    color: var(--primary);

    font-size: 40px;

    margin-bottom: 25px;
}

.service-card h3 {
    margin-bottom: 15px;
}

.service-card p {
    color: var(--text-light);

    line-height: 1.7;

    margin-bottom: 25px;
}

.service-card a {
    color: var(--primary);

    font-weight: 700;
}


/* =========================
   PROJECT SLIDER
========================= */

.project-slider {
    display: flex;

    align-items: center;

    gap: 15px;
}

.project-track {
    width: 100%;

    overflow: hidden;
}

.project-card {
    display: none;

    background: var(--card);

    border: 1px solid var(--border);

    border-radius: 18px;

    overflow: hidden;

    box-shadow: var(--shadow);
}

.project-card.active {
    display: grid;

    grid-template-columns:
        1fr 1fr;

    animation: fadeSlide .5s ease;
}

@keyframes fadeSlide {

    from {
        opacity: 0;
        transform: translateX(30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }

}

.project-image {
    min-height: 380px;

    display: flex;

    align-items: center;
    justify-content: center;

    color: white;
}

.project-image .material-icons {
    font-size: 100px;
}

.project-one {
    background-image: url('dash.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.project-two {
  background-image: url('bag.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.project-three {
 background-image: url('guard.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.project-four {
 background-image: url('spine.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.project-five {
 background-image: url('tech.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}


.project-info {
    padding: 45px;
}

.project-category {
    color: var(--primary);

    font-size: 12px;

    font-weight: 800;

    letter-spacing: 2px;

    margin-bottom: 15px;
}

.project-info h3 {
    font-size: 30px;

    margin-bottom: 20px;
}

.project-info > p:not(.project-category) {
    color: var(--text-light);

    line-height: 1.8;
}

.technologies {
    display: flex;

    flex-wrap: wrap;

    gap: 8px;

    margin: 25px 0;
}

.technologies span {
    padding: 7px 12px;

    border-radius: 5px;

    background: var(--bg-secondary);

    font-size: 12px;
}

.project-link {
    color: var(--primary);

    font-weight: 700;
}

.slider-btn {
    flex-shrink: 0;

    width: 50px;
    height: 50px;

    border-radius: 50%;

    background: var(--card);

    border: 1px solid var(--border);

    color: var(--text);

    display: flex;

    align-items: center;
    justify-content: center;

    transition: var(--transition);
}

.slider-btn:hover {
    background: var(--primary);

    color: white;
}

.slider-dots {
    display: flex;

    justify-content: center;

    gap: 8px;

    margin-top: 25px;
}

.dot {
    width: 8px;
    height: 8px;

    border-radius: 50%;

    background: var(--border);

    cursor: pointer;
}

.dot.active {
    background: var(--primary);

    width: 25px;

    border-radius: 10px;
}


/* =========================
   SKILLS
========================= */

.skills-grid {
    max-width: 800px;

    margin: auto;

    display: grid;

    grid-template-columns:
        repeat(2,1fr);

    gap: 35px;
}

.skill-header {
    display: flex;

    justify-content: space-between;

    margin-bottom: 10px;

    font-weight: 600;
}

.skill-header strong {
    color: var(--primary);
}

.progress {
    height: 8px;

    background: var(--bg-secondary);

    border-radius: 20px;

    overflow: hidden;
}

.progress span {
    display: block;

    height: 100%;

    background: var(--primary);

    border-radius: inherit;
}


/* =========================
   TESTIMONIALS
========================= */

.testimonials {
    max-width: none;

    background: var(--bg-secondary);
}

.testimonial-container {
    max-width: 850px;

    margin: auto;

    padding: 0 25px;

    display: flex;

    align-items: center;

    gap: 20px;
}

.testimonial-slider {
    width: 100%;
}

.testimonial {
    display: none;

    background: var(--card);

    padding: 50px;

    border-radius: 20px;

    text-align: center;

    box-shadow: var(--shadow);
}

.testimonial.active {
    display: block;

    animation: fadeSlide .5s;
}

.quote {
    font-size: 70px;

    color: var(--primary);

    line-height: .5;

    margin-bottom: 25px;
}

.testimonial p {
    color: var(--text-light);

    line-height: 1.8;

    font-size: 17px;
}

.testimonial h3 {
    margin-top: 25px;
}

.testimonial span {
    color: var(--primary);

    font-size: 13px;
}

.testimonial-btn {
    flex-shrink: 0;

    width: 45px;
    height: 45px;

    border-radius: 50%;

    background: var(--card);

    border: 1px solid var(--border);

    color: var(--text);
}


/* =========================
   CONTACT
========================= */

.contact-grid {
    display: grid;

    grid-template-columns:
        .8fr 1.2fr;

    gap: 70px;
}

.contact-info h3 {
    font-size: 30px;

    margin-bottom: 20px;
}

.contact-info > p {
    color: var(--text-light);

    line-height: 1.8;

    margin-bottom: 35px;
}

.contact-item {
    display: flex;

    gap: 15px;

    margin-bottom: 25px;
}

.contact-item > .material-icons {
    color: var(--primary);
}

.contact-item small {
    color: var(--text-light);
}

.contact-item p {
    margin-top: 5px;
}

.contact-form {
    display: flex;

    flex-direction: column;

    gap: 15px;
}

.input-group {
    display: grid;

    grid-template-columns:
        repeat(2,1fr);

    gap: 15px;
}

.contact-form input,
.contact-form textarea {
    width: 100%;

    padding: 16px;

    background: var(--card);

    border: 1px solid var(--border);

    color: var(--text);

    border-radius: 8px;

    outline: none;

    resize: vertical;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: var(--primary);
}

.contact-form button {
    align-self: flex-start;
}

#formMessage {
    color: var(--primary);

    font-size: 14px;
}


/* =========================
   FOOTER
========================= */

footer {
    background: var(--bg-secondary);

    border-top: 1px solid var(--border);

    padding: 45px 25px 20px;
}

.footer-content {
    max-width: 1100px;

    margin: auto;

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 30px;
}

.footer-content p {
    color: var(--text-light);
}

.footer-links {
    display: flex;

    gap: 20px;

    font-size: 14px;
}

.footer-links a:hover {
    color: var(--primary);
}

.copyright {
    text-align: center;

    color: var(--text-light);

    border-top: 1px solid var(--border);

    max-width: 1100px;

    margin: 30px auto 0;

    padding-top: 20px;

    font-size: 13px;
}


/* =========================
   MOBILE
========================= */

@media (max-width: 900px) {

    .nav-menu {
        position: fixed;

        top: 75px;
        right: -100%;

        width: 280px;

        height: calc(100vh - 75px);

        background: var(--card);

        border-left: 1px solid var(--border);

        padding: 35px 25px;

        flex-direction: column;

        transition: .4s;
    }

    .nav-menu.open {
        right: 0;
    }

    .hamburger {
        display: flex;
    }

    .hero {
        grid-template-columns: 1fr;

        text-align: center;
    }

    .hero-description {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-buttons,
    .social-links {
        justify-content: center;
    }

    .stats {
        grid-template-columns:
            repeat(2,1fr);
    }

    .about-grid {
        grid-template-columns: 1fr;
    }

    .service-grid {
        grid-template-columns:
            repeat(2,1fr);
    }

    .project-card.active {
        grid-template-columns: 1fr;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

}


@media (max-width: 600px) {

    .navbar {
        padding: 0 18px;
    }

    .hero {
        padding-left: 18px;
        padding-right: 18px;
    }

    .hero h1 {
        font-size: 45px;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .btn {
        width: 100%;
    }

    .stats {
        grid-template-columns: 1fr 1fr;

        padding-left: 15px;
        padding-right: 15px;
    }

    .section {
        padding: 80px 18px;
    }

    .service-grid {
        grid-template-columns: 1fr;

        padding: 0 18px;
    }

    .skills-grid {
        grid-template-columns: 1fr;
    }

    .input-group {
        grid-template-columns: 1fr;
    }

    .project-image {
        min-height: 250px;
    }

    .project-info {
        padding: 30px;
    }

    .project-info h3 {
        font-size: 24px;
    }

    .testimonial-container {
        padding: 0;
    }

    .testimonial {
        padding: 35px 20px;
    }

    .footer-content {
        flex-direction: column;

        text-align: center;
    }

    .footer-links {
        flex-wrap: wrap;

        justify-content: center;
    }

}
