
/* ========== GENERAL STYLING ========== */

:root {
    --bg: #ffffff;
    --surface: #f7f5ff;
    --card: #ffffff;
    --text: #242038;
    --muted: #706d80;
    --accent: #7655d9;
    --accent-hover: #6040c1;
    --border: #e7e2f0;
    --shadow: 0 10px 35px rgba(43, 28, 87, 0.08);
}

body.dark-theme {
    --bg: #14121e;
    --surface: #1c1929;
    --card: #211e30;
    --text: #f5f2ff;
    --muted: #b9b3cc;
    --accent: #b49aff;
    --accent-hover: #c6b4ff;
    --border: #373146;
    --shadow: 0 10px 35px rgba(0, 0, 0, 0.2);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: Arial, Helvetica, sans-serif;
    transition: background-color 0.35s, color 0.35s;
}

section {
    scroll-margin-top: 75px;
}

a {
    text-decoration: none;
}

.accent {
    color: var(--accent);
}

.text-muted-custom {
    color: var(--muted);
    line-height: 1.9;
}

.section-padding {
    padding: 100px 0;
}

.alternate-bg {
    background: var(--surface);
}


/* ========== NAVBAR ========== */

.navbar {
    background: var(--bg);
    box-shadow: var(--shadow);
    transition: background-color 0.35s;
}

.navbar-brand {
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 10px;
}

.navbar-brand:hover {
    color: var(--accent);
}

.brand-box,
.footer-brand {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    background: var(--accent);
    color: #ffffff;
    border-radius: 10px;
    font-weight: bold;
    width: 200px;
    height: 42px;
}

.navbar .nav-link {
    color: var(--text);
    font-weight: 500;
    margin: 0 5px;
    transition: color 0.3s;
}

.navbar .nav-link:hover,
.navbar .nav-link:focus {
    color: var(--accent);
}

.navbar-toggler {
    border-color: var(--border);
}

.navbar-toggler:focus {
    box-shadow: 0 0 0 0.15rem var(--accent);
}

.dark-theme .navbar-toggler-icon {
    filter: invert(1);
}

.theme-btn {
    width: 42px;
    height: 42px;
    border: 1px solid var(--border);
    border-radius: 50%;
    background: var(--surface);
    color: var(--accent);
    font-size: 18px;
    transition: transform 0.3s, background-color 0.3s;
}

.theme-btn:hover {
    transform: rotate(15deg) scale(1.08);
}


/* ========== HOME ========== */

.home-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 140px 0 80px;
    background:
        radial-gradient(circle at 90% 15%,
        rgba(118, 85, 217, 0.12), transparent 30%),
        var(--bg);
}

.welcome-text {
    color: var(--accent);
    font-weight: 600;
    letter-spacing: 1px;
}

.home-section h1 {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    font-weight: 800;
    line-height: 1.2;
    margin: 20px 0;
}

.profession {
    font-size: clamp(1.4rem, 3vw, 2.1rem);
    font-weight: 600;
}

.hero-description {
    color: var(--muted);
    max-width: 600px;
    line-height: 1.9;
    margin-top: 20px;
}

.btn-main {
    background: var(--accent);
    color: #ffffff;
    padding: 13px 24px;
    border-radius: 9px;
    font-weight: 600;
    border: 1px solid var(--accent);
    transition: transform 0.3s, background-color 0.3s;
}

.btn-main:hover {
    background: var(--accent-hover);
    color: #ffffff;
    transform: translateY(-3px);
}

.btn-outline-custom {
    border: 1px solid var(--accent);
    color: var(--accent);
    padding: 13px 24px;
    border-radius: 9px;
    font-weight: 600;
    transition: all 0.3s;
}

.btn-outline-custom:hover {
    background: var(--accent);
    color: #ffffff;
    transform: translateY(-3px);
}

.social-links {
    display: flex;
    gap: 12px;
}

.social-links a {
    width: 42px;
    height: 42px;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    border: 1px solid var(--border);
    border-radius: 50%;
    color: var(--accent);
    font-size: 19px;
    transition: all 0.3s;
}

.social-links a:hover {
    background: var(--accent);
    color: #ffffff;
    transform: translateY(-4px);
}


/* ========== PROFILE DESIGN ========== */

/* Profile Picture Section */
.profile-wrapper {
    position: relative;
    display: inline-block;
    margin: 30px 0;
    animation: profileFloat 4s ease-in-out infinite;
}

/* Circular Profile */
.profile-circle {
    width: 320px;
    height: 320px;
    border-radius: 50%;
    padding: 7px;
    background: linear-gradient(135deg, #a78bfa, #e9d5ff, #8b5cf6);
    box-shadow: 0 15px 45px rgba(139, 92, 246, 0.25);
    overflow: hidden;
}

/* Profile Image */
.profile-img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center;
    border-radius: 50%;
    border: 4px solid white;
}

/* Floating Developer Card */
.floating-card {
    position: absolute;
    bottom: 25px;
    left: -25px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 13px 18px;
    background-color: #ffffff;
    color: #29213f;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
    animation: cardFloat 3s ease-in-out infinite;
}

.floating-card i {
    color: #8b5cf6;
    font-size: 22px;
}

/* Animations */
@keyframes profileFloat {
    0%, 100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-8px);
    }
}

@keyframes cardFloat {
    0%, 100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-5px);
    }
}

/* Responsive Design */
@media (max-width: 576px) {
    .profile-circle {
        width: 250px;
        height: 250px;
    }

    .floating-card {
        left: -5px;
        bottom: 15px;
        padding: 10px 12px;
        font-size: 12px;
    }

    .floating-card i {
        font-size: 18px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .profile-wrapper,
    .floating-card {
        animation: none;
    }
}




/* ========== SECTION HEADINGS ========== */

.section-heading {
    max-width: 650px;
    margin: 0 auto;
}

.section-subtitle {
    color: var(--accent);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 2px;
}

.section-heading h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    margin: 12px 0;
}

.section-heading > p:last-child {
    color: var(--muted);
}


/* ========== ABOUT ========== */

.about-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 45px 20px;
    box-shadow: var(--shadow);
}

.about-icon {
    font-size: 75px;
    color: var(--accent);
}

.about-card h3 {
    margin-top: 20px;
    font-weight: 700;
}

.about-card p {
    color: var(--muted);
}

.about-card .badge {
    background: var(--surface);
    color: var(--accent);
    border: 1px solid var(--border);
    padding: 10px 14px;
}

.info-box {
    display: flex;
    flex-direction: column;
    gap: 7px;
    background: var(--surface);
    padding: 18px;
    border-radius: 12px;
    border: 1px solid var(--border);
}

.info-box i {
    font-size: 22px;
}

.info-box span {
    color: var(--muted);
    font-size: 14px;
}


/* ========== SKILLS ========== */

.skill-card {
    height: 100%;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 28px;
    box-shadow: var(--shadow);
    transition: transform 0.3s, border-color 0.3s;
}

.skill-card:hover {
    transform: translateY(-7px);
    border-color: var(--accent);
}

.skill-icon {
    font-size: 42px;
    color: var(--accent);
}

.skill-card h4 {
    font-size: 20px;
    font-weight: 700;
    margin: 18px 0 10px;
}

.skill-card p {
    color: var(--muted);
    min-height: 48px;
    line-height: 1.7;
}

.progress {
    height: 7px;
    background: var(--border);
    border-radius: 20px;
    margin-top: 20px;
}

.progress-bar {
    background: var(--accent);
    border-radius: 20px;
}


/* ========== PROJECTS ========== */

.project-card {
    overflow: hidden;
    border: 1px solid var(--border);
    background: var(--card);
    border-radius: 16px;
    box-shadow: var(--shadow);
    transition: transform 0.3s;
}

.project-card:hover {
    transform: translateY(-7px);
}

.project-visual {
    min-height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.project-visual i {
    font-size: 75px;
    color: #ffffff;
}

.visual-one {
    background: linear-gradient(135deg, #7250c9, #b7a1f4);
}

.visual-two {
    background: linear-gradient(135deg, #a66b42, #e8b982);
}

.visual-three {
    background: linear-gradient(135deg, #28866d, #8bd5ac);
}

.project-content {
    padding: 25px;
}

.project-tag {
    color: var(--accent);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
}

.project-content h4 {
    margin: 12px 0;
    font-weight: 700;
}

.project-content p {
    color: var(--muted);
    line-height: 1.8;
}

.tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin: 18px 0;
}

.tech-tags span {
    padding: 6px 10px;
    font-size: 12px;
    color: var(--accent);
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 6px;
}

.project-link {
    display: inline-block;
    color: var(--accent);
    font-weight: 700;
    margin-top: 5px;
}

.project-link:hover {
    color: var(--accent-hover);
}


/* ========== CONTACT ========== */

.contact-card {
    padding: clamp(20px, 5vw, 40px);
    border-radius: 18px;
    background: var(--card);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
}

.contact-info {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
}

.contact-info > i {
    flex-shrink: 0;
    width: 45px;
    height: 45px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--surface);
    color: var(--accent);
    font-size: 20px;
}

.contact-info div {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.contact-info a,
.contact-info span {
    color: var(--muted);
    font-size: 14px;
    overflow-wrap: anywhere;
}

.contact-info a:hover {
    color: var(--accent);
}

.form-label {
    color: var(--text);
    font-weight: 600;
}

.form-control {
    background: var(--surface);
    color: var(--text);
    border: 1px solid var(--border);
    padding: 12px 14px;
}

.form-control::placeholder {
    color: var(--muted);
    opacity: 0.8;
}

.form-control:focus {
    background: var(--surface);
    color: var(--text);
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(118, 85, 217, 0.15);
}

#formMessage {
    color: var(--accent);
    overflow-wrap: anywhere;
}


/* ========== FOOTER ========== */

.footer {
    background: var(--bg);
    border-top: 1px solid var(--border);
    padding: 45px 0;
}

.footer-brand {
    width: 150px;
    height: 50px;
    font-size: 20px;
}

.footer p {
    color: var(--muted);
}

.footer strong {
    color: var(--text);
}

.back-to-top {
    color: var(--accent);
    font-weight: 600;
}

.back-to-top:hover {
    color: var(--accent-hover);
}


/* ========== RESPONSIVE DESIGN ========== */

@media (max-width: 991px) {
    .navbar .navbar-collapse {
        padding: 15px 0;
    }

    .navbar .nav-link {
        padding: 10px 0;
    }

    .theme-btn {
        margin-top: 10px;
    }

    .home-section {
        text-align: center;
    }

    .hero-description {
        margin-left: auto;
        margin-right: auto;
    }

    .home-section .social-links {
        justify-content: center;
    }
}

@media (max-width: 576px) {
    .section-padding {
        padding: 70px 0;
    }

    .home-section {
        padding-top: 120px;
    }

    .home-section h1 {
        font-size: 2.5rem;
    }

    .profile-circle {
        width: 240px;
        height: 240px;
    }

    .floating-card {
        left: -5px;
        bottom: 5px;
        font-size: 13px;
    }

    .contact-info a {
        font-size: 12px;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}
