/* --- CSS VARIABLES --- */
:root {
    /* DEFAULT: Light Mode Variables */
    --bg-dark: #f4f7f6;
    --bg-card: #ffffff;
    --header-bg: rgba(255, 255, 255, 0.95);
    
    --primary-cyan: #13d0de;
    --primary-blue: #0066FF;
    --primary-purple: #9D00FF;
    
    --text-main: #1a1f2e;       /* Dark text for light bg */
    --text-muted: #5e6c7e;
    
    --gradient-main: linear-gradient(135deg, var(--primary-cyan), var(--primary-blue), var(--primary-purple));
    --glow: 0 0 15px rgba(0, 102, 255, 0.2); 
    --border-color: rgba(0,0,0,0.1);
}

/* OVERRIDE: Dark Mode Class */
.dark-mode {
    --bg-dark: #05070a;
    --bg-card: #0e121d;
    --header-bg: rgba(5, 7, 10, 0.95);
    
    --text-main: #ffffff;      /* White text for dark bg */
    --text-muted: #a0aab5;
    
    --glow: 0 0 20px rgba(0, 240, 255, 0.3);
    --border-color: rgba(255,255,255,0.1);
}

/* --- RESET & GLOBAL STYLES --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    transition: background-color 0.3s ease, color 0.3s ease; /* Smooth transition */
    
    /* FIX: Header is 80px tall, so padding needs to be 80px to prevent crop */
    padding-top: 80px; 
}

a { 
    text-decoration: none; 
    color: inherit; 
    transition: 0.3s; 
}
a:hover { color: var(--primary-cyan); }

ul { list-style: none; }
img { max-width: 100%; }

/* --- TYPOGRAPHY --- */
h1, h2, h3, h4 {
    font-family: 'Orbitron', sans-serif;
    text-transform: uppercase;
    letter-spacing: 1px;
    line-height: 1.2;
}

h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.8rem, 4vw, 2.5rem); }
h3 { font-size: 1.8rem; }
h4 { font-size: 1.3rem; }

.gradient-text {
    background: var(--gradient-main);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 800;
}

/* --- LAYOUT --- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-padding {
    padding: 30px 0;
}

.section-header {
    text-align: center;
    width: 100%;       
    max-width: 100%;   
    margin: 0 auto 30px auto; 
}

.section-header h2 {
    margin-bottom: 10px;
}

/* --- BUTTONS --- */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 5px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--gradient-main);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--glow);
    opacity: 0.95;
}

.btn-outline {
    background: transparent;
    color: var(--primary-cyan);
    border: 2px solid var(--primary-cyan);
}

.btn-outline:hover {
    background: rgba(0, 240, 255, 0.1);
    box-shadow: var(--glow);
}

.btn-small {
    padding: 8px 20px;
    font-size: 0.9rem;
}

/* --- THEME TOGGLE BUTTON --- */
.theme-btn {
    position: fixed;          /* Locks to the screen */
    bottom: 30px;             /* Distance from bottom */
    right: 30px;              /* Distance from right */
    z-index: 9999;            /* Ensures it stays on top of everything */
    
    width: 50px;              /* Larger touch target */
    height: 50px;
    border-radius: 50%;
    
    background: var(--bg-card); /* Solid background color */
    border: 2px solid var(--primary-cyan);
    color: var(--primary-cyan);
    
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.5); /* Deep shadow for depth */
}

.theme-btn:hover {
    background: var(--primary-cyan);
    color: var(--bg-dark);
    transform: translateY(-5px) rotate(15deg); /* clear hover effect */
    box-shadow: 0 0 25px var(--primary-cyan); /* Glow effect */
}

/* --- HEADER & NAVIGATION --- */
header {
    /* Use the variable so it changes in light mode */
    background: var(--header-bg); 
    backdrop-filter: blur(10px);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    border-bottom: 1px solid var(--border-color);
    transition: background 0.3s ease;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo {
    font-size: 1.2rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo i, .logo span { color: var(--primary-cyan); }

.nav-links {
    display: flex;
    gap: 30px;
    align-items: center; /* Ensures button aligns with text */
}

.nav-links a:hover {
    color: var(--primary-cyan);
    text-shadow: 0 0 10px var(--primary-cyan);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--primary-cyan);
    font-size: 1.5rem;
    cursor: pointer;
}

/* --- HERO SECTION --- */
.hero {
   min-height: 50vh; 
    padding: 50px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    /* Updated gradient to use variables for better light mode transition */
    background: radial-gradient(circle at center, rgba(0, 102, 255, 0.1) 0%, var(--bg-dark) 70%);
}

.hero-content {
    width: 100%;
}

.hero-content h1 {
    font-size: clamp(2.2rem, 6vw, 4rem);
    margin-bottom: 15px;
    line-height: 1.1;
    word-wrap: break-word;
}

.hero-content p {
    font-size: clamp(1rem, 2vw, 1.2rem);
    color: var(--text-muted);
    margin-bottom: 25px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* --- CARDS --- */
.card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 15px;
    padding: 30px;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    height: 100%;
    width: 100%; 
    display: flex;
    flex-direction: column;
    align-items: center; 
    text-align: center;
}

.card-icon {
    font-size: 3rem;
    margin-bottom: 20px;
    background: var(--gradient-main);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.card:hover {
    transform: translateY(-10px);
    /* Updated shadow to use a variable if you want it subtler in light mode, or keep standard */
    box-shadow: 0 10px 30px rgba(0,0,0,0.2); 
    border-color: var(--primary-cyan);
}

.card:hover::before { 
    transform: scaleX(1); 
}

.card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 3px;
    background: var(--gradient-main);
    transform: scaleX(0);
    transition: 0.4s;
    transform-origin: left;
}

/* --- GRID SYSTEM --- */
.grid {
    display: grid;
    gap: 30px;
    width: 100%;
    justify-content: center;
}

.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* --- CV / CREATOR SECTION --- */
.cv-section {
    /* Use background variable or specific gradient */
    background: linear-gradient(to right, var(--bg-dark), var(--bg-card));
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.cv-container {
    display: flex;
    align-items: center;
    gap: 30px;
    justify-content: center;
}

.cv-content {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;      
    max-width: 100%;  
}

.cv-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 25px;
    width: 100%;
}

.stat-box {
    text-align: center;
    padding: 20px;
    background: rgba(255,255,255,0.03);
    border-radius: 10px;
    border: 1px solid var(--border-color);
}

.stat-number {
    font-size: 2.5rem;
    font-family: 'Orbitron', sans-serif;
    background: var(--gradient-main);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 700;
}

.skill-tags {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
}

.skill-tags span {
    display: inline-block;
    border: 1px solid var(--primary-blue);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    color: var(--primary-cyan);
}

/* --- TESTIMONIALS --- */
.testimonial-card {
    background: var(--bg-card);
    padding: 25px;
    border-radius: 10px;
    border: 1px solid var(--border-color);
    text-align: center;
}
.testimonial-rating { color: #FFD700; margin-bottom: 15px; }

/* --- FOOTER FIXES START HERE --- */
footer {
    /* Changed from #020305 to var(--bg-card) to enable light mode switching */
    background: var(--bg-card);
    padding: 40px 0 20px;
    border-top: 1px solid var(--border-color);
    transition: background 0.3s ease;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
}

.footer-logo h3 { 
    margin-bottom: 15px; 
    /* Changed from white to variable */
    color: var(--text-main); 
}

.footer-logo p { 
    /* Changed from #a0aab5 to variable */
    color: var(--text-muted); 
    font-size: 0.9rem; 
}

.footer-links h4 { 
    /* Changed from white to variable */
    color: var(--text-main); 
    margin-bottom: 20px; 
}

.footer-links li { margin-bottom: 10px; }

.footer-links a { 
    color: var(--text-muted); 
}

.footer-links a:hover { 
    color: var(--primary-cyan); 
}

.social-icons {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-icons a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    /* Changed to variable so it's visible in light mode */
    background: var(--bg-dark); 
    border: 1px solid var(--border-color);
    border-radius: 50%;
    /* Changed from white to variable */
    color: var(--text-main); 
    transition: all 0.3s;
}

.social-icons a:hover {
    background: var(--primary-cyan);
    color: #05070a;
    transform: translateY(-3px);
}

.copyright {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.8rem;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
    margin-top: 30px;
}
/* --- FOOTER FIXES END HERE --- */

/* --- UTILITY CLASSES --- */
.text-center { text-align: center; }
.text-muted { color: var(--text-muted); }
.mt-1 { margin-top: 10px; }
.mt-2 { margin-top: 20px; }
.mt-3 { margin-top: 20px; }
.mr-1 { margin-right: 10px; }
.mr-2 { margin-right: 20px; }
.mb-1 { margin-bottom: 10px; }
.mb-2 { margin-bottom: 20px; }
.mb-3 { margin-bottom: 20px; }

/* --- RESPONSIVE DESIGN --- */
@media (max-width: 1200px) {
    .grid-4 { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 992px) {
    .cv-container { 
        flex-direction: column-reverse; /* Puts image on top, text below */
        text-align: center;
        gap: 20px; /* Reduced gap from desktop */
    }
    
    .cv-visual {
        margin: 10px auto; /* Reduced margin */
    }

    .footer-grid { grid-template-columns: 1fr 1fr; }
    .grid-3 { grid-template-columns: repeat(2, 1fr); }
    .grid-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .section-padding { padding: 30px 0; }
    
    /* FIX: Force the abstract circle to be smaller on mobile */
    /* This overrides the inline HTML style of height: 300px */
    .cv-visual > div {
        height: 10px !important;
        max-width: 180px !important;
    }

    /* TIGHTEN GAPS IN CREATOR SECTION */
    .cv-stats { 
        grid-template-columns: 1fr; 
        gap: 15px;        /* Reduce gap between stat boxes */
        margin-top: 20px; /* Reduce top margin */
    }

    .cv-content h2 {
        font-size: 1.8rem; /* Slightly smaller heading */
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 80px;
        left: 0;
        width: 100%;
        background: var(--header-bg); 
        flex-direction: column;
        padding: 20px;
        text-align: center;
        gap: 20px;
        border-top: 1px solid var(--border-color);
    }
    
    .nav-links.active { display: flex; }
    
    .theme-btn { margin-left: 0; }
    
    .mobile-menu-btn { display: block; }
    
    .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center; 
    }
    
    .social-icons { justify-content: center; }
    
    .card { align-items: center; text-align: center; }
}

@media (max-width: 480px) {
    .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
        width: 100%;
        margin-bottom: 10px;
    }
    
    .mr-2 { margin-right: 0; }
    .logo { font-size: 1rem; }
}

/* --- REVIEW CARDS (NO DP / CENTERED) --- */
.review-card {
    background: var(--bg-card);
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    border: 1px solid var(--border-color);
    transition: transform 0.3s ease;
    
    /* Center everything */
    text-align: center; 
    
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.review-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--glow);
    border-color: var(--primary-cyan);
}

.stars {
    color: #f59e0b;
    font-size: 1.2rem;
    margin-bottom: 15px;
    display: block; 
}

.review-text {
    font-style: normal;
    color: var(--text-muted);
    margin-bottom: 20px;
    line-height: 1.6;
}

.reviewer {
    display: flex;
    flex-direction: column; /* Stack Name on top of Title */
    align-items: center;    /* Center horizontally */
    justify-content: center;
    margin-top: auto;       /* Push to bottom */
}

/* Remove the old text-align: left since there is no image */
.reviewer > div {
    text-align: center; 
}

.reviewer h4 {
    margin: 0;
    font-size: 1rem;
    color: var(--text-main);
    font-weight: 700;
    margin-bottom: 2px;
}

.reviewer small {
    color: var(--text-muted);
    font-size: 0.85rem;
    display: block;
}




/* Ensure global centering helper exists */
@media (max-width: 768px) {
    /* Forces grid items to center if they don't fill the screen width */
    .grid {
        justify-content: center;
        justify-items: center;
    }
    
    /* Ensures text inside cards is centered */
    .card {
        text-align: center;
        align-items: center;
    }
    
     .grid-3 {
        /* Ensures the grid column centers the single card */
        display: flex;
        flex-direction: column;
        align-items: center; 
    }
    
    .review-card {
        width: 100%; /* Full width on mobile */
    }
}

/* 


.trending-tag-cloud {
   display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 15px;
}

/*

.trending-tag {
   display: inline-block;
    background-color: transparent;
    border: 1px solid var(--primary-cyan);
    color: var(--primary-cyan);
    
    padding: 6px 15px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
    white-space: nowrap;
}


.trending-tag:hover {
background-color: rgba(19, 208, 222, 0.1);
    box-shadow: 0 0 10px rgba(19, 208, 222, 0.2);
    transform: translateY(-2px);
    color: var(--primary-cyan);
}



*/



.trending-tag-cloud {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 15px;
}

/* Default State: Light Background & Subtle Dark Border */
.trending-tag {
    display: inline-block;
    
    /* Light transparent background (works on both light/dark mode) */
    background-color: rgba(128, 128, 128, 0.05); 
    
    /* Light dark border (subtle gray) */
    border: 1px solid rgba(128, 128, 128, 0.2);
    
    /* Text color uses your theme's muted text variable */
    color: var(--text-muted);
    
    padding: 6px 15px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
    white-space: nowrap;
}

/* Hover State: Slight darken + Theme Blue Border */
.trending-tag:hover {
    background-color: rgba(128, 128, 128, 0.1); /* Slightly darker background */
    border-color: var(--primary-cyan);          /* Highlight border with theme color */
    color: var(--primary-cyan);                 /* Highlight text */
    transform: translateY(-2px);
}







