/* -----------------------------
   GLOBAL STYLES
------------------------------- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Montserrat', sans-serif;
    text-decoration: none;
    list-style: none;
    scroll-behavior: smooth;
}

:root {
    --text-color: #fff;
    --bg-color: #1b1f24;
    --second-bg-color: #22282f;
    --main-color: #baaf0d;
    --other-color: #c3cad5;
}

body {
    background: var(--bg-color);
    color: var(--text-color);
    transition: 0.3s ease-in-out;
}

/* -----------------------------
   HEADER
------------------------------- */
header {
    position: fixed;
    width: 100%;
    top: 0;
    padding: 40px 5%;
    z-index: 1000;
    background: transparent;
    transition: 0.3s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height:60px;
    overflow: visible;
}

header.scrolled {
    background: #0d0c0c;
    box-shadow: 0 2px 10px rgba(0,0,0,0.35);
}

nav {
    display: flex;
    align-items: center;
    width: 100%;
    justify-content: space-between;
}

/* NAV LINKS */
.navlist {
    display: flex;
    gap: 40px;
    justify-content: center;
    flex: 1;
}
.navlist a {
    color: var(--other-color);
    font-weight: 500;
    transition: 0.3s;
}
.navlist a:hover { color: var(--main-color); }

/* RIGHT SECTION */
.header-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* LOGIN BUTTON */
.login-btn {
    color: var(--main-color);
    border: 2px solid var(--main-color);
    padding: 8px 16px;
    border-radius: 8px;
    transition: 0.3s;
}
.login-btn:hover {
    background: var(--main-color);
    color: #000;
}

/* THEME TOGGLE */
.theme-toggle {
    font-size: 26px;
    cursor: pointer;
    color: var(--text-color);
    transition: 0.3s;
}
.theme-toggle:hover { color: var(--main-color); }

/* HAMBURGER */
.hamburger {
    display: none;
    font-size: 30px;
    cursor: pointer;
    color: var(--text-color);
}

/* -----------------------------
   MOBILE MENU (TOP SLIDE)
------------------------------- */
.mobile-menu {
    position: fixed;
    top: -100%;
    left: 50%;
    transform: translateX(-50%);
    width: 260px; /* compact width */
    background: var(--bg-color);
    padding: 60px 20px;
    display: flex;
    flex-direction: column;
    gap: 18px;
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
    opacity: 0;
    visibility: hidden;
    transition: all 0.35s ease;
    z-index: 9999;
}

/* Menu opens */
.mobile-menu.open {
    top: 70px; /* below header */
    opacity: 1;
    visibility: visible;
}

/* Close (X) icon inside menu */
.close-menu {
    position: absolute;
    top: 12px;
    right: 12px;
    font-size: 28px;
    cursor: pointer;
    color: var(--text-color);
}

/* Mobile menu links */
.mobile-menu a {
    font-size: 18px;
    font-weight: 600;
    padding: 8px 0;
    color: var(--other-color);
    border-radius: 6px;
    transition: 0.3s;
}

/* Hover effect (both modes) */
.mobile-menu a:hover {
    background: var(--main-color);
    color: #000;
    transform: translateX(5px);
}

/* Login link */
.login-mobile {
    color: var(--main-color);
}

/* Light mode support */
body.light-mode .mobile-menu {
    background: var(--second-bg-color);
}
body.light-mode .mobile-menu a {
    color: var(--text-color);
}
body.light-mode .mobile-menu a:hover {
    background: var(--main-color);
    color: #000;
}

/* -----------------------------
   HERO
------------------------------- */
.main-body {
    min-height: 80vh;
    padding: 140px 10% 0 10%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.main-content {
    max-width: 600px;
}
.main-content h4 { font-size: 1.8rem; font-weight: 500; }
.main-content h1 { font-size: 3rem; font-weight: 700; }
.main-content p {
    width: 100%;
    color: var(--other-color);
    margin-bottom: 20px;
}

/* SOCIAL ICONS */
.social-main {
    margin-bottom: 20px;
}
.social-main i {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    color: var(--main-color);
    transition: 0.3s;
    margin-right: 12px;
}
.social-main i:hover {
    transform: scale(1.1);
    box-shadow: 0 0 15px var(--main-color);
}

/* BUTTON */
.btn {
    padding: 10px 18px;
    border: 2px solid var(--main-color);
    background: transparent;
    color: var(--text-color);
    border-radius: 8px;
    transition: 0.3s;
    cursor: pointer;
    display: inline-block;
}
.btn:hover {
    background: var(--main-color);
    color: #000;
    box-shadow: 0 0 18px var(--main-color);
}

.main-content .btn.download-cv { margin-top: 30px; }

/* HERO IMAGE */
.hero-img img {
    width: 340px;
    height: 340px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 0 40px var(--main-color);
    transition: 0.3s;
}
.hero-img img:hover { transform: scale(1.05); }

/* -----------------------------
   SERVICES
------------------------------- */
.service { 
    padding: 80px 10%; 
    text-align: center; 
}
.section-title { 
    font-size: 2.5rem; 
    margin-bottom: 40px; 
}

.service-container {
    display: flex;
    gap: 25px;
    justify-content: center;
    flex-wrap: wrap;
}
.service-box {
    width: 280px;
    background: var(--second-bg-color);
    padding: 25px;
    border-radius: 12px;
    transition: 0.3s;
}
.service-box:hover {
    transform: translateY(-6px);
    box-shadow: 0 0 15px var(--main-color);
}

.service-img {
    width: 100%;
    border-radius: 8px;
    margin-top: 5px;
    margin-bottom: 5px;
}

/* -----------------------------
   ABOUT
------------------------------- */
.about { 
    padding: 80px 10%; 
    text-align: center; 
}
.project-container {
    display: flex;
    justify-content: center;
    gap: 25px;
    flex-wrap: wrap;
}
.project-box {
    width: 280px;
    padding: 20px;
    background: var(--second-bg-color);
    border-radius: 12px;
    transition: 0.3s;
}
.project-box:hover {
    transform: scale(1.05);
    box-shadow: 0 0 15px var(--main-color);
}

.project-box a 
{
    text-decoration: none;
    color: white;
}

.project-img {
    width: 100%;
    border-radius: 8px;
    margin-top: 5px;
    margin-bottom: 5px;
}

/* -----------------------------
   CONTACT
------------------------------- */
.contact { padding: 80px 10%; }

.contact-wrapper {
    display: flex;
    gap: 40px;
    justify-content: center;
    flex-wrap: wrap;
    align-items: stretch;
}

.contact-left,
.contact-right {
    flex: 1 1 400px;
    display: flex;
    flex-direction: column;
    background: var(--second-bg-color);
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 6px 15px rgba(0,0,0,0.15);
    color: var(--text-color);
}

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

.contact-left .contact-card {
    background: var(--bg-color);
    display: flex;
    gap: 20px;
    padding: 18px;
    border-radius: 12px;
    align-items: flex-start;
    margin-bottom: 18px;
    box-shadow: 0 6px 15px rgba(0,0,0,0.15);
}

.contact-left .contact-card i {
    min-width: 40px;
    font-size: 28px;
    color: var(--main-color);
}

.contact-right h2 { margin-bottom: 20px; font-size: 26px; }

.contact-right form input,
.contact-right form textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 6px;
    margin-bottom: 12px;
    outline: none;
    background: var(--bg-color);
    color: var(--text-color);
}

.contact-right form input:focus,
.contact-right form textarea:focus {
    border-color: var(--main-color);
    box-shadow: 0 0 8px rgba(186, 175, 13, 0.4);
}

/* Send Message button */
.contact-right .btn:hover {
    background: var(--main-color);
    color: #000;
    box-shadow: 0 0 18px var(--main-color);
}

/* -----------------------------
   FOOTER
------------------------------- */
.footer {
    padding: 25px 0;
    text-align: center;
    background: #111;
    color: var(--other-color);
}
.footer a { color: var(--main-color); }
.footer-social a {
    font-size: 22px;
    color: var(--main-color);
    margin: 0 6px;
}

/* -----------------------------
   LIGHT MODE
------------------------------- */
body.light-mode {
    --text-color: #000;
    --bg-color: #f5f5f5;
    --second-bg-color: #e6e6e6;
    --other-color: #333;
}

body.light-mode header,
body.light-mode .footer {
    background: #e6e6e6;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* -----------------------------
   RESPONSIVE
------------------------------- */
@media(max-width: 768px) {
    .navlist,
    .login-btn { display: none !important; }
    .hamburger { display: block; }
}

@media(max-width: 576px) {
    header {
        padding: 12px 5%;
        height: 60px;
    }
    nav {
        justify-content: space-between;
    }
    .header-right {
        gap: 5px;
    }
}
@media(max-width: 480px) {
    .main-body {
        flex-direction: column;
        text-align: center;
        padding-top: 120px;
        gap: 30px;
    }
    .hero-img img {
        width: 280px;
        height: 280px;
    }
}

/* -----------------------------
   LOGO
------------------------------- */
.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 0;
    text-decoration: none;
    cursor: pointer;
}

.circle {
    position: relative;
    width: 50px;
    height: 50px;
    border: 3px solid var(--main-color);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: 800;
    font-size: 18px;
    color: var(--main-color);
    background: transparent;
}

.circle .star {
    position: absolute;
    top: 2px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 14px;
    color: var(--main-color);
}

.circle .mu {
    letter-spacing: -2px; /* join M & U */
    z-index: 1;
}

.script {
    font-family: "Dancing Script", cursive;
    font-size: 20px;
    color: var(--text-color);
}

/* Light mode support */
body.light-mode .circle,
body.light-mode .circle .star {
    color: #baaf0d;
    border-color: #baaf0d;
}

body.light-mode .script {
    color: #1b1f24;
}

/* Responsive */
@media(max-width: 480px) {
    .circle {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
    .circle .star {
        font-size: 12px;
        top: 1px;
    }
    .script {
        font-size: 16px;
    }
}

/* -----------------------------
   TOAST NOTIFICATION
------------------------------- */
.toast {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 12px 20px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    font-weight: 500;
    opacity: 0;
    transform: translateY(-20px);
    pointer-events: none;
    transition: all 0.5s ease;
    z-index: 10000;

    /* Default for dark mode */
    background: var(--main-color);
    color: #000;
}

/* Toast visible */
.toast.show {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

/* Light mode support */
body.light-mode .toast {
    background: #baaf0d;  /* Or any light-theme highlight color */
    color: #000;           /* Text visible on light mode */
}

