/* --- Global Styles & NEW "Sandal" Light Theme Variables --- */
:root {
    --bg-color: #F8F5F2; /* Soft, warm, sandy off-white */
    --primary-color: #ff0000; /* Strong, tasteful red accent */
    --secondary-color: #FFFFFF; /* Pure white for cards and sections */
    --text-color: #5c5c5c; /* Medium-dark grey for body text */
    --heading-color: #1a1a1a; /* Very dark charcoal for headings */
    --shadow-color: rgba(0, 0, 0, 0.1); /* Soft, black-based shadow */
    --primary-gradient: linear-gradient(90deg, #D93B3B, #E57373); /* Red gradient */
}

/* --- Base Styles --- */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { 
    font-family: 'Poppins', sans-serif; 
    background-color: var(--bg-color); 
    color: var(--text-color); 
    line-height: 1.7; 
    overflow-x: hidden; /* Prevents horizontal scroll */
}
.container { max-width: 1100px; margin: 0 auto; padding: 0 2rem; }
h1, h2 { color: var(--heading-color); font-weight: 700; }
section { padding: 6rem 0; position: relative; z-index: 1; }

/* --- UPGRADED Navbar --- */
.navbar { 
    position: fixed; 
    width: 100%; 
    top: 0; 
    left: 0; 
    z-index: 1000; 
    padding: 1.5rem 0; 
    transition: background-color 0.3s ease, padding 0.3s ease, box-shadow 0.3s ease; 
}
.navbar.scrolled { 
    background-color: rgba(255, 255, 255, 0.85); /* Semi-transparent white on scroll */
    backdrop-filter: blur(10px); 
    box-shadow: 0 2px 10px rgba(0,0,0,0.05); 
    padding: 1rem 0; 
}
.nav-container { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    max-width: 1200px; 
    margin: 0 auto; 
    padding: 0 2rem; 
}

/* --- NEW CSS for your Image Logo --- */

/* Styles the link that contains the logo */
.nav-logo {
    display: inline-block; /* Good for alignment and hover effects */
    text-decoration: none;
    line-height: 0; /* Removes extra space under the image */
}

/* Styles the logo image itself */
.nav-logo img {
    height: 60px; /* <-- Adjust the height of your logo here */
    width: auto;  /* This maintains the correct aspect ratio */
    transition: transform 0.3s ease-in-out;
}

/* Adds a simple scale effect when you hover over the logo */
.nav-logo:hover img {
    transform: scale(1.1);
}

.nav-menu { list-style: none; display: flex; gap: 2.5rem; }
.nav-menu a { 
    color: var(--text-color); 
    text-decoration: none; 
    font-weight: 600; 
    transition: color 0.3s ease; 
}
.nav-menu a:hover { color: var(--primary-color); }


/* --- Hero Section --- */
#home {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    position: relative;
    background-color: var(--bg-color);
}

.hero-container { position: relative; z-index: 1; transform: translateY(-5%); }
.hero-title {
    font-family: 'Share Tech Mono', monospace;
    text-transform: uppercase;
    font-size: clamp(2.5rem, 7vw, 4.5rem);
    /* Monospaced fonts are wide */
    font-weight: 400;
    /* This font's regular weight is all you need */
    line-height: 1.2;
    margin-bottom: 2rem;
}

.hero-subtitle {
    display: flex;
    justify-content: center;
    align-items: baseline;
    gap: 0.5em;
    flex-wrap: wrap;
    font-size: clamp(1.5rem, 4vw, 2.2rem); 
    font-weight: 300; 
    color: var(--text-color); 
    margin-top: 1rem;
}

/* ===== Animated Text (Redesigned for Light Theme) ===== */
.neon-text-container {
    display: inline-block;
    position: relative;
    vertical-align: middle;
}
.neon-text-container::after {
    content: attr(data-word);
    font-weight: 600;
    color: transparent;
    white-space: nowrap;
}
.neon-text-word {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    text-align: center;
    font-weight: 600;
    white-space: nowrap;
    opacity: 0; /* Hidden by default */
    color: var(--primary-color); /* Solid red color */
}
/* Animation classes added by JS */
.neon-text-word.is-entering { animation: fade-in-up 0.5s forwards; }
.neon-text-word.is-exiting { animation: fade-out-up 0.5s forwards; }

@keyframes fade-in-up {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes fade-out-up {
    from { opacity: 1; transform: translateY(0); }
    to   { opacity: 0; transform: translateY(-20px); }
}

/* --- UPGRADED Buttons --- */
.btn { 
    display: inline-block; 
    background: var(--primary-color); 
    color: #ffffff; 
    padding: 1rem 3rem; 
    border-radius: 50px; 
    text-decoration: none; 
    font-weight: 600; 
    transition: transform 0.3s ease, box-shadow 0.3s ease; 
    border: none; 
    box-shadow: 0 5px 15px var(--shadow-color); 
}
.btn:hover { 
    transform: translateY(-5px); 
    box-shadow: 0 10px 25px var(--shadow-color); 
}

/* --- UPGRADED Section Headings --- */
h2 { text-align: center; font-size: 2.8rem; margin-bottom: 4rem; position: relative; padding-bottom: 15px; }
h2::after { content: ''; position: absolute; bottom: 0; left: 50%; transform: translateX(-50%); width: 80px; height: 4px; background: var(--primary-gradient); border-radius: 2px; }

/* --- UPGRADED About Section --- */
#about { background-color: var(--secondary-color); }
.about-content { display: flex; gap: 4rem; align-items: center; flex-wrap: wrap; justify-content: center; }
.about-image { flex: 1; max-width: 320px; text-align: center; }
.about-image img { 
    width: 100%; 
    border-radius: 15px; 
    border: 3px solid var(--heading-color); 
    box-shadow: 0 10px 30px var(--shadow-color); 
    transition: transform 0.3s ease, box-shadow 0.3s ease; 
}
.about-image img:hover { 
    transform: scale(1.05) translateY(-5px); 
    box-shadow: 0 15px 40px var(--shadow-color); 
}
.about-text { flex: 2; min-width: 300px; }
.about-text p { margin-bottom: 1rem; }

/* --- Projects Section (Swiper) --- */
#projects { background-color: var(--bg-color); }
.swiper { width: 100%; padding-top: 50px; padding-bottom: 50px; }
.swiper-slide { 
    background-position: center; 
    background-size: cover; 
    width: 320px; 
    height: 320px; 
    border-radius: 15px; 
    overflow: hidden; 
    box-shadow: 0 15px 35px rgba(0,0,0,0.1); 
    border: 2px solid var(--secondary-color);
}
.swiper-slide img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.swiper-slide-active {
    box-shadow: 0 20px 45px rgba(0,0,0,0.2);
    transform: scale(1.02);
}
.swiper-slide-active img { transform: scale(1.1); }

/* --- Contact Section --- */
#contact { background-color: var(--secondary-color); }
.contact-content { text-align: center; max-width: 600px; margin: 0 auto; }
.social-links { margin-top: 2.5rem; }
.social-links a { 
    color: var(--text-color); 
    font-size: 2.5rem; 
    margin: 0 1.5rem; 
    transition: color 0.3s ease, transform 0.3s ease; 
    display: inline-block; 
}
.social-links a:hover { 
    color: var(--primary-color); 
    transform: scale(1.2) translateY(-5px); 
}

/* --- Footer --- */
footer { 
    background-color: #EAE6E1; 
    text-align: center; 
    padding: 2rem 0; 
    margin-top: 0; 
    color: #888; 
    font-size: 0.9rem; 
    border-top: 1px solid #ddd; 
}

/* Add these new styles for the credit link */
.footer-credit {
    margin-top: 0.5rem;
}

.footer-credit a {
    color: var(--primary-color); /* Uses your site's red accent color */
    text-decoration: none;
    font-weight: 600;
    transition: opacity 0.3s ease;
}

.footer-credit a:hover {
    text-decoration: underline;
    opacity: 0.8;
}

.visitor-badge {
    margin-top: 1rem;
    margin-bottom: 1rem;
    /* Adds a little space */
}

/* ===== MOBILE NAVIGATION & RESPONSIVE DESIGN ===== */
.nav-toggle {
    display: none;
    position: relative;
    z-index: 1001;
    border: none;
    background: transparent;
    width: 30px;
    height: 30px;
    cursor: pointer;
}
.hamburger, .hamburger::before, .hamburger::after {
    content: '';
    position: absolute;
    left: 0;
    width: 28px;
    height: 3px;
    background-color: var(--heading-color);
    border-radius: 2px;
    transition: transform 0.3s ease, top 0.3s ease, background-color 0.3s ease;
}
.hamburger { top: 50%; transform: translateY(-50%); }
.hamburger::before { top: -8px; }
.hamburger::after { top: 8px; }

.nav-toggle.active .hamburger { background-color: transparent; }
.nav-toggle.active .hamburger::before { top: 0; transform: rotate(45deg); }
.nav-toggle.active .hamburger::after { top: 0; transform: rotate(-45deg); }

@media (max-width: 768px) {
    .nav-toggle { display: block; }
    .nav-menu {
        position: fixed;
        top: 0;
        right: 0;
        width: 100%;
        height: 100vh;
        background-color: rgba(248, 245, 242, 0.95);
        backdrop-filter: blur(15px);
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 3rem;
        transform: translateX(100%);
        transition: transform 0.4s cubic-bezier(0.77, 0, 0.175, 1);
    }
    .nav-menu.active { transform: translateX(0); }
    .nav-menu a { font-size: 1.5rem; }
    .hero-title { font-size: clamp(2.5rem, 10vw, 4rem); }
    .hero-subtitle { font-size: clamp(1.2rem, 5vw, 1.8rem); }
    .about-content { flex-direction: column; text-align: center; gap: 2rem; }
    .about-image { max-width: 250px; }
    h2 { font-size: 2.2rem; margin-bottom: 3rem; }
    .social-links a { font-size: 2.2rem; margin: 0 1.2rem; }
}
@media (max-width: 480px) {
    .nav-logo { font-size: 1.5rem; }
    .btn { padding: 0.8rem 2.2rem; font-size: 0.9rem; }
    section { padding: 4rem 0; }
    h2 { font-size: 2rem; }
}