/* --- Cross-Browser CSS Variable Definitions --- */
:root, html[data-theme="dark"] {
    --bg-base: #0c0f17;
    --bg-surface: rgba(20, 25, 40, 0.85);
    --bg-surface-hover: rgba(30, 38, 58, 0.95);
    
    --text-primary: #f3f4f6;
    --text-secondary: #9ca3af;
    
    --border-glass: rgba(255, 255, 255, 0.12);
    --shadow-glass: rgba(0, 0, 0, 0.5);
    
    --pastel-yellow: #facc15;
    --pastel-blue: #3b82f6;
    --pastel-pink: #b91c1c;
    --pastel-green: #10b981;
    --pastel-purple: #a855f7;
    --pastel-cyan: #06b6d4;
    
    --bullet-color: #facc15;
}

html[data-theme="light"] {
    --bg-base: #f8fafc;
    --bg-surface: rgba(255, 255, 255, 0.9);
    --bg-surface-hover: rgba(255, 255, 255, 0.98);
    
    --text-primary: #0f172a;
    --text-secondary: #475569;
    
    --border-glass: rgba(0, 0, 0, 0.1);
    --shadow-glass: rgba(15, 23, 42, 0.1);
    
    --pastel-yellow: #eab308;
    --pastel-blue: #2563eb;
    --pastel-pink: #b91c1c;
    --pastel-green: #16a34a;
    --pastel-purple: #9333ea;
    --pastel-cyan: #0891b2;
    
    --bullet-color: #eab308;
}

/* --- Resets --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
}

body {
    background: var(--bg-base);
    color: var(--text-primary);
    min-height: 100vh;
    line-height: 1.6;
}

/* --- Inline SVGs & Icon Styles --- */
.svg-icon {
    width: 18px;
    height: 18px;
    display: inline-block;
    vertical-align: middle;
}

.svg-icon-lg {
    width: 24px;
    height: 24px;
    display: inline-block;
    vertical-align: middle;
}

.svg-icon-heading {
    width: 26px;
    height: 26px;
    margin-right: 8px;
    color: var(--pastel-yellow);
}

.icon-accent {
    font-size: 1.2rem;
    display: inline-block;
}

/* --- Navigation --- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: var(--bg-surface);
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-glass);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.4rem;
    font-weight: 800;
    text-decoration: none;
    color: var(--text-primary);
}

.accent-text { color: var(--pastel-yellow); }

#theme-toggle {
    background: transparent;
    border: 1px solid var(--border-glass);
    color: var(--text-primary);
    padding: 0.5rem;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* --- Layout Grid --- */
.main-content {
    padding-top: 80px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section-block {
    padding: 3rem 0;
}

.section-title {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
}

/* --- Hero Section --- */
.hero-section {
    padding: 3rem 0;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 3rem;
    align-items: flex-start;
}

.badge {
    display: inline-block;
    padding: 0.4rem 1rem;
    background: rgba(128, 0, 32, 0.15);
    border: 1px solid #800020;
    color: var(--text-primary);
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1.25rem;
}

.hero-content h1 {
    font-size: 2.8rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 0.75rem;
}

.hero-content h2 {
    font-size: 1.25rem;
    color: var(--text-secondary);
    font-weight: 500;
    margin-bottom: 1.25rem;
}

.summary-lead {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 1.75rem;
}

/* CTA Buttons */
.cta-group {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
    margin-bottom: 1.75rem;
}

.btn {
    padding: 0.75rem 1.4rem;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.95rem;
}

.btn-primary { background: #2563eb; color: #ffffff; }
.btn-secondary { background: var(--bg-surface); border: 1px solid var(--border-glass); color: var(--text-primary); }
.btn-whatsapp { background: #25d366; color: #ffffff; }

.social-links {
    display: flex;
    gap: 1.2rem;
}

.social-links a {
    color: var(--text-secondary);
    transition: color 0.2s ease;
}

.social-links a:hover { color: var(--pastel-yellow); }

/* --- Glassmorphic Containers --- */
.glass-container,
.glass-card,
.glass-item,
.glass-dropdown {
    background-color: var(--bg-surface);
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
    border: 1px solid var(--border-glass);
    box-shadow: 0 8px 24px var(--shadow-glass);
}

.glass-card {
    border-radius: 20px;
    padding: 0.75rem;
    max-width: 360px;
    margin: 0 auto;
}

.profile-img {
    width: 100%;
    height: auto;
    border-radius: 14px;
    display: block;
}

.glass-container {
    border-radius: 16px;
    padding: 1.5rem;
}

.bio-cards p {
    margin-bottom: 1.2rem;
    color: var(--text-secondary);
}
.bio-cards p:last-child { margin-bottom: 0; }

/* --- Expertise Grid --- */
.expertise-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1rem;
}

.glass-item {
    border-radius: 12px;
    padding: 1rem;
    display: flex;
    align-items: center;
    gap: 0.85rem;
    font-weight: 500;
}

/* --- Accordion Grid (Chrome/Safari Fixed) --- */
.skills-accordion-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
    align-items: start;
}

.glass-dropdown {
    border-radius: 14px;
    padding: 1.25rem;
    cursor: pointer;
    position: relative;
}

/* Left Highlighting Borders matching reference */
.highlighting-ai { border-left: 3px solid #facc15 !important; }
.highlighting-ux { border-left: 3px solid #3b82f6 !important; }
.highlighting-brand { border-left: 3px solid #b91c1c !important; }
.highlighting-gaming { border-left: 3px solid #a855f7 !important; }
.highlighting-code { border-left: 3px solid #06b6d4 !important; }
.highlighting-marketing { border-left: 3px solid #46ef57 !important; }

.dropdown-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.dropdown-header h3 {
    font-size: 1.05rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.toggle-icon {
    width: 18px;
    height: 18px;
    color: var(--text-secondary);
    transition: transform 0.3s ease;
}

.glass-dropdown.active .toggle-icon {
    transform: rotate(180deg);
}

.dropdown-content {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    visibility: hidden;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.glass-dropdown.active .dropdown-content {
    opacity: 1;
    visibility: visible;
    margin-top: 1rem;
}

.dropdown-content ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.dropdown-content ul li {
    font-size: 0.95rem;
    color: var(--text-secondary);
    position: relative;
    padding-left: 1.4rem;
}

.dropdown-content ul li::before {
    content: "■";
    position: absolute;
    left: 0;
    color: var(--bullet-color);
    font-size: 0.7rem;
}

/* Responsive Breakpoints */
@media (max-width: 900px) {
    .hero-container, .skills-accordion-grid {
        grid-template-columns: 1fr;
    }
    .hero-content h1 { font-size: 2.2rem; }
}