/* ==========================================
   GLOBAL STYLES & VARIABLES
   ========================================== */
/* ==========================================
   1. COLOR SYSTEM (UPDATED FOR HEADER)
   ========================================== */
:root {
    /* --- DARK MODE (Default) --- */
    --nav-bg: rgba(10, 14, 39, 0.85); /* 85% Opacity for Glass Effect */
    --nav-border: rgba(0, 255, 204, 0.1);
    --nav-text: #ffffff;
    --nav-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    
    /* Keep your existing variables below... */
    --primary-color: #00ffcc;
    --text-primary: #ffffff;
    --bg-dark: #0a0e27;
}

body.light-mode {
    /* --- LIGHT MODE (Clean White Look) --- */
    /* --nav-bg: rgba(255, 255, 255, 0.90); /* Frosted White */
    /* --nav-border: rgba(0, 0, 0, 0.05);
    --nav-text: #1e293b; /* Dark Slate Gray */
    --nav-shadow: 0 4px 20px rgba(0, 0, 0, 0.08); Soft Shadow */
    
    /* Keep your existing variables below... */
    /* --primary-color: #008f72;
    --text-primary: #1e293b;
    --bg-dark: #f0f4f8; */ */

    /* ==========================================
   FORCE FIX: LIGHT MODE NAVBAR
   ========================================== */
body.light-mode .navbar {
    background: rgba(255, 255, 255, 0.95) !important; /* Forces White BG */
    border-bottom: 1px solid rgba(0, 0, 0, 0.1) !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05) !important;
}

/* Make sure menu links are visible (Dark Grey) */
body.light-mode .nav-link {
    color: #19233e !important; 
}

/* Fix Hover Color in Light Mode */
body.light-mode .nav-link:hover {
    color: #2563eb !important; /* Royal Blue */
}

/* Ensure Logo is Dark */
body.light-mode .logo a {
    background: none !important;
    -webkit-text-fill-color: #1e293b !important;
    color: #1e293b !important;
}

/* Fix Toggle Button visibility */
body.light-mode .theme-toggle {
    color: #f59e0b !important; /* Orange Sun */
    border-color: #f59e0b !important;
    background: #ffffff !important;
}
    
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Syne', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
}

/* ==========================================
   TYPOGRAPHY & UTILITIES
   ========================================== */
h1, h2, h3, h4 {
    font-weight: 700;
}

.accent-text {
    color: var(--primary-color);
    text-shadow: 0 0 20px rgba(0, 255, 204, 0.3);
}

/* ==========================================
   MODERN GLASSMORPHISM NAVBAR (FIXED)
   ========================================== */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    height: 80px;
    display: flex;
    align-items: center;
    
    /* Glass Effect */
    background: var(--nav-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    
    border-bottom: 1px solid var(--nav-border);
    box-shadow: var(--nav-shadow);
    transition: all 0.3s ease;
    z-index: 1000;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
}

/* --- LOGO STYLING --- */
.logo a {
    text-decoration: none;
    font-family: 'Bebas Neue', cursive;
    font-size: 32px;
    letter-spacing: 2px;
    background: linear-gradient(90deg, var(--primary-color), #00c6ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0px 0px 20px rgba(0, 255, 204, 0.3);
    transition: 0.3s;
}

body.light-mode .logo a {
    background: none;
    -webkit-text-fill-color: var(--nav-text);
    color: var(--nav-text);
    text-shadow: none;
}

/* --- MENU LINKS --- */
.nav-menu {
    display: flex;
    list-style: none;
    gap: 35px;
    align-items: center;
}

.nav-link {
    color: var(--nav-text);
    text-decoration: none;
    font-weight: 500;
    font-size: 15px;
    letter-spacing: 1px;
    text-transform: uppercase;
    position: relative;
    padding: 5px 0;
    transition: color 0.3s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0%;
    height: 2px;
    background: var(--primary-color);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-link:hover { color: var(--primary-color); }
.nav-link:hover::after { width: 100%; }

/* --- CONTROLS ALIGNMENT (Essential for your layout) --- */
.nav-extras {
    display: flex;
    align-items: center;
    gap: 20px;
}

/* --- THEME TOGGLE BUTTON --- */
.theme-toggle {
    cursor: pointer;
    font-size: 24px;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--border-color);
    border-radius: 50%;
    transition: all 0.3s ease;
}

body.light-mode .theme-toggle {
    background: #ffffff;
    color: #f59e0b;
    border-color: #f59e0b;
}

.theme-toggle:hover {
    transform: scale(1.15) rotate(20deg);
    background: var(--card-bg);
    box-shadow: 0 0 15px var(--primary-color);
}

/* --- HAMBURGER MENU (Mobile) --- */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background-color: var(--nav-text);
    transition: 0.3s;
}

/* ==========================================
   HERO SECTION
   ========================================== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 80px;
    position: relative;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.grid-lines {
    position: absolute;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(rgba(0, 255, 204, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 255, 204, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: gridMove 20s linear infinite;
}

@keyframes gridMove {
    0% { transform: translate(0, 0); }
    100% { transform: translate(50px, 50px); }
}

.data-particles {
    position: absolute;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 50%, rgba(102, 126, 234, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(0, 255, 204, 0.1) 0%, transparent 50%);
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    padding: 0 40px;
}

.hero-subtitle {
    font-family: 'JetBrains Mono', monospace;
    font-size: 14px;
    color: var(--primary-color);
    letter-spacing: 3px;
    margin-bottom: 20px;
    opacity: 0;
    animation: fadeInUp 0.8s ease 0.2s forwards;
}

.hero-title {
    font-family: 'Bebas Neue', cursive;
    font-size: clamp(60px, 10vw, 120px);
    line-height: 0.9;
    margin-bottom: 30px;
}

.hero-title .line {
    display: block;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease forwards;
}

.hero-title .line:nth-child(1) { animation-delay: 0.3s; }
.hero-title .line:nth-child(2) { animation-delay: 0.4s; }
.hero-title .line:nth-child(3) { animation-delay: 0.5s; }

.hero-description {
    font-size: 18px;
    color: var(--text-secondary);
    max-width: 600px;
    line-height: 1.8;
    margin-bottom: 40px;
    opacity: 0;
    animation: fadeInUp 0.8s ease 0.6s forwards;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    opacity: 0;
    animation: fadeInUp 0.8s ease 0.7s forwards;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==========================================
   BUTTONS
   ========================================== */
.btn {
    padding: 15px 35px;
    font-family: 'Syne', sans-serif;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 2px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-block;
}

.btn-primary {
    background: var(--primary-color);
    color: var(--bg-dark);
    box-shadow: 0 10px 30px rgba(0, 255, 204, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(0, 255, 204, 0.4);
}

.btn-secondary {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
    background: var(--primary-color);
    color: var(--bg-dark);
    transform: translateY(-3px);
}

/* ==========================================
   SECTIONS
   ========================================== */
section {
    padding: 100px 0;
    position: relative;
}

.section-header {
    display: flex;
    align-items: center;
    gap: 30px;
    margin-bottom: 60px;
    justify-content: center;
}

.section-number {
    font-family: 'Bebas Neue', cursive;
    font-size: 80px;
    color: rgba(0, 255, 204, 0.1);
    line-height: 1;
}

.section-title {
    font-family: 'Bebas Neue', cursive;
    font-size: 48px;
    letter-spacing: 3px;
    color: var(--text-primary);
}

/* ==========================================
   ABOUT SECTION
   ========================================== */
.about {
    background: linear-gradient(to bottom, var(--bg-dark), var(--bg-darker));
}

.about-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 50px;
    text-align: center;
}

.profile-wrapper {
    position: relative;
    display: inline-block;
    margin-bottom: 20px;
    padding-left: 60px;
}

.social-sidebar {
    position: absolute;
    left: 0;
    top: 30px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 10;
}

.social-btn {
    width: 45px;
    height: 45px;
    color: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    font-size: 20px;
    transition: all 0.3s ease;
    background-color: #333;
}

.social-btn.linkedin {
    background-color: #0077b5;
}

.social-btn.email {
    background-color: #ea4335;
}

.social-btn.instagram {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
}

.social-btn.github {
    background-color: #333;
}

.social-btn:hover {
    transform: translateX(5px) scale(1.1);
}

.deco-diamond {
    position: absolute;
    top: -15px;
    right: -15px;
    width: 25px;
    height: 25px;
    border: 3px solid #ff5722;
    transform: rotate(45deg);
    z-index: -1;
}

.profile-photo-container {
    position: relative;
    width: 280px;
    height: 320px;
}

.main-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: relative;
    z-index: 2;
    filter: grayscale(20%);
    transition: filter 0.3s ease;
}

.main-photo:hover {
    filter: grayscale(0%);
}

.photo-frame {
    position: absolute;
    bottom: -15px;
    right: -15px;
    width: 100%;
    height: 100%;
    border: 4px solid var(--text-secondary);
    z-index: 1;
    transition: transform 0.3s ease;
}

.profile-photo-container:hover .photo-frame {
    transform: translate(5px, 5px);
    border-color: var(--primary-color);
}

.about-text {
    max-width: 800px;
    margin: 0 auto;
}

.about-text p {
    font-size: 18px;
    color: var(--text-secondary);
    margin-bottom: 20px;
    line-height: 1.8;
    text-align: justify;
}

.about-highlight {
    margin-top: 30px;
    padding: 20px 25px;
    background: rgba(0, 255, 204, 0.05);
    border-top: 3px solid var(--primary-color);
    text-align: left;
}

.about-stats {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    width: 100%;
    margin-top: 20px;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px 30px;
    background: rgba(0, 255, 204, 0.05);
    border-bottom: 4px solid var(--primary-color);
    min-width: 150px;
}

.stat-number {
    font-family: 'Bebas Neue', cursive;
    font-size: 50px;
    color: var(--primary-color);
    line-height: 1;
}

.stat-label {
    font-size: 14px;
    color: var(--text-secondary);
    letter-spacing: 2px;
    margin-top: 5px;
}

/* ==========================================
   SKILLS SECTION
   ========================================== */
.skills {
    background: var(--bg-darker);
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.skill-card {
    background: rgba(255, 255, 255, 0.02);
    padding: 30px;
    border: 1px solid rgba(0, 255, 204, 0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.skill-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--gradient-3);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.skill-card:hover::before {
    transform: scaleX(1);
}

.skill-card:hover {
    border-color: var(--primary-color);
    background: rgba(0, 255, 204, 0.05);
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 255, 204, 0.2);
}

.skill-icon {
    width: 50px;
    height: 50px;
    margin-bottom: 20px;
}

.skill-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.skill-name {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--text-primary);
}

.skill-description {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 20px;
    line-height: 1.6;
}

.skill-bar {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    overflow: hidden;
}

.skill-progress {
    height: 100%;
    background: var(--gradient-3);
    border-radius: 3px;
    transition: width 1s ease;
}
/* ==========================================
   PROJECTS SECTION (FIXED)
   ========================================== */
.projects {
    background: linear-gradient(to bottom, var(--bg-darker), var(--bg-dark));
    padding: 100px 0;
}

.projects-grid {
    display: grid;
    /* Responsive Grid: Cards will auto-fit */
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    padding: 20px 0;
}

.project-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(0, 255, 204, 0.1);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.4s ease;
    display: flex;
    flex-direction: column;
    height: 100%; /* Ensures all cards are same height */
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 255, 204, 0.15);
    border-color: var(--primary-color);
}

/* Image Styling */
.project-image {
    position: relative;
    width: 100%;
    height: 220px; /* Fixed height for uniformity */
    overflow: hidden;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Prevents image stretching */
    transition: transform 0.5s ease;
}

.project-card:hover .project-image img {
    transform: scale(1.1); /* Zoom effect on hover */
}

/* Overlay Styling */
.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 14, 39, 0.85); /* Dark overlay */
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    backdrop-filter: blur(3px);
}

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

.project-link {
    padding: 12px 28px;
    background: transparent;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: 2px solid var(--primary-color);
    border-radius: 50px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
}

.project-link:hover {
    background: var(--primary-color);
    color: var(--bg-dark);
    transform: scale(1.05);
}

/* Info Section Styling */
.project-info {
    padding: 25px;
    display: flex;
    flex-direction: column;
    flex-grow: 1; /* Pushes content to fill space */
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 15px;
}

.tag {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    padding: 5px 12px;
    border-radius: 20px;
    background: rgba(0, 255, 204, 0.08);
    color: var(--primary-color);
    border: 1px solid rgba(0, 255, 204, 0.2);
}

.project-title {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 12px;
    color: #fff;
    line-height: 1.3;
}

.project-description {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 15px;
}

/* ==========================================
   DASHBOARDS SECTION
   ========================================== */
.dashboards {
    background: var(--bg-dark);
}

.dashboard-showcase {
    display: flex;
    flex-direction: column;
    gap: 60px;
}

.dashboard-item {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(0, 255, 204, 0.1);
    padding: 30px;
    transition: all 0.3s ease;
}

.dashboard-item:hover {
    border-color: var(--primary-color);
    box-shadow: 0 15px 40px rgba(0, 255, 204, 0.2);
}

.dashboard-header {
    margin-bottom: 25px;
}

.dashboard-title {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--text-primary);
}

.dashboard-description {
    font-size: 16px;
    color: var(--text-secondary);
    line-height: 1.7;
    max-width: 800px;
}

.dashboard-frame {
    width: 100%;
    height: 500px;
    border: 2px solid rgba(0, 255, 204, 0.2);
    border-radius: 5px;
    overflow: hidden;
}

.dashboard-frame iframe {
    width: 100%;
    height: 100%;
}

/* ==========================================
   CONTACT SECTION
   ========================================== */
.contact {
    background: linear-gradient(to bottom, var(--bg-dark), var(--bg-darker));
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.contact-text h3 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--text-primary);
}

.contact-text p {
    font-size: 16px;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 30px;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.contact-label {
    font-size: 12px;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.contact-value {
    font-size: 16px;
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-value:hover {
    color: var(--text-primary);
}

.contact-form {
    background: rgba(255, 255, 255, 0.02);
    padding: 30px;
    border: 1px solid rgba(0, 255, 204, 0.1);
}

.form-group {
    margin-bottom: 20px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(0, 255, 204, 0.2);
    color: var(--text-primary);
    font-family: 'Syne', sans-serif;
    font-size: 16px;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    background: rgba(0, 255, 204, 0.05);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* ==========================================
   FOOTER
   ========================================== */
.footer {
    background: var(--bg-darker);
    padding: 30px 0;
    text-align: center;
    border-top: 1px solid rgba(0, 255, 204, 0.1);
}

.footer-content {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-content p {
    color: var(--text-secondary);
    font-size: 14px;
}

.footer-tagline {
    color: var(--primary-color);
    font-weight: 600;
}

/* ==========================================
   RESPONSIVE DESIGN
   ========================================== */
@media (max-width: 1200px) {
    .container {
        padding: 0 30px;
    }
    
    .projects-grid {
        grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    }
}

@media (max-width: 992px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 80px;
        flex-direction: column;
        background: var(--bg-dark);
        width: 100%;
        text-align: center;
        padding: 30px 0;
        transition: left 0.3s ease;
        border-top: 1px solid rgba(0, 255, 204, 0.1);
    }

    .nav-menu.active {
        left: 0;
    }

    .hamburger {
        display: flex;
    }

    .hero-title {
        font-size: 70px;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .section-title {
        font-size: 40px;
    }
    
    .section-number {
        font-size: 60px;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 20px;
    }
    
    .hero-content {
        padding: 0 20px;
    }
    
    .hero-title {
        font-size: 50px;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .section-title {
        font-size: 36px;
    }
    
    .section-number {
        font-size: 50px;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
    }
    
    .skills-grid {
        grid-template-columns: 1fr;
    }
    
    .dashboard-frame {
        height: 400px;
    }
    
    section {
        padding: 80px 0;
    }
    
    /* Mobile Profile Adjustments */
    .profile-wrapper {
        padding-left: 50px;
        display: flex;
        justify-content: center;
        position: relative;
    }
    
    .social-sidebar {
        left: 0;
        top: 20px;
        gap: 8px;
    }
    
    .social-btn {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }
    
    .profile-photo-container {
        width: 240px;
        height: 280px;
    }
    
    .deco-diamond {
        top: -10px;
        right: -10px;
        width: 20px;
        height: 20px;
    }
    
    .stat-item {
        min-width: 120px;
        padding: 15px 20px;
    }
    
    .stat-number {
        font-size: 40px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 40px;
    }
    
    .hero-description {
        font-size: 16px;
    }
    
    .section-title {
        font-size: 32px;
    }
    
    .btn {
        padding: 12px 25px;
        font-size: 13px;
    }
    
    .profile-photo-container {
        width: 200px;
        height: 240px;
    }
    
    .project-image-slider {
        height: 200px;
    }
    
    .dashboard-frame {
        height: 300px;
    }
    
    .contact-form {
        padding: 20px;
    }
}
/* ==========================================
   1. COLOR SYSTEM (CORRECTED & MATCHED)
   ========================================== */
:root {
    /* --- DARK MODE (Default Variables) --- */
    --primary-color: #00ffcc;       /* Neon Teal */
    --secondary-color: #0a192f;     /* Navy */
    --accent-color: #ff006e;        /* Pink Accent */
    
    --text-primary: #ffffff;        /* White text */
    --text-secondary: #8892b0;      /* Muted Blue-Gray */
    
    --bg-dark: #0a0e27;             /* Main Deep Blue BG */
    --bg-darker: #050810;           /* Darker Section BG */
    
    --card-bg: rgba(255, 255, 255, 0.02); /* Glass effect */
    --border-color: rgba(0, 255, 204, 0.1);
    --shadow-color: rgba(0, 255, 204, 0.1);
    --nav-bg: rgba(10, 14, 39, 0.95);
}

body.light-mode {
    /* --- LIGHT MODE (Swapped Values) --- */
    --primary-color: #008f72;       /* Darker Teal (Readable on white) */
    --secondary-color: #ffffff;     
    --accent-color: #d60058;
    
    --text-primary: #1e293b;        /* Dark Slate Gray (High Contrast) */
    --text-secondary: #475569;      /* Muted Slate */
    
    --bg-dark: #f0f4f8;             /* Light Gray Main BG */
    --bg-darker: #ffffff;           /* Pure White BG */
    
    --card-bg: #ffffff;             /* White Cards */
    --border-color: rgba(0, 0, 0, 0.1);
    --shadow-color: rgba(0, 0, 0, 0.08);
    --nav-bg: rgba(255, 255, 255, 0.95);
}

/* ==========================================
   2. GLOBAL STYLE APPLICATIONS
   ========================================== */
body {
    background-color: var(--bg-dark);
    color: var(--text-primary);
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* Fix Navbar */
.navbar {
    background: var(--nav-bg);
    border-bottom: 1px solid var(--border-color);
    backdrop-filter: blur(10px);
}

/* Fix Section Backgrounds */
.about, .contact, .dashboards {
    background: var(--bg-dark); 
}

.projects, .skills {
    background: var(--bg-darker);
}

/* Fix Cards */
.project-card, .skill-card, .dashboard-item, .contact-form {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 15px var(--shadow-color);
}

/* Fix Text Colors */
.section-title, .project-title, .skill-name, .dashboard-title {
    color: var(--text-primary);
}

.project-description, .skill-description, .dashboard-description, .contact-text p {
    color: var(--text-secondary);
}

/* Fix Inputs */
input, textarea {
    background: var(--bg-darker) !important;
    color: var(--text-primary) !important;
    border: 1px solid var(--border-color) !important;
}

/* Fix Footer */
.footer {
    background: var(--bg-darker);
    border-top: 1px solid var(--border-color);
}

/* Fix Logo */
.logo { color: var(--text-primary); }
.logo .accent { color: var(--primary-color); }

/* ==========================================
   3. THEME TOGGLE BUTTON (BIG & VISIBLE)
   ========================================== */
.theme-toggle {
    cursor: pointer;
    font-size: 28px;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    background: rgba(125, 125, 125, 0.1);
    border: 1px solid var(--border-color);
    border-radius: 50%;
    transition: all 0.3s ease;
    margin-right: 15px;
}

.theme-toggle:hover {
    transform: scale(1.15) rotate(15deg);
    background: var(--card-bg);
    box-shadow: 0 0 15px var(--primary-color);
    border-color: var(--primary-color);
}
