/* Cyberpunk Neon Design System */
:root {
    --bg-darker: #05050a;
    --bg-dark: #090a15;
    --bg-card: rgba(13, 14, 29, 0.75);
    --glass-border: rgba(255, 255, 255, 0.08);
    --neon-pink: #ff007f;
    --neon-pink-rgb: 255, 0, 127;
    --neon-cyan: #00f0ff;
    --neon-cyan-rgb: 0, 240, 255;
    --neon-blue: #0072ff;
    --text-light: #ffffff;
    --text-gray: #a5b0c9;
    --text-dark: #13141f;
    --font-head: 'Outfit', 'Chakra Petch', sans-serif;
    --font-body: 'Noto Sans Thai', 'Chakra Petch', sans-serif;
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);

    /* Theming parameters */
    --body-radial-pink: rgba(255, 0, 127, 0.05);
    --body-radial-cyan: rgba(0, 240, 255, 0.05);
    --body-grid-color: rgba(255, 255, 255, 0.005);
    --scanline-color: rgba(0, 0, 0, 0.15);
    --form-bg: rgba(5, 5, 10, 0.65);
    --form-bg-focus: rgba(5, 5, 10, 0.8);
    --scrollbar-track: #05050a;
    --card-arrow: rgba(13, 14, 29, 0.95);
    --neon-pink-glow: 0 0 5px rgba(255, 0, 127, 0.5), 0 0 15px rgba(255, 0, 127, 0.3);
    --neon-cyan-glow: 0 0 5px rgba(0, 240, 255, 0.5), 0 0 15px rgba(0, 240, 255, 0.3);
    --header-bg: rgba(5, 5, 10, 0.85);
    --header-border: rgba(0, 240, 255, 0.15);
    --header-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    --footer-bg: #030306;
    --timeline-current-shadow: rgba(0, 240, 255, 0.15);
}

[data-theme="light"] {
    --bg-darker: #f0f4f8; /* Softer, premium light tech clinical grey */
    --bg-dark: #e2e8f0;
    --bg-card: rgba(255, 255, 255, 0.9);
    --glass-border: rgba(15, 23, 42, 0.08);
    --neon-pink: #d9006c; /* Vibrant but readable pink */
    --neon-pink-rgb: 217, 0, 108;
    --neon-cyan: #008290; /* Highly readable teal/cyan */
    --neon-cyan-rgb: 0, 130, 144;
    --neon-blue: #0056cc;
    --text-light: #0f172a; /* Slate 900 for absolute contrast */
    --text-gray: #475569; /* Slate 600 for body texts */
    --text-dark: #ffffff;

    --body-radial-pink: rgba(217, 0, 108, 0.04);
    --body-radial-cyan: rgba(0, 130, 144, 0.04);
    --body-grid-color: rgba(15, 23, 42, 0.02);
    --scanline-color: rgba(0, 0, 0, 0.015);
    --form-bg: #ffffff; /* Clean white form control */
    --form-bg-focus: #ffffff;
    --scrollbar-track: #f0f4f8;
    --card-arrow: rgba(255, 255, 255, 0.95);
    --neon-pink-glow: 0 0 4px rgba(217, 0, 108, 0.35);
    --neon-cyan-glow: 0 0 4px rgba(0, 130, 144, 0.35);
    --header-bg: rgba(240, 244, 258, 0.88);
    --header-border: rgba(0, 130, 144, 0.25);
    --header-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
    --footer-bg: #e2e8f0;
    --timeline-current-shadow: rgba(0, 130, 144, 0.08);
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    background-color: var(--bg-darker);
    background-image:
        radial-gradient(circle at 10% 20%, var(--body-radial-pink) 0%, transparent 40%),
        radial-gradient(circle at 90% 80%, var(--body-radial-cyan) 0%, transparent 40%),
        linear-gradient(var(--body-grid-color) 1px, transparent 1px),
        linear-gradient(90deg, var(--body-grid-color) 1px, transparent 1px);
    background-size: 100% 100%, 100% 100%, 30px 30px, 30px 30px;
    color: var(--text-light);
    font-family: var(--font-body);
    overflow-x: hidden;
    line-height: 1.6;
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--scrollbar-track);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(to bottom, var(--neon-pink), var(--neon-cyan));
    border-radius: 5px;
    border: 2px solid var(--scrollbar-track);
    transition: background 0.3s ease;
}

::-webkit-scrollbar-thumb:hover {
    filter: brightness(1.2);
}

/* Utility Styles & Neon Text Glows */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-head);
    font-weight: 700;
    letter-spacing: 0.5px;
}

.neon-text-pink {
    color: var(--neon-pink);
    text-shadow: var(--neon-pink-glow);
    transition: color 0.3s ease, text-shadow 0.3s ease;
}

.neon-text-cyan {
    color: var(--neon-cyan);
    text-shadow: var(--neon-cyan-glow);
    transition: color 0.3s ease, text-shadow 0.3s ease;
}

.text-glow {
    text-shadow: 0 0 10px currentColor;
}

/* Grid Background Mesh Overlay */
.grid-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        linear-gradient(transparent 50%, var(--scanline-color) 50%),
        linear-gradient(90deg, rgba(255, 0, 127, 0.01), rgba(0, 240, 255, 0.01) 50%, rgba(255, 0, 127, 0.01));
    background-size: 100% 4px, 6px 100%;
    pointer-events: none;
    z-index: 999;
    transition: background 0.3s ease;
}

/* Container styling */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Sections */
section {
    padding: 120px 0 80px 0;
    position: relative;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 60px;
    position: relative;
    text-transform: uppercase;
}

.section-title::before {
    content: attr(data-text);
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    top: -5px;
    color: var(--neon-pink);
    opacity: 0.15;
    filter: blur(2px);
    z-index: -1;
    width: 100%;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, var(--neon-pink), var(--neon-cyan));
    box-shadow: 0 0 10px var(--neon-cyan);
}

/* Header / Navigation */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: var(--transition);
    border-bottom: 1px solid transparent;
}

header.scrolled {
    background: var(--header-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--header-border);
    box-shadow: var(--header-shadow);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 90px;
    transition: var(--transition);
}

header.scrolled .navbar {
    height: 70px;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 25px;
}

.theme-toggle-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(0, 240, 255, 0.3);
    color: var(--neon-cyan);
    width: 42px;
    height: 42px;
    border-radius: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    transition: var(--transition);
    box-shadow: 0 0 10px rgba(0, 240, 255, 0.15);
}

.theme-toggle-btn:hover {
    background: rgba(0, 240, 255, 0.1);
    border-color: var(--neon-cyan);
    box-shadow: 0 0 15px var(--neon-cyan);
    color: var(--text-light);
    transform: scale(1.05);
}

[data-theme="light"] .theme-toggle-btn {
    background: rgba(0, 0, 0, 0.03);
    border-color: rgba(217, 0, 108, 0.3);
    color: var(--neon-pink);
    box-shadow: 0 0 10px rgba(217, 0, 108, 0.1);
}

[data-theme="light"] .theme-toggle-btn:hover {
    background: rgba(217, 0, 108, 0.06);
    border-color: var(--neon-pink);
    box-shadow: 0 0 15px var(--neon-pink);
    color: var(--text-light);
}

.logo {
    font-size: 1.8rem;
    font-family: var(--font-head);
    font-weight: 800;
    text-decoration: none;
    color: var(--text-light);
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo span {
    background: linear-gradient(135deg, var(--neon-pink) 0%, var(--neon-cyan) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 10px rgba(0, 240, 255, 0.2);
}

.logo-box {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--neon-pink), var(--neon-cyan));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    font-size: 1.2rem;
    box-shadow: 0 0 15px rgba(0, 240, 255, 0.4);
    font-family: var(--font-head);
    font-weight: bold;
}

.nav-menu {
    display: flex;
    gap: 35px;
    list-style: none;
}

.nav-link {
    text-decoration: none;
    color: var(--text-gray);
    font-family: var(--font-head);
    font-size: 1rem;
    font-weight: 500;
    transition: var(--transition);
    position: relative;
    padding: 8px 0;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.nav-link i {
    display: none;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--neon-pink), var(--neon-cyan));
    transition: var(--transition);
    box-shadow: 0 0 8px var(--neon-cyan);
}

.nav-link:hover,
.nav-link.active {
    color: var(--text-light);
    text-shadow: 0 0 8px rgba(0, 240, 255, 0.6);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-light);
    font-size: 1.6rem;
    cursor: pointer;
    z-index: 1100;
    transition: var(--transition);
}

.nav-toggle:hover {
    color: var(--neon-cyan);
    text-shadow: 0 0 10px var(--neon-cyan);
}

/* Hero Section */
.hero-wrapper {
    display: grid;
    grid-template-columns: 1.25fr 0.75fr;
    gap: 60px;
    align-items: center;
    min-height: calc(100vh - 120px);
}

.hero-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.hero-welcome {
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-family: var(--font-head);
}

.welcome-dot {
    width: 10px;
    height: 10px;
    background-color: var(--neon-pink);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--neon-pink), 0 0 20px var(--neon-pink);
    animation: pulse-pink-dot 1.5s infinite;
}

.hero-title {
    font-size: 4rem;
    line-height: 1.15;
    font-family: var(--font-head);
}

.hero-title span.name-highlight {
    background: linear-gradient(135deg, var(--neon-pink) 20%, var(--neon-cyan) 80%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 15px rgba(255, 0, 127, 0.25));
    animation: text-pulse-shadow 4s ease-in-out infinite;
}

.hero-badges {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    margin-top: 10px;
}

.badge {
    background: rgba(255, 0, 127, 0.1);
    border: 1px solid var(--neon-pink);
    color: var(--text-light);
    padding: 8px 18px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 0 12px rgba(255, 0, 127, 0.15);
    transition: var(--transition);
    font-family: var(--font-head);
}

.badge-cyan {
    background: rgba(0, 240, 255, 0.1);
    border: 1px solid var(--neon-cyan);
    box-shadow: 0 0 12px rgba(0, 240, 255, 0.15);
}

[data-theme="light"] .badge-cyan {
    background: rgba(0, 130, 144, 0.1);
    border: 1px solid var(--neon-cyan);
    box-shadow: 0 0 12px rgba(0, 130, 144, 0.15);
}

.badge:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 18px currentColor;
}

.hero-description {
    font-size: 1.1rem;
    color: var(--text-gray);
    max-width: 620px;
    margin-top: 10px;
    text-align: justify;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    margin-top: 25px;
    flex-wrap: wrap;
}

/* Cyberpunk Button Styles */
.btn-cyber {
    position: relative;
    padding: 16px 36px;
    background: transparent;
    color: #ffffff !important;
    text-transform: uppercase;
    font-family: var(--font-head);
    font-weight: 700;
    font-size: 0.95rem;
    letter-spacing: 1px;
    border: none;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    overflow: hidden;
    transition: var(--transition);
    clip-path: polygon(12px 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%, 0 12px);
}

.btn-cyber::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--neon-pink), var(--neon-blue));
    z-index: -1;
    transition: var(--transition);
}

.btn-cyber-outline {
    border: 1px solid var(--neon-cyan);
    background: transparent;
    color: var(--text-light) !important;
    box-shadow: 0 0 12px rgba(0, 240, 255, 0.15);
}

.btn-cyber-outline::before {
    background: transparent;
}

.btn-cyber-outline:hover {
    background: rgba(0, 240, 255, 0.12);
    box-shadow: 0 0 25px var(--neon-cyan);
    border-color: var(--neon-cyan);
    transform: scale(1.03);
    color: var(--text-light) !important;
}

[data-theme="light"] .btn-cyber-outline:hover {
    background: rgba(0, 130, 144, 0.12);
    box-shadow: 0 0 25px var(--neon-cyan);
    border-color: var(--neon-cyan);
}

.btn-cyber:hover {
    box-shadow: 0 0 25px var(--neon-pink);
    transform: scale(1.03);
}

.btn-cyber:hover::before {
    filter: brightness(1.25);
}

/* Profile picture with laser sweep effect */
.profile-container {
    position: relative;
    width: 340px;
    height: 340px;
    justify-self: center;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 30px;
}

.profile-border-glow {
    position: absolute;
    inset: -4px;
    background: linear-gradient(135deg, var(--neon-pink), var(--neon-cyan));
    border-radius: 34px;
    z-index: 1;
    opacity: 0.85;
    filter: blur(8px);
    animation: rotate-border-gradient 6s linear infinite;
    transition: var(--transition);
}

.profile-frame {
    position: relative;
    width: 100%;
    height: 100%;
    background: var(--bg-dark);
    border-radius: 30px;
    padding: 8px;
    z-index: 2;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: inset 0 0 25px rgba(0, 0, 0, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

[data-theme="light"] .profile-frame {
    background: #e2e8f0;
}

.profile-img-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 22px;
    overflow: hidden;
    background: #090912;
    display: flex;
    align-items: center;
    justify-content: center;
}

.profile-img {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    filter: grayscale(10%) brightness(95%);
    transition: opacity 0.6s cubic-bezier(0.25, 0.8, 0.25, 1), filter 0.6s cubic-bezier(0.25, 0.8, 0.25, 1), transform 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);
    z-index: 3;
}

.profile-container.has-image .profile-img {
    opacity: 1;
}

.profile-container.has-image:hover .profile-img {
    transform: scale(1.05);
    filter: grayscale(0%) brightness(100%);
}

.profile-hologram-screen {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 4;
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.profile-container.has-image .profile-hologram-screen {
    display: none;
}

.profile-fallback-icon {
    font-size: 7.5rem;
    color: var(--neon-cyan);
    text-shadow: 0 0 15px var(--neon-cyan), 0 0 30px var(--neon-cyan);
    animation: floating-icon 4s ease-in-out infinite;
    z-index: 4;
}

.profile-scan-label {
    margin-top: 15px;
    font-family: var(--font-head);
    font-size: 0.8rem;
    letter-spacing: 2px;
    color: var(--neon-cyan);
    text-shadow: 0 0 5px var(--neon-cyan);
    background: rgba(5, 5, 10, 0.8);
    border: 1px solid var(--neon-cyan);
    padding: 5px 14px;
    border-radius: 4px;
    animation: pulse-scan-text 2s infinite;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: var(--transition);
}

@keyframes pulse-scan-text {
    0%,
    100% {
        opacity: 0.6;
    }
    50% {
        opacity: 1;
    }
}

.profile-container.has-image:hover .profile-border-glow {
    filter: blur(12px);
    opacity: 1;
    animation-duration: 3s;
}

.profile-tech-grid {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(var(--neon-cyan) 1px, transparent 1px);
    background-size: 16px 16px;
    opacity: 0.12;
    z-index: 2;
    pointer-events: none;
}

.laser-sweep-overlay {
    position: absolute;
    top: -60%;
    left: -60%;
    width: 220%;
    height: 220%;
    z-index: 5;
    pointer-events: none;
    background: linear-gradient(to bottom,
            rgba(255, 0, 127, 0) 46%,
            rgba(255, 0, 127, 0.85) 50%,
            rgba(0, 240, 255, 0.85) 52%,
            rgba(0, 240, 255, 0) 56%);
    transform: rotate(-35deg);
    box-shadow:
        0 0 25px rgba(255, 0, 127, 0.7),
        0 0 45px rgba(0, 240, 255, 0.7);
    animation: laser-sweep-animation 4.5s cubic-bezier(0.25, 0.8, 0.25, 1) infinite;
}

/* Glass Cards */
.glass-card {
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 35px;
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.45);
    transition: var(--transition);
}

.glass-card:hover {
    border-color: rgba(0, 240, 255, 0.35);
    box-shadow: 0 20px 45px rgba(0, 240, 255, 0.15);
    transform: translateY(-5px);
}

[data-theme="light"] .glass-card:hover {
    border-color: rgba(0, 130, 144, 0.35);
    box-shadow: 0 20px 45px rgba(0, 130, 144, 0.1);
}

/* Education Timeline Style */
.timeline-wrapper {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    padding: 30px 0;
}

.timeline-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 31px;
    height: 100%;
    width: 4px;
    background: linear-gradient(to bottom, var(--neon-pink), var(--neon-cyan));
    box-shadow: 0 0 10px rgba(0, 240, 255, 0.4);
    border-radius: 10px;
}

.timeline-item {
    position: relative;
    margin-bottom: 55px;
    padding-left: 80px;
    animation: fade-in-up 0.8s ease forwards;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-dot {
    position: absolute;
    left: 17px;
    top: 4px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--bg-darker);
    border: 3px solid var(--neon-cyan);
    box-shadow: 0 0 15px var(--neon-cyan);
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.timeline-dot i {
    font-size: 0.75rem;
    color: var(--neon-cyan);
    transition: var(--transition);
}

.timeline-item:hover .timeline-dot {
    border-color: var(--neon-pink);
    box-shadow: 0 0 20px var(--neon-pink);
    transform: scale(1.15);
}

.timeline-item:hover .timeline-dot i {
    color: var(--neon-pink);
}

.timeline-card {
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 26px 32px;
    position: relative;
    transition: var(--transition);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.35);
}

.timeline-card::after {
    content: '';
    position: absolute;
    left: -10px;
    top: 12px;
    width: 0;
    height: 0;
    border-top: 10px solid transparent;
    border-bottom: 10px solid transparent;
    border-right: 10px solid var(--glass-border);
}

.timeline-item:hover .timeline-card {
    border-color: rgba(255, 0, 127, 0.35);
    box-shadow: 0 15px 35px rgba(255, 0, 127, 0.18);
    transform: translateY(-4px);
}

[data-theme="light"] .timeline-item:hover .timeline-card {
    border-color: rgba(217, 0, 108, 0.35);
    box-shadow: 0 15px 35px rgba(217, 0, 108, 0.08);
}

.timeline-year {
    font-family: var(--font-head);
    font-size: 0.9rem;
    color: var(--neon-pink);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 6px;
    display: block;
}

.timeline-title {
    font-size: 1.45rem;
    color: var(--text-light);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
}

.timeline-school-badge {
    font-size: 0.75rem;
    background: rgba(0, 240, 255, 0.1);
    border: 1px solid var(--neon-cyan);
    padding: 4px 12px;
    border-radius: 20px;
    color: var(--neon-cyan);
    font-weight: 600;
    text-transform: uppercase;
}

[data-theme="light"] .timeline-school-badge {
    background: rgba(0, 130, 144, 0.1);
    border-color: var(--neon-cyan);
    color: var(--neon-cyan);
}

.timeline-desc {
    font-size: 0.98rem;
    color: var(--text-gray);
    line-height: 1.6;
}

.timeline-desc strong {
    color: var(--text-light);
    font-weight: 600;
}

/* Skills Section */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.skills-category-card {
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 35px;
    position: relative;
    overflow: hidden;
    transition: var(--transition);
}

.skills-category-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--neon-pink), var(--neon-cyan));
}

.skills-category-card:hover {
    border-color: rgba(0, 240, 255, 0.2);
    transform: translateY(-5px);
}

[data-theme="light"] .skills-category-card:hover {
    border-color: rgba(0, 130, 144, 0.2);
}

.skills-category-title {
    font-size: 1.35rem;
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.skills-category-title i {
    color: var(--neon-cyan);
    text-shadow: 0 0 10px var(--neon-cyan);
}

.skill-item {
    margin-bottom: 24px;
}

.skill-item:last-child {
    margin-bottom: 0;
}

.skill-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-size: 0.98rem;
    font-weight: 500;
}

.skill-name {
    color: var(--text-light);
}

.skill-percentage {
    font-family: var(--font-head);
    color: var(--neon-cyan);
    font-weight: 700;
}

.skill-bar-outer {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    overflow: hidden;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.02);
}

.skill-bar-inner {
    height: 100%;
    border-radius: 10px;
    background: linear-gradient(90deg, var(--neon-pink), var(--neon-cyan));
    box-shadow: 0 0 10px rgba(0, 240, 255, 0.4);
    width: 0;
    transition: width 1.8s cubic-bezier(0.22, 1, 0.36, 1);
}

[data-theme="light"] .skill-bar-inner {
    box-shadow: 0 0 10px rgba(0, 130, 144, 0.3);
}

/* Contact Section */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: stretch;
}

.contact-info-panel {
    display: flex;
    flex-direction: column;
    gap: 25px;
    justify-content: space-between;
}

.contact-card {
    display: flex;
    align-items: center;
    gap: 22px;
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 28px;
    text-decoration: none;
    color: var(--text-light);
    transition: var(--transition);
}

.contact-card:hover {
    border-color: var(--neon-cyan);
    box-shadow: 0 0 20px rgba(0, 240, 255, 0.2);
    transform: translateX(6px);
}

[data-theme="light"] .contact-card:hover {
    border-color: var(--neon-cyan);
    box-shadow: 0 0 20px rgba(0, 130, 144, 0.15);
}

.contact-card-icon {
    width: 60px;
    height: 60px;
    border-radius: 14px;
    background: rgba(0, 240, 255, 0.08);
    border: 1px solid var(--neon-cyan);
    box-shadow: 0 0 10px rgba(0, 240, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--neon-cyan);
    transition: var(--transition);
}

[data-theme="light"] .contact-card-icon {
    background: rgba(0, 130, 144, 0.08);
    border-color: var(--neon-cyan);
    box-shadow: 0 0 10px rgba(0, 130, 144, 0.1);
}

.contact-card:hover .contact-card-icon {
    background: var(--neon-cyan);
    color: var(--text-dark);
    box-shadow: 0 0 20px var(--neon-cyan);
}

.contact-card-details h4 {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-gray);
    margin-bottom: 6px;
}

.contact-card-details p {
    font-size: 1.25rem;
    font-weight: bold;
    font-family: var(--font-head);
    letter-spacing: 0.5px;
}

.social-connect-box {
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: 22px;
    padding: 30px;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex-grow: 1;
}

.social-connect-box h3 {
    font-size: 1.2rem;
    margin-bottom: 22px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.social-buttons-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.btn-social {
    padding: 16px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 700;
    font-family: var(--font-head);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    font-size: 1rem;
    transition: var(--transition);
}

.btn-facebook {
    background: rgba(24, 119, 242, 0.08);
    border: 1px solid #1877f2;
    color: #1877f2;
    box-shadow: 0 0 10px rgba(24, 119, 242, 0.1);
}

.btn-facebook:hover {
    background: #1877f2;
    color: var(--text-light);
    box-shadow: 0 0 20px #1877f2;
    transform: translateY(-4px);
}

.btn-github {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--text-light);
    color: var(--text-light);
}

[data-theme="light"] .btn-github {
    background: rgba(15, 23, 42, 0.04);
    border-color: var(--text-light);
    color: var(--text-light);
}

.btn-github:hover {
    background: var(--text-light);
    color: var(--bg-darker);
    box-shadow: 0 0 20px var(--text-light);
    transform: translateY(-4px);
}

/* Interactive Contact Form */
.contact-form-card {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

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

.form-group label {
    display: block;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: var(--text-gray);
    margin-bottom: 8px;
    font-weight: 600;
}

.form-control {
    width: 100%;
    background: var(--form-bg);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 14px 20px;
    color: var(--text-light);
    font-family: var(--font-body);
    font-size: 1rem;
    transition: var(--transition);
    outline: none;
}

.form-control::placeholder {
    color: var(--text-gray);
    opacity: 0.7;
}

.form-control:focus {
    border-color: var(--neon-cyan);
    box-shadow: 0 0 10px rgba(0, 240, 255, 0.35);
    background: var(--form-bg-focus);
}

[data-theme="light"] .form-control:focus {
    box-shadow: 0 0 10px rgba(0, 130, 144, 0.2);
}

textarea.form-control {
    resize: none;
    min-height: 130px;
}

/* Footer */
footer {
    background: var(--footer-bg);
    padding: 50px 0;
    border-top: 1px solid rgba(255, 0, 127, 0.12);
    text-align: center;
    position: relative;
    overflow: hidden;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, var(--neon-pink), var(--neon-cyan));
    box-shadow: 0 0 10px var(--neon-cyan);
}

.footer-logo {
    font-family: var(--font-head);
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--text-light);
    margin-bottom: 18px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.footer-logo span {
    color: var(--neon-pink);
    text-shadow: 0 0 8px var(--neon-pink);
}

.footer-text {
    color: var(--text-gray);
    font-size: 0.95rem;
    margin-bottom: 18px;
}

.footer-tech {
    font-family: var(--font-head);
    font-size: 0.75rem;
    color: var(--neon-cyan);
    opacity: 0.75;
    letter-spacing: 2px;
    text-transform: uppercase;
}

/* Responsive Breakpoints */
@media (max-width: 1024px) {
    .hero-wrapper {
        gap: 45px;
    }

    .hero-title {
        font-size: 3.4rem;
    }

    .profile-container {
        width: 300px;
        height: 300px;
    }
}

@media (max-width: 992px) {
    .hero-wrapper {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 50px;
        padding-top: 40px;
        min-height: auto;
    }

    .hero-welcome {
        justify-content: center;
    }

    .hero-badges {
        justify-content: center;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-description {
        margin: 10px auto 0 auto;
    }

    .profile-container {
        grid-row: 1;
        width: 290px;
        height: 290px;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

@media (max-width: 768px) {
    html {
        font-size: 15px;
    }

    body {
        padding-bottom: 0; /* Removed padding for bottom menu */
    }

    section {
        padding: 85px 0 50px 0;
    }

    /* Active Hamburger Menu Icon display */
    .nav-toggle {
        display: block !important;
        position: relative;
        z-index: 1010;
    }

    /* Redesigned Menu: Overlay slide-down style */
    .nav-menu {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: auto;
        background: rgba(5, 5, 10, 0.98);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 20px;
        padding: 100px 0 40px 0;
        border-bottom: 2px solid rgba(0, 240, 255, 0.3);
        z-index: 999;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
        margin: 0;
        transform: translateY(-100%);
        transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
        list-style: none;
    }

    [data-theme="light"] .nav-menu {
        background: rgba(240, 244, 258, 0.98);
        border-bottom: 2px solid rgba(0, 130, 144, 0.3);
        box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
    }

    .nav-menu.active {
        transform: translateY(0);
    }

    .nav-menu li {
        width: 100%;
        text-align: center;
    }

    .nav-link {
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: center;
        gap: 12px;
        font-size: 1.15rem;
        padding: 12px 0;
        width: 100%;
        color: var(--text-gray);
    }

    .nav-link i {
        display: inline-block;
        font-size: 1.25rem;
        color: var(--neon-cyan);
    }

    .nav-link::after {
        display: none !important;
    }

    .nav-link:hover,
    .nav-link.active {
        color: var(--text-light);
        background: rgba(0, 240, 255, 0.05);
        text-shadow: 0 0 8px rgba(0, 240, 255, 0.4);
    }

    [data-theme="light"] .nav-link:hover,
    [data-theme="light"] .nav-link.active {
        color: var(--text-light);
        background: rgba(0, 130, 144, 0.05);
        text-shadow: 0 0 4px rgba(0, 130, 144, 0.3);
    }

    .timeline-wrapper::before {
        left: 20px;
    }

    .timeline-item {
        padding-left: 55px;
    }

    .timeline-dot {
        left: 6px;
        top: 8px;
    }

    .timeline-card::after {
        left: -10px;
        top: 15px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2.6rem;
    }

    .profile-container {
        width: 250px;
        height: 250px;
    }

    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }

    .btn-cyber {
        width: 100%;
    }

    .social-buttons-grid {
        grid-template-columns: 1fr;
    }

    .timeline-title {
        font-size: 1.2rem;
    }

    .timeline-card {
        padding: 22px 20px;
    }
}

/* Keyframe Animations */
@keyframes rotate-border-gradient {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

@keyframes laser-sweep-animation {
    0% {
        top: -120%;
        left: -120%;
    }
    50% {
        top: 70%;
        left: 70%;
    }
    100% {
        top: 70%;
        left: 70%;
    }
}

@keyframes pulse-pink-dot {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 0, 127, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(255, 0, 127, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(255, 0, 127, 0);
    }
}

@keyframes text-pulse-shadow {
    0%,
    100% {
        filter: drop-shadow(0 0 8px rgba(255, 0, 127, 0.25));
    }
    50% {
        filter: drop-shadow(0 0 18px rgba(0, 240, 255, 0.5));
    }
}

@keyframes floating-icon {
    0%,
    100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-8px);
    }
}

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

/* Softer glows and contrast styling for Light Mode */
[data-theme="light"] .glass-card {
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.05);
}

[data-theme="light"] .glass-card:hover {
    border-color: rgba(0, 130, 144, 0.4);
    box-shadow: 0 20px 45px rgba(0, 130, 144, 0.1);
}

[data-theme="light"] .timeline-card {
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.03);
}

[data-theme="light"] .timeline-item:hover .timeline-card {
    border-color: rgba(217, 0, 108, 0.3);
    box-shadow: 0 15px 35px rgba(217, 0, 108, 0.08);
}

[data-theme="light"] .timeline-wrapper::before {
    box-shadow: 0 0 5px rgba(0, 130, 144, 0.15);
}

[data-theme="light"] .timeline-dot {
    box-shadow: 0 0 8px rgba(0, 130, 144, 0.25);
    border-color: var(--neon-cyan);
    background: var(--bg-darker);
}

[data-theme="light"] .timeline-dot i {
    color: var(--neon-cyan);
}

[data-theme="light"] .timeline-item:hover .timeline-dot {
    border-color: var(--neon-pink);
    box-shadow: 0 0 15px rgba(217, 0, 108, 0.4);
}

[data-theme="light"] .timeline-item:hover .timeline-dot i {
    color: var(--neon-pink);
}

[data-theme="light"] .skills-category-card {
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.03);
}

[data-theme="light"] .skill-bar-outer {
    background: rgba(15, 23, 42, 0.08);
    border-color: rgba(15, 23, 42, 0.02);
}

[data-theme="light"] .logo-box {
    box-shadow: 0 0 10px rgba(0, 130, 144, 0.2);
}

[data-theme="light"] .nav-link:hover {
    text-shadow: 0 0 4px rgba(0, 130, 144, 0.3);
}

[data-theme="light"] .section-title::after {
    box-shadow: 0 0 6px rgba(0, 130, 144, 0.3);
}

[data-theme="light"] .badge {
    box-shadow: 0 0 6px rgba(217, 0, 108, 0.08);
    background: rgba(217, 0, 108, 0.05);
    border-color: var(--neon-pink);
    color: var(--text-light);
}

[data-theme="light"] .badge-cyan {
    box-shadow: 0 0 6px rgba(0, 130, 144, 0.08);
    background: rgba(0, 130, 144, 0.05);
    border-color: var(--neon-cyan);
    color: var(--text-light);
}

[data-theme="light"] .btn-cyber:hover {
    box-shadow: 0 0 15px rgba(217, 0, 108, 0.3);
}

[data-theme="light"] .btn-cyber-outline {
    box-shadow: 0 0 6px rgba(0, 130, 144, 0.08);
    border-color: var(--neon-cyan);
}

[data-theme="light"] .btn-cyber-outline:hover {
    box-shadow: 0 0 15px rgba(0, 130, 144, 0.3);
}

[data-theme="light"] .profile-border-glow {
    opacity: 0.6;
    filter: blur(6px);
}

[data-theme="light"] .profile-frame {
    border: 1px solid rgba(15, 23, 42, 0.05);
    box-shadow: inset 0 0 15px rgba(0, 0, 0, 0.05);
}

[data-theme="light"] .profile-fallback-icon {
    text-shadow: 0 0 8px rgba(0, 130, 144, 0.3);
    color: var(--neon-cyan);
}

[data-theme="light"] .profile-scan-label {
    text-shadow: 0 0 3px rgba(0, 130, 144, 0.3);
    border-color: var(--neon-cyan);
    color: var(--neon-cyan);
    background: rgba(240, 244, 258, 0.9);
}

[data-theme="light"] .laser-sweep-overlay {
    box-shadow: 0 0 15px rgba(217, 0, 108, 0.3), 0 0 25px rgba(0, 130, 144, 0.3);
}

[data-theme="light"] .skills-category-title i {
    text-shadow: 0 0 4px rgba(0, 130, 144, 0.3);
    color: var(--neon-cyan);
}

[data-theme="light"] .skill-bar-inner {
    box-shadow: 0 0 6px rgba(0, 130, 144, 0.25);
}

[data-theme="light"] .contact-card-icon {
    box-shadow: 0 0 6px rgba(0, 130, 144, 0.05);
}

[data-theme="light"] .contact-card:hover .contact-card-icon {
    box-shadow: 0 0 15px rgba(0, 130, 144, 0.3);
    color: #ffffff;
}

[data-theme="light"] .footer-logo span {
    text-shadow: 0 0 4px rgba(217, 0, 108, 0.4);
}

[data-theme="light"] .welcome-dot {
    box-shadow: 0 0 5px var(--neon-pink);
}
