/* =========================
   ROOT VARIABLES
========================= */

:root {

    --primary-color: #2563eb;
    --primary-hover: #1d4ed8;

    --text-color: #111827;
    --text-light: #6b7280;

    --background: #ffffff;
    --background-alt: #f8fafc;

    --card-background: #ffffff;

    --border-color: #e5e7eb;

    --header-background: rgba(255, 255, 255, 0.92);

    --shadow:
        0 10px 30px rgba(0, 0, 0, 0.08);

    --transition: 0.3s ease;

    --max-width: 1150px;
}


/* =========================
   DARK MODE
========================= */

body.dark-mode {

    --text-color: #f3f4f6;
    --text-light: #9ca3af;

    --background: #0f172a;
    --background-alt: #111827;

    --card-background: #1e293b;

    --border-color: #334155;

    --header-background: rgba(15, 23, 42, 0.94);

    --shadow:
        0 10px 30px rgba(0, 0, 0, 0.25);
}


/* =========================
   RESET
========================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}


html {
    scroll-behavior: smooth;
}


body {

    font-family: "Inter", sans-serif;

    background: var(--background);

    color: var(--text-color);

    line-height: 1.7;

    transition:
        background-color 0.3s ease,
        color 0.3s ease;

    overflow-x: hidden;
}


a {
    text-decoration: none;
    color: inherit;
}


button,
input,
textarea {
    font-family: inherit;
}


img {
    max-width: 100%;
    display: block;
}


.container {

    width: min(
        90%,
        var(--max-width)
    );

    margin: auto;
}


.section {

    padding: 100px 0;

    scroll-margin-top: 80px;
}


/* =========================
   HEADER
========================= */

.header {

    position: fixed;

    top: 0;
    left: 0;

    width: 100%;

    z-index: 1000;

    background: var(--header-background);

    backdrop-filter: blur(12px);

    border-bottom:
        1px solid var(--border-color);

    transition: var(--transition);
}


.nav-container {

    min-height: 75px;

    display: flex;

    align-items: center;

    justify-content: space-between;
}


.logo {

    font-size: 1.5rem;

    font-weight: 800;

    letter-spacing: -0.5px;
}


.logo span {
    color: var(--primary-color);
}


.navbar {

    display: flex;

    align-items: center;

    gap: 30px;
}


.nav-link {

    position: relative;

    color: var(--text-light);

    font-size: 0.95rem;

    font-weight: 500;

    transition: var(--transition);
}


.nav-link:hover,
.nav-link.active {

    color: var(--primary-color);
}


.nav-link::after {

    content: "";

    position: absolute;

    left: 0;
    bottom: -7px;

    width: 0;

    height: 2px;

    background: var(--primary-color);

    transition: var(--transition);
}


.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}


.nav-actions {

    display: flex;

    align-items: center;

    gap: 12px;
}


.theme-toggle,
.menu-toggle {

    width: 40px;
    height: 40px;

    border: 1px solid var(--border-color);

    background: var(--card-background);

    color: var(--text-color);

    border-radius: 50%;

    display: flex;

    align-items: center;
    justify-content: center;

    cursor: pointer;

    transition: var(--transition);
}


.theme-toggle:hover,
.menu-toggle:hover {

    color: var(--primary-color);

    border-color: var(--primary-color);

    transform: translateY(-2px);
}


.menu-toggle {
    display: none;
}


/* =========================
   HERO
========================= */

.hero {

    min-height: 100vh;

    display: flex;

    align-items: center;

    padding-top: 120px;
}


.hero-container {

    display: grid;

    grid-template-columns: 1.1fr 0.9fr;

    align-items: center;

    gap: 60px;
}


.hero-subtitle {

    color: var(--primary-color);

    font-size: 1rem;

    font-weight: 700;

    margin-bottom: 10px;
}


.hero-content h1 {

    font-size: clamp(
        2.8rem,
        6vw,
        5rem
    );

    line-height: 1.1;

    font-weight: 800;

    letter-spacing: -2px;

    margin-bottom: 10px;
}


.hero-content h2 {

    color: var(--primary-color);

    font-size: clamp(
        1.3rem,
        3vw,
        2rem
    );

    margin-bottom: 20px;
}


.hero-description {

    color: var(--text-light);

    max-width: 600px;

    margin-bottom: 30px;

    font-size: 1.05rem;
}


.hero-buttons {

    display: flex;

    gap: 15px;

    flex-wrap: wrap;

    margin-bottom: 30px;
}


/* =========================
   BUTTONS
========================= */

.btn {

    display: inline-flex;

    align-items: center;

    justify-content: center;

    gap: 9px;

    padding: 13px 23px;

    border-radius: 8px;

    font-size: 0.95rem;

    font-weight: 600;

    cursor: pointer;

    border: 2px solid transparent;

    transition: var(--transition);
}


.primary-btn {

    background: var(--primary-color);

    color: white;
}


.primary-btn:hover {

    background: var(--primary-hover);

    transform: translateY(-3px);

    box-shadow:
        0 8px 20px rgba(37, 99, 235, 0.25);
}


.secondary-btn {

    border-color: var(--border-color);

    color: var(--text-color);

    background: transparent;
}


.secondary-btn:hover {

    border-color: var(--primary-color);

    color: var(--primary-color);

    transform: translateY(-3px);
}


/* =========================
   SOCIAL LINKS
========================= */

.social-links {

    display: flex;

    gap: 12px;
}


.social-links a,
.footer-social a {

    width: 42px;
    height: 42px;

    display: flex;

    align-items: center;
    justify-content: center;

    border: 1px solid var(--border-color);

    border-radius: 50%;

    color: var(--text-light);

    transition: var(--transition);
}


.social-links a:hover,
.footer-social a:hover {

    color: var(--primary-color);

    border-color: var(--primary-color);

    transform: translateY(-3px);
}


/* =========================
   PROFILE IMAGE
========================= */

.hero-image {
order: 1;
padding-top: 25px;
margin-top: 25px;
    display: flex;

    justify-content: center;

    align-items: center;
}


.profile-frame {

    width: 320px;

    height: 320px;

    border-radius: 50%;

    padding: 8px;

    border:
        3px solid var(--primary-color);

    position: relative;

    box-shadow:
        0 20px 50px rgba(0, 0, 0, 0.12);
}


.profile-frame::before {

    content: "";

    position: absolute;

    inset: -15px;

    border-radius: 50%;

    border:
        1px dashed var(--primary-color);

    opacity: 0.4;

    animation:
        rotateFrame 15s linear infinite;
}


.profile-frame img {

    width: 100%;
    height: 100%;

    object-fit: cover;

    border-radius: 50%;
}


@keyframes rotateFrame {

    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }

}


/* =========================
   SECTION HEADING
========================= */

.section-heading {

    text-align: center;

    margin-bottom: 60px;
}


.section-subtitle {

    color: var(--primary-color);

    text-transform: uppercase;

    font-size: 0.8rem;

    font-weight: 700;

    letter-spacing: 2px;

    margin-bottom: 8px;
}


.section-heading h2 {

    font-size: clamp(
        2rem,
        5vw,
        2.8rem
    );

    line-height: 1.2;

    margin-bottom: 15px;
}


.section-heading span {

    display: block;

    width: 50px;

    height: 3px;

    background: var(--primary-color);

    margin: auto;
}


/* =========================
   ABOUT
========================= */

.about {

    background: var(--background-alt);
}


.about-container {

    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 60px;

    align-items: center;
}


.about-content h3 {

    font-size: 1.7rem;

    margin-bottom: 20px;
}


.about-content p {

    color: var(--text-light);

    margin-bottom: 18px;
}


.about-content .btn {

    margin-top: 10px;
}


.about-info {

    display: grid;

    gap: 18px;
}


.info-box {

    display: flex;

    align-items: center;

    gap: 20px;

    padding: 22px;

    background: var(--card-background);

    border: 1px solid var(--border-color);

    border-radius: 12px;

    box-shadow: var(--shadow);

    transition: var(--transition);
}


.info-box:hover {

    transform: translateX(7px);

    border-color: var(--primary-color);
}


.info-box > i {

    width: 48px;
    height: 48px;

    display: flex;

    align-items: center;
    justify-content: center;

    border-radius: 10px;

    background: rgba(37, 99, 235, 0.1);

    color: var(--primary-color);

    font-size: 1.2rem;
}


.info-box h4 {
    margin-bottom: 2px;
}


.info-box p {

    color: var(--text-light);

    font-size: 0.9rem;
}


/* =========================
   SKILLS
========================= */

.skills-grid {

    display: grid;

    grid-template-columns:
        repeat(4, 1fr);

    gap: 20px;
}


.skill-card {

    padding: 30px 20px;

    text-align: center;

    background: var(--card-background);

    border: 1px solid var(--border-color);

    border-radius: 12px;

    box-shadow: var(--shadow);

    transition: var(--transition);
}


.skill-card:hover {

    transform: translateY(-8px);

    border-color: var(--primary-color);
}


.skill-card > i {

    font-size: 3rem;

    color: var(--primary-color);

    margin-bottom: 18px;
}


.skill-card h3 {
    margin-bottom: 8px;
}


.skill-card p {

    color: var(--text-light);

    font-size: 0.9rem;
}


/* =========================
   SERVICES
========================= */

.services {

    background: var(--background-alt);
}


.services-grid {

    display: grid;

    grid-template-columns:
        repeat(3, 1fr);

    gap: 25px;
}


.service-card {

    padding: 35px 25px;

    background: var(--card-background);

    border: 1px solid var(--border-color);

    border-radius: 12px;

    transition: var(--transition);

    box-shadow: var(--shadow);
}


.service-card:hover {

    transform: translateY(-8px);

    border-color: var(--primary-color);
}


.service-icon {

    width: 58px;
    height: 58px;

    display: flex;

    align-items: center;
    justify-content: center;

    background: rgba(37, 99, 235, 0.1);

    color: var(--primary-color);

    border-radius: 12px;

    font-size: 1.4rem;

    margin-bottom: 22px;
}


.service-card h3 {
    margin-bottom: 12px;
}


.service-card p {

    color: var(--text-light);
}
/* .whatsapp-float */
.whatsapp-float {
  position: fixed;
  
  width: 50px;
  height: 50px;
  bottom: 90px;
  right: 30px;
  background-color: #25d366;
  color: #fff;
  border-radius: 50px;
  text-align: center;
  font-size: 30px;
  box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.2);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: transform 0.3s ease;
}

.whatsapp-float:hover {
  transform: scale(1.1);
  color: #fff;
}

/* =========================
   PROJECTS
========================= */
.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 15px;
}

.tag {
  background-color: #f1f5f9;
  color: #475569;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 500;
}

.projects-grid {

    display: grid;

    grid-template-columns:
        repeat(3, 1fr);

    gap: 25px;
}


.project-card {

    overflow: hidden;

    background: var(--card-background);

    border: 1px solid var(--border-color);

    border-radius: 12px;

    box-shadow: var(--shadow);

    transition: var(--transition);
}


.project-card:hover {

    transform: translateY(-8px);

    border-color: var(--primary-color);
}


.project-image {

    height: 190px;

    display: flex;

    align-items: center;
    justify-content: center;

    background: var(--background-alt);

    color: var(--primary-color);

    font-size: 4rem;

    border-bottom:
        1px solid var(--border-color);
}


.project-content {
    padding: 25px;
}


.project-content h3 {
    margin-bottom: 10px;
}


.project-content p {

    color: var(--text-light);

    margin-bottom: 20px;

    font-size: 0.92rem;
}


.project-links {

    display: flex;

    gap: 20px;

    flex-wrap: wrap;
}


.project-links a {

    color: var(--primary-color);

    font-size: 0.9rem;

    font-weight: 600;

    display: flex;

    align-items: center;

    gap: 7px;
}


.project-links a:hover {
    text-decoration: underline;
}


/* =========================
   CONTACT
========================= */

.contact {

    background: var(--background-alt);
}


.contact-container {

    display: grid;

    grid-template-columns: 0.8fr 1.2fr;

    gap: 60px;

    align-items: start;
}


.contact-info h3 {

    font-size: 1.8rem;

    margin-bottom: 15px;
}


.contact-info > p {

    color: var(--text-light);

    margin-bottom: 35px;
}


.contact-item {

    display: flex;

    align-items: center;

    gap: 15px;

    margin-bottom: 25px;
}


.contact-icon {

    width: 45px;
    height: 45px;

    display: flex;

    align-items: center;
    justify-content: center;

    background: rgba(37, 99, 235, 0.1);

    color: var(--primary-color);

    border-radius: 10px;
}


.contact-item h4 {
    margin-bottom: 2px;
}


.contact-item p {

    color: var(--text-light);

    font-size: 0.9rem;
}


/* =========================
   CONTACT FORM
========================= */

.contact-form {

    padding: 35px;

    background: var(--card-background);

    border: 1px solid var(--border-color);

    border-radius: 14px;

    box-shadow: var(--shadow);
}


.form-group {
    margin-bottom: 20px;
}


.form-group label {

    display: block;

    font-size: 0.9rem;

    font-weight: 600;

    margin-bottom: 8px;
}


.form-group input,
.form-group textarea {

    width: 100%;

    padding: 13px 15px;

    border:
        1px solid var(--border-color);

    border-radius: 8px;

    background: var(--background);

    color: var(--text-color);

    outline: none;

    resize: vertical;

    transition: var(--transition);
}


.form-group input:focus,
.form-group textarea:focus {

    border-color: var(--primary-color);

    box-shadow:
        0 0 0 3px rgba(37, 99, 235, 0.1);
}


.form-group textarea {
    min-height: 140px;
}


.submit-btn {

    width: 100%;

    border: none;
}


.submit-btn:disabled {

    opacity: 0.7;

    cursor: not-allowed;

    transform: none;
}


/* =========================
   FORM STATUS
========================= */

.form-status {

    display: none;

    margin-top: 18px;

    padding: 13px 16px;

    border-radius: 8px;

    font-size: 0.9rem;

    font-weight: 500;

    animation:
        statusAppear 0.4s ease;
}


.form-status.success {

    display: block;

    color: #166534;

    background: #dcfce7;

    border: 1px solid #86efac;
}


.form-status.error {

    display: block;

    color: #991b1b;

    background: #fee2e2;

    border: 1px solid #fca5a5;
}


@keyframes statusAppear {

    from {

        opacity: 0;

        transform: translateY(-8px);
    }

    to {

        opacity: 1;

        transform: translateY(0);
    }

}


/* =========================
   FOOTER
========================= */

.footer {

    padding: 30px 0;

    border-top:
        1px solid var(--border-color);

    background: var(--background);
}


.footer-container {

    display: flex;

    justify-content: space-between;

    align-items: center;

    gap: 20px;
}


.footer p {

    color: var(--text-light);

    font-size: 0.85rem;
}


.footer-social {

    display: flex;

    gap: 10px;
}


.footer-social a {

    width: 36px;
    height: 36px;
}


/* =========================
   BACK TO TOP
========================= */

.back-to-top {

    position: fixed;

    right: 25px;

    bottom: 25px;

    width: 45px;
    height: 45px;

    border-radius: 50%;

    border:
        1px solid var(--border-color);

    background: var(--card-background);

    color: var(--primary-color);

    font-size: 1.4rem;

    display: flex;

    align-items: center;
    justify-content: center;

    cursor: pointer;

    opacity: 0;

    visibility: hidden;

    transform: translateY(15px);

    transition: var(--transition);

    z-index: 900;

    box-shadow: var(--shadow);
}


.back-to-top.show {

    opacity: 1;

    visibility: visible;

    transform: translateY(0);
}


.back-to-top:hover {

    background: var(--primary-color);

    color: white;

    border-color: var(--primary-color);

    transform: translateY(-4px);
}


/* =========================
   SCROLL REVEAL ANIMATION
========================= */

.reveal {

    opacity: 0;

    transform: translateY(45px);

    transition:
        opacity 0.8s ease,
        transform 0.8s ease;
}


.reveal.show {

    opacity: 1;

    transform: translateY(0);
}


/* Different animation delays */

.skill-card:nth-child(2),
.service-card:nth-child(2),
.project-card:nth-child(2) {

    transition-delay: 0.1s;
}


.skill-card:nth-child(3),
.service-card:nth-child(3),
.project-card:nth-child(3) {

    transition-delay: 0.2s;
}


.skill-card:nth-child(4) {

    transition-delay: 0.3s;
}


/* =========================
   RESPONSIVE
========================= */

@media (max-width: 992px) {

    .navbar {

        gap: 18px;
    }


    .hero-container {

        gap: 30px;
    }


    .profile-frame {

        width: 280px;

        height: 280px;
    }


    .skills-grid {

        grid-template-columns:
            repeat(2, 1fr);
    }


    .services-grid,
    .projects-grid {

        grid-template-columns:
            repeat(2, 1fr);
    }

}


@media (max-width: 768px) {

    .section {

        padding: 80px 0;
    }


    /* Mobile Navigation */

    .navbar {

        position: absolute;

        top: 75px;

        left: 0;

        width: 100%;

        padding: 20px;

        background: var(--background);

        border-bottom:
            1px solid var(--border-color);

        display: none;

        flex-direction: column;

        align-items: flex-start;

        gap: 18px;
    }


    .navbar.active {
        display: flex;
    }


    .menu-toggle {
        display: flex;
    }


    .hero {

        padding-top: 130px;

        text-align: center;
    }


    .hero-container {

        grid-template-columns: 1fr;

    }


    .hero-content {

        order: 2;
    }


    .hero-image {

        order: 1;
    }


    .hero-buttons {

        justify-content: center;
    }


    .social-links {

        justify-content: center;
    }


    .profile-frame {

        width: 240px;

        height: 240px;
    }


    .about-container {

        grid-template-columns: 1fr;

        gap: 40px;
    }


    .contact-container {

        grid-template-columns: 1fr;

        gap: 40px;
    }

}


@media (max-width: 576px) {

    .section {

        padding: 70px 0;
    }


    .container {

        width: 92%;
    }


    .hero-content h1 {

        font-size: 2.5rem;

        letter-spacing: -1px;
    }


    .hero-description {

        font-size: 0.95rem;
    }


    .hero-buttons {

        flex-direction: column;

        align-items: stretch;
    }


    .btn {

        width: 100%;
    }


    .profile-frame {

        width: 210px;

        height: 210px;
    }


    .skills-grid,
    .services-grid,
    .projects-grid {

        grid-template-columns: 1fr;
    }


    .contact-form {

        padding: 22px;
    }


    .footer-container {

        flex-direction: column;

        text-align: center;
    }


    .back-to-top {

        right: 18px;

        bottom: 18px;

        width: 42px;

        height: 42px;
    }

}


/* =========================
   REDUCED MOTION
========================= */

@media (prefers-reduced-motion: reduce) {

    html {
        scroll-behavior: auto;
    }


    *,
    *::before,
    *::after {

        animation-duration: 0.01ms !important;

        animation-iteration-count: 1 !important;

        transition-duration: 0.01ms !important;
    }


    .reveal {

        opacity: 1;

        transform: none;
    }

}