/* ============================================
   CSS Variables
   ============================================ */
:root {
    --bg-1: #001e57;
    --bg-2: #000000e7;
    --text: #e7e6ff;
    --muted: #9ca3d8;
    --accent: #3863ff;
    --accent-2: #ffffff;  /*stars*/
    --card: #3b0202;
    --card-2: #ffffff;
    --shadow: 0 10px 30px rgba(9, 4, 83, 0.15);
    --bg-loading: #000;
}

body.light-mode {
    --bg-1: #ffffff;
    --bg-2: #e7e6ff;
    --text: #000000e7;
    --muted: #555;
    --accent: #3863ff;
    --accent-2: #003cff; /*stars*/
    --card: #3b0202;
    --card-2: #ffffff;
    --shadow: 0 10px 30px rgba(9, 4, 83, 0.15);
    --bg-loading: #fff;
}

:root {
    scroll-behavior: smooth;
}


/* ============================================
   Reset & Base Styles
   ============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Roboto Slab", serif;

}

html {
    scroll-behavior: smooth;
}

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


/* Background with animated stars */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(ellipse at top, var(--bg-2) 0%, var(--bg-1) 100%);
    z-index: -2;
}

body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(2px 2px at 20px 30px, var(--accent-2), transparent),
        radial-gradient(2px 2px at 40px 70px, var(--accent-2), transparent),
        radial-gradient(1px 1px at 90px 40px, var(--accent-2), transparent),
        radial-gradient(1px 1px at 130px 80px, var(--accent-2), transparent),
        radial-gradient(2px 2px at 160px 30px, var(--accent-2), transparent);
    background-repeat: repeat;
    background-size: 200px 100px;
    animation: stars 20s linear infinite;
    opacity: 0.3;
    z-index: -1;
}

@keyframes stars {
    from {
        transform: translateY(0px);
    }

    to {
        transform: translateY(-100px);
    }
}

/* ============================================
   loading-screen
   ============================================ */
#loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--bg-loading);
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    z-index: 9999;
    overflow: hidden;
    color: var(--accent);
    text-align: center;
}

#loading-text {
    display: inline-block;
    min-height: 55px;
    line-height: 55px;
}

.loading-content {
    min-height: 300px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.hidden {
    opacity: 0;
    pointer-events: none;
}

@keyframes fall {
    0% {
        opacity: 0;
        transform: translateY(-100px);
    }

    50% {
        opacity: 1;
        transform: translateY(55px);
    }

    70% {
        /* transform: translateY(10px); */
    }

    100% {
        transform: translateY(0);
    }
}

.fall {
    animation: fall 1s ease-out forwards;
}

.loading-content h1,
.loading-content h2 {
    margin: 20px 0;
    font-size: 40px !important;
    font-weight: bold !important;
}

.sub-icons1 {
    height: 60px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 25px;
}

/* ============================================
   Container & Section
   ============================================ */
/* .container - مستخدم في index.html */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* .section - مستخدم في index.html (id="about") */
.section {
    padding: 60px 0;
}

/* .section-title - مستخدم في index.html */
.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 80px;
    color: var(--text);
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--accent), var(--accent-2));
    border-radius: 2px;
}

/* ============================================
   Navigation Bar
   ============================================ */
/* #navbar - مستخدم في index.html */
#navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    max-width: 100vw;
    background: rgba(56, 99, 255, 0.1);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgb(255, 255, 255);
    z-index: 1000;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

body.light-mode #navbar {
    background: #80808024;
}

/* .nav-container - مستخدم في index.html */
.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    box-sizing: border-box;
}

/* .logo - مستخدم في index.html */
.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text);
}

/* .logo-accent - مستخدم في index.html */
.logo-accent {
    color: var(--accent);
}

/* .icon-wrapper - مستخدم في index.html */
.icon-wrapper {
    position: relative;
    display: inline-block;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    margin-right: 5px;
}

/* .main-icon - مستخدم في index.html */
.main-icon {
    font-size: 2rem;
}

/* .sub-icon - مستخدم في index.html */
.sub-icon {
    position: absolute;
    font-size: 1.2rem;
    bottom: 5px;
    right: 5px;
}

/* .text-teal - مستخدم في index.html */
.text-teal {
    color: var(--accent);
}

/* .text-purple - مستخدم في index.html */
.text-purple {
    color: #fff;
}

/* .rotate-15 - مستخدم في index.html */
/* .rotate-15 {
    transform: rotate(15deg);
    transition: transform 0.3s;
} */

/* .rotate-n15 - مستخدم في index.html */

.rotate-15 {
    animation: rotateSwitch 8s linear infinite;
}

@keyframes rotateSwitch {
    0% {
        transform: rotate(0deg);
    }

    50% {
        transform: rotate(360deg);
        /* مع عقارب الساعة لمدة 5 ثواني */
    }

    100% {
        transform: rotate(0deg);
        /* يرجع ويكمل الـ 5 ثواني عكس عقارب الساعة */
    }
}

.icon-wrapper:hover .rotate-15,
.icon-wrapper:hover .rotate-n15 {
    animation-play-state: paused;
}



/* .nav-menu - مستخدم في index.html */
.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
}

/* .nav-link - مستخدم في index.html */
.nav-link {
    color: #888888;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

/* .nav-link.active - مستخدم في index.html */
.nav-link.active,
.nav-link:hover {
    color: white;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: width 0.3s ease;
}

.nav-link.active::after,
.nav-link:hover::after {
    width: 100%;
}

/* .nav-social - مستخدم في index.html */
.nav-social {
    display: flex;
    gap: 15px;
}

/* .social-icon - مستخدم في index.html */
.social-icon {
    color: #888888;
    transition: all 0.3s ease;
    padding: 8px;
    border-radius: 50%;
}

.social-icon:hover {
    color: white;
    transform: scale(1.1);
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.3);
}

/* .hamburger - مستخدم في index.html */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--text);
    transition: all 0.3s ease;
    border-radius: 2px;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(4px, 6px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(4px, -6px);
}

/* ============================================
   Hero Section
   ============================================ */
/* .hero - مستخدم في index.html (id="home") */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 80px 0 80px;
}

/* .hero-content - مستخدم في index.html */
.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

/* .hero-text - مستخدم في index.html */
.hero-text {
    animation: slideInLeft 1s ease-out;
}

/* .greeting - مستخدم في index.html */
.greeting {
    color: var(--muted);
    font-size: 1.1rem;
    margin-bottom: 15px;
}

/* .hero-title - مستخدم في index.html */
.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
    color: var(--text);
}

/* .cursor - مستخدم في index.html */
.cursor {
    color: var(--accent);
    animation: blink 1s infinite;
}

@keyframes blink {

    0%,
    50% {
        opacity: 1;
    }

    51%,
    100% {
        opacity: 0;
    }
}

/* .hero-quote - مستخدم في index.html */
.hero-quote {
    color: var(--muted);
    font-size: 1.1rem;
    margin-bottom: 35px;
}

/* .hero-buttons - مستخدم في index.html */
.hero-buttons {
    display: flex;
    gap: 20px;
    margin-bottom: 40px;
}

/* .glow-genz-button - مستخدم في index.html */
.glow-genz-button {
    background: transparent;
    border: 2px solid var(--accent);
    border-radius: 12px;
    color: var(--accent);
    font-weight: 700;
    font-size: 17px;
    padding: 12px 36px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    position: relative;
    overflow: hidden;
}

.glow-genz-button:first-child {
    background-color: var(--accent);
    color: white;
}

.glow-genz-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, var(--accent), var(--accent-2), #7f7fff, #3845ff);
    background-size: 400% 400%;
    animation: glowGradient 4s ease infinite;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.glow-genz-button:hover {
    color: white;
    border-color: var(--accent-2);
    box-shadow: 0 0 25px rgb(69, 56, 255), 0 0 50px rgba(100, 92, 255, 0.8);
    transform: scale(1.05);
}

body.light-mode button.glow-genz-button:nth-of-type(2):hover {
    color: var(--accent);
}

.glow-genz-button:hover::before {
    opacity: 1;
}

@keyframes glowGradient {
    0% {
        background-position: 0% 50%;
    }

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

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

/* .hero-social - مستخدم في index.html */
.hero-social {
    display: flex;
    gap: 15px;
}

/* .social-link - مستخدم في index.html */
.social-link {
    color: var(--muted);
    transition: all 0.3s ease;
    padding: 12px;
    border-radius: 50%;
}

.social-link:hover {
    color: var(--accent);
    transform: scale(1.1);
}

/* .hero-visual - مستخدم في index.html */
.hero-visual {
    display: flex;
    justify-content: center;
    animation: slideInRight 1s ease-out;
}

/* .avatar-container - مستخدم في index.html */
.avatar-container {
    position: relative;
    width: 500px;
    height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* .sun-core - مستخدم في index.html */
.sun-core {
    width: 230px;
    height: 230px;
    border-radius: 50%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    /* border: 4px solid #0037ffb3; */
    box-shadow:
        0 0 40px rgba(0, 0, 255, 0.8),
        0 0 80px rgba(0, 0, 255, 0.5),
        0 0 120px rgba(0, 0, 255, 0.3),
        inset 0 0 30px rgba(0, 0, 255, 0.4);
    animation: sunGlow 3s ease-in-out infinite alternate;
    cursor: pointer;
    transition: transform 0.3s ease;
    overflow: hidden;
}

.sun-core img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.sun-core:hover {
    transform: translate(-50%, -50%) scale(1.1);
}

@keyframes sunGlow {
    0% {
        box-shadow:
            0 0 40px rgba(0, 0, 255, 0.8),
            0 0 80px rgba(0, 0, 255, 0.5),
            0 0 120px rgba(0, 0, 255, 0.3),
            inset 0 0 30px rgba(0, 0, 255, 0.4);
    }

    100% {
        box-shadow:
            0 0 50px rgba(0, 0, 255, 0.555),
            0 0 100px rgba(0, 0, 255, 0.361),
            0 0 150px rgba(0, 0, 255, 0.4),
            inset 0 0 40px rgba(0, 0, 255, 0.219);
    }
}

/* .orbit-icon - مستخدم في index.html */
/* .orbit-icon.html, .orbit-icon.css, .orbit-icon.js, .orbit-icon.react, 
   .orbit-icon.nextjs, .orbit-icon.tailwind, .orbit-icon.github - مستخدمة في index.html */
.orbit-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    font-size: 10px;
    font-weight: bold;
    color: var(--text);
    background: var(--text);
    cursor: pointer;
    transition: all 0.3s ease;
    transform-origin: 0 0;
}

body.light-mode .orbit-icon {
    background: var(--card-2);
}

.orbit-icon img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.orbit-icon:hover {
    background: var(--card-2);
    box-shadow: 0 0 10px var(--card-2);
    transform: scale(1.2);
}

/* ============================================
   About Section
   ============================================ */
/* .about-content - مستخدم في index.html */
.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
    margin-top: 60px;
}

/* .about-text - مستخدم في index.html */
.about-text p {
    margin-bottom: 20px;
    line-height: 1.8;
    color: var(--muted);
}

/* .skills - مستخدم في index.html */
.skills h3 {
    color: var(--text);
    margin-bottom: 20px;
    font-size: 1.2rem;
}

/* .skills-grid - مستخدم في index.html */
.skills-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

/* .skill-tag - مستخدم في index.html */
.skill-tag {
    background: rgba(56, 69, 255, 0.1);
    color: var(--accent);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    border: 1px solid rgba(56, 79, 255, 0.3);
    transition: all 0.3s ease;
}

.skill-tag:hover {
    background: var(--accent);
    color: white;
    transform: scale(1.05);
}

/* .about-visual - مستخدم في index.html */
.about-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

/* .code-animation - مستخدم في index.html */
.code-animation {
    background: rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(56, 86, 255, 0.3);
    border-radius: 12px;
    padding: 30px;
    font-size: 1.1rem;
    color: var(--accent);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

/* .code-line - مستخدم في index.html */
.code-line {
    margin-bottom: 8px;
}

/* .code-line.indent - مستخدم في index.html */
.code-line.indent {
    margin-left: 20px;
}

/* ============================================
   Animation Classes
   ============================================ */
/* .slide-in-left - مستخدم في index.html */
/* .slide-in-left {
    transform: translateX(-30px);
    opacity: 0;
    transition: all 1.5s ease;
} */

/* .slide-in-right - مستخدم في index.html */
/* .slide-in-right {
    transform: translateX(30px);
    opacity: 0;
    transition: all 1.5s ease;
} */

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }

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

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }

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

/* Orbit rotation animations - مستخدمة في JavaScript للـ orbit icons */
@keyframes rotate {
    from {
        transform: translate(-50%, -50%) rotate(0deg);
    }

    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

@keyframes counterRotate {
    from {
        transform: translate(-50%, -50%) rotate(0deg);
    }

    to {
        transform: translate(-50%, -50%) rotate(-360deg);
    }
}

/* ============================================
   Media Queries
   ============================================ */
@media (max-width: 1024px) {
    .hero-content {
        grid-template-columns: 1fr;
        gap: 50px;
        text-align: center;
    }

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

    .hero-title {
        font-size: 3rem;
    }

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

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 70px;
        left: 0;
        width: 100%;
        background: rgba(6, 21, 38, 0.95);
        backdrop-filter: blur(10px);
        flex-direction: column;
        padding: 20px;
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        border-bottom: 1px solid rgba(56, 182, 255, 0.1);
    }

    body.light-mode .nav-menu {
        background: rgba(255, 255, 255, 0.95);
    }

    .nav-menu.active {
        transform: translateX(0);
    }

    .hamburger {
        display: flex;
    }

    .hero-content {
        gap: 40px;
    }

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

    .hero-title {
        font-size: 2.5rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .avatar-container {
        width: 450px;
        height: 450px;
    }

    .sun-core {
        width: 190px;
        height: 190px;
    }

    .about-content {
        gap: 40px;
    }
}

@media (max-width: 640px) {
    .container {
        padding: 0 15px;
    }

    .section {
        padding: 60px 0;
    }

    .hero-content {
        gap: 30px;
    }

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

    .greeting {
        font-size: 1rem;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-quote {
        font-size: 1rem;
    }

    .avatar-container {
        width: 320px;
        height: 320px;
    }

    .sun-core {
        width: 165px;
        height: 165px;
    }

    .orbit-icon.html {
        width: 40px;
        height: 40px;
    }

    .orbit-icon.css {
        width: 40px;
        height: 40px;
    }

    .orbit-icon.js {
        width: 40px;
        height: 40px;
    }

    .orbit-icon.react {
        width: 40px;
        height: 40px;
    }

    .orbit-icon.nextjs {
        width: 40px;
        height: 40px;
    }

    .orbit-icon.tailwind {
        width: 40px;
        height: 40px;
    }

    .orbit-icon.github {
        width: 40px;
        height: 40px;
    }

    .nav-container {
        padding: 12px 15px;
    }

    .about-content {
        gap: 30px;
    }

    .skills-grid {
        justify-content: center;
    }

    .logo {
        font-size: 1.2rem;
    }

    .icon-wrapper {
        /* display: none; */
    }
}

/* ============================================
   resume-content
   ============================================ */
.resume-content {
    display: flex;
    gap: 60px;
    flex-wrap: wrap;
    justify-content: center;
}

.resume-left,
.resume-right {
    flex: 1;
    min-width: 280px;
    max-width: 500px;
}

.resume-left h3,
.resume-right h3 {
    color: var(--accent);
    margin-bottom: 20px;
}

/* ============================================
   Projects Section
   ============================================ */
.projects {
    background: var(--bg-1);
    clip-path: ellipse(110% 85% at 50% 85%);
    position: relative;
    overflow: hidden;
}

@media (max-width: 991px) {
    .projects {
        clip-path: ellipse(160% 85% at 50% 85%);
    }
}

@media (max-width: 700px) {
    .projects {
        clip-path: ellipse(250% 85% at 50% 85%);
        border-radius: 24px 24px 0 0;
    }

    .projects::before {
        left: 50%;
        transform: translateX(-50%);
        width: 280px;
        height: 280px;
        bottom: 10%;
    }
}

@media (max-width: 480px) {
    .projects {
        clip-path: ellipse(270% 85% at 50% 85%);
    }
}

.projects::before {
    content: '';
    position: absolute;
    bottom: 20%;
    left: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(56, 99, 255, 0.05) 0%, transparent 70%);
    border-radius: 50%;
    filter: blur(100px);
    animation: float 10s ease-in-out infinite reverse;
}

.projects-content {
    max-width: 1300px;
    margin: 0 auto;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2.5rem;
}

.project-card {
    border: 1px solid var(--bg-2);
    border-radius: 12px;
    overflow: hidden;
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow);
    transition: all 0.3s ease-in;
}

.project-card:hover {
    border: 1px solid var(--accent);
    transform: translateY(-10px);
}

.project-image {
    position: relative;
    overflow: hidden;
}

.project-image img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: 0.3s ease;
}

.project-card:hover .project-image img {
    transform: scale(1.1);
}

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(56, 99, 255, 0.9);
    /* accent-primary */
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: 0.3s ease;
}

.project-card:hover .project-overlay {
    opacity: 1;
}

.project-links {
    display: flex;
    gap: 1rem;
}

.project-link {
    width: 50px;
    height: 50px;
    background: var(--bg-2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--card-2);
    text-decoration: none;
    transition: 0.3s ease;
}

body.light-mode .project-link {
    color: var(--text);
}

.project-link:hover {
    transform: scale(1.1);
    background: var(--accent);
}

body.light-mode .project-link:hover {
    color: var(--card-2);
}

.project-info {
    padding: 2rem;
}

.project-info h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    text-align: center;
    font-weight: bold;
    color: var(--text);
    cursor: pointer;
    transition: all 0.3s;
}

.project-card:hover h3 {
    color: var(--accent);
}

.project-info p {
    color: var(--muted);
    line-height: 1.5;
    margin-bottom: 1.5rem;
}

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

.project-tech span {
    background: rgba(56, 99, 255, 0.1);
    color: var(--accent);
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 500;
}

@media (max-width: 768px) {
    .projects-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

@media (max-width: 480px) {
    .project-info {
        padding: 1.5rem;
    }
}

/* ============================================
   contact Section
   ============================================ */
.contact-container {
    max-width: 1100px;
    margin: 0px auto;
    background: var(--bg-1);
    padding: 20px;
    border-radius: 10px;
    box-shadow: 1px 1px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    gap: 30px;
}

#contact .section-title {
    color: var(--accent);
    font-weight: bold;
}

.contact-form {
    background: var(--accent);
    padding: 20px;
    border-radius: 10px;
    color: white;
    flex: 1;
}

.contact-form input,
.contact-form textarea {
    background: transparent;
    border: none;
    border-bottom: 1px solid white;
    color: white;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    /* color: var(--muted); */
    color: #9ca3d8;
}

.contact-form input:focus,
.contact-form textarea:focus {
    background: transparent;
    outline: none;
    box-shadow: none;
    border-bottom: 1px solid white;
}

.send-btn {
    background: white;
    color: var(--accent);
    border: none;
    padding: 5px 20px;
    border-radius: 20px;
    font-weight: bold;
}

.send-btn:hover {
    background: #f0f0f0;
}

.contact-info {
    flex: 1;
    color: var(--muted);
}

.contact-info .p-one {
    font-size: 18px;
    color: var(--muted);
}

.contact-info a {
    display: flex;
    align-items: center;
    color: var(--accent);
    font-size: 18px;
    text-decoration: none;
}

.contact-info a i {
    margin-left: 10px;
    font-size: 20px;
    transition: transform 0.3s ease;
}

.contact-info a:hover i {
    transform: scale(1.2);
}

.contact-container form textarea:focus::placeholder,
.contact-container form input:not([type="submit"]):focus::placeholder {
    opacity: 0;
    transition: 0.3s;
}

@media (max-width: 768px) {
    .contact-container {
        flex-direction: column;
        gap: 5px;
    }

    .contact-info {
        margin-top: 20px;
    }
}

@media (max-width: 539px) {
    .contact-form .row .col {
        width: 100%;
        margin-bottom: 15px;
        display: contents;
    }

    .contact-form input,
    .contact-form textarea {
        width: 100%;
        padding: 10px;
        box-sizing: border-box;
    }

    .send-btn {
        width: 100%;
        padding: 15px 20px;
    }
}

/* ============================================
   Theme Switcher
   ============================================ */
.theme-switcher {
    display: flex;
    align-items: center;
}

/* New styles for the right side of the navbar */
.nav-right {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    /* Space between theme switcher and hamburger */
}

@media (max-width: 768px) {
    .nav-container {
        justify-content: space-between;
    }
}

#theme-toggle {
    background: transparent;
    border: 1px solid var(--muted);
    cursor: pointer;
    padding: 5px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    width: 38px;
    height: 38px;
    transition: all 0.3s ease;
}

#theme-toggle:hover {
    /* border-color: var(--accent); */
    transform: scale(1.1) rotate(360deg);
}

#theme-toggle svg {
    position: absolute;
    transition: opacity 0.3s, transform 0.4s cubic-bezier(0.68, -0.55, 0.27, 1.55);
    color: var(--card-2);
    width: 20px;
    height: 20px;
}

body.light-mode #theme-toggle svg {
    color: var(--accent);
}

.moon-icon {
    opacity: 1;
    transform: scale(1) rotate(0deg);
}

.sun-icon {
    opacity: 0;
    transform: scale(0) rotate(-90deg);
}

body.light-mode .moon-icon {
    opacity: 0;
    transform: scale(0) rotate(90deg);
}

body.light-mode .sun-icon {
    opacity: 1;
    transform: scale(1) rotate(0deg);
}

/* # Scroll Top Button */
/* --------------------------------------------------------------*/
.scroll-top {
    position: fixed;
    visibility: hidden;
    opacity: 0;
    right: 15px;
    bottom: 15px;
    z-index: 99999;
    background-color: var(--accent);
    width: 40px;
    height: 40px;
    border-radius: 4px;
    transition: all 0.4s;
}

.scroll-top i {
    font-size: 40px;
    color: var(--card-2);
    line-height: 0;
}

.scroll-top:hover {
    background-color: color-mix(in srgb, var(--accent), transparent 20%);
    color: var(--accent-2);
}

.scroll-top.active {
    visibility: visible;
    opacity: 1;
}
