/* CSS Variables */
:root {
    --primary: #f1c40f;
    --secondary: #e67e22;
    --accent: #f39c12;
    --bg-dark: #0a0a0f;
    --bg-darker: #050508;
    --text-primary: #ffffff;
    --text-secondary: #b8bcc8;
    --text-muted: #6c7293;
    --card-bg: #1a1a2e;
    --border-color: #2a2a3e;
    --gradient-primary: linear-gradient(135deg, var(--primary), var(--accent));
    --gradient-secondary: linear-gradient(135deg, var(--secondary), var(--accent));
    --shadow-glow: 0 0 30px rgba(241, 196, 15, 0.3);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Light Mode Variables */
[data-theme="light"] {
    --primary: #f39c12;
    --secondary: #e67e22;
    --accent: #f1c40f;
    --bg-dark: #f5f7fa;
    --bg-darker: #ffffff;
    --text-primary: #1a1a2e;
    --text-secondary: #4a5568;
    --text-muted: #718096;
    --card-bg: #ffffff;
    --border-color: #e2e8f0;
    --gradient-primary: linear-gradient(135deg, var(--primary), var(--accent));
    --gradient-secondary: linear-gradient(135deg, var(--secondary), var(--accent));
    --shadow-glow: 0 0 30px rgba(243, 156, 18, 0.2);
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    overflow-x: hidden;
    max-width: 100vw;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    max-width: 100vw;
    margin: 0;
    padding: 0;
    transition: background 0.3s ease, color 0.3s ease;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    width: 100%;
    box-sizing: border-box;
}

@media (max-width: 768px) {
    .container {
        padding: 0 1rem;
    }
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(10, 10, 15, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
    transition: var(--transition);
}

.navbar.scrolled {
    background: rgba(5, 5, 8, 0.98);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
    position: relative;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* Theme Toggle Button */
.theme-toggle {
    background: var(--card-bg);
    border: 2px solid var(--border-color);
    border-radius: 50%;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    z-index: 1001;
    outline: none;
    padding: 0;
}

.theme-toggle:hover {
    transform: scale(1.1);
    border-color: var(--primary);
    box-shadow: 0 0 20px rgba(241, 196, 15, 0.3);
}

.theme-toggle:active {
    transform: scale(0.95);
}

.theme-toggle .sun-icon,
.theme-toggle .moon-icon {
    position: absolute;
    font-size: 1.3rem;
    transition: all 0.3s ease;
}

.theme-toggle .sun-icon {
    opacity: 0;
    transform: rotate(-90deg) scale(0);
}

.theme-toggle .moon-icon {
    opacity: 1;
    transform: rotate(0deg) scale(1);
}

[data-theme="light"] .theme-toggle .sun-icon {
    opacity: 1;
    transform: rotate(0deg) scale(1);
}

[data-theme="light"] .theme-toggle .moon-icon {
    opacity: 0;
    transform: rotate(90deg) scale(0);
}

.nav-logo {
    position: relative;
    display: flex;
    align-items: center;
}

.logo-text {
    font-family: 'JetBrains Mono', monospace;
    font-size: 1.5rem;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.logo-pulse {
    position: absolute;
    right: -10px;
    top: 50%;
    transform: translateY(-50%);
    width: 8px;
    height: 8px;
    background: var(--primary);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
        transform: translateY(-50%) scale(1);
    }

    50% {
        opacity: 0.3;
        transform: translateY(-50%) scale(1.5);
    }
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--text-primary);
    transition: var(--transition);
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    padding-top: 70px;
    /* Add this line to account for navbar height */
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.grid-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(rgba(0, 245, 255, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 245, 255, 0.1) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: gridMove 20s linear infinite;
}

@keyframes gridMove {
    0% {
        transform: translate(0, 0);
    }

    100% {
        transform: translate(50px, 50px);
    }
}

.floating-elements {
    position: absolute;
    width: 100%;
    height: 100%;
}

.floating-element {
    position: absolute;
    width: 100px;
    height: 100px;
    background: var(--gradient-primary);
    border-radius: 50%;
    opacity: 0.1;
    animation: float 10s infinite ease-in-out;
}

.floating-element:nth-child(1) {
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.floating-element:nth-child(2) {
    top: 60%;
    right: 10%;
    animation-delay: -3s;
}

.floating-element:nth-child(3) {
    bottom: 30%;
    left: 70%;
    animation-delay: -6s;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0px) rotate(0deg);
    }

    33% {
        transform: translateY(-30px) rotate(120deg);
    }

    66% {
        transform: translateY(30px) rotate(240deg);
    }
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.hero-text {
    z-index: 2;
}

.hero-title {
    margin-bottom: 2rem;
}

.title-line {
    display: block;
    font-size: 1.5rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

/* Continuing from where the CSS stopped */

.title-name {
    display: block;
    font-size: 4rem;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
    position: relative;
}

.title-name::after {
    content: '|';
    animation: blink 1s infinite;
    color: var(--primary);
}

@keyframes blink {

    0%,
    50% {
        opacity: 1;
    }

    51%,
    100% {
        opacity: 0;
    }
}

.title-subtitle {
    display: block;
    font-size: 1.8rem;
    color: var(--text-secondary);
    font-weight: 300;
}

.hero-description {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 3rem;
    max-width: 500px;
}

.hero-stats {
    display: flex;
    gap: 3rem;
    margin-bottom: 2rem;
}

.stat {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary);
    font-family: 'JetBrains Mono', monospace;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}



@media (max-width: 768px) {
    .hero-content {
        padding-top: 2rem;
        /* Extra space on top */
        padding-bottom: 2rem;
        /* Extra space at bottom */
    }

    .title-name {
        font-size: 2.5rem;
        line-height: 1.2;
        /* Better line spacing */
    }

    .hero-description {
        font-size: 1rem;
        /* Slightly smaller text */
        margin-bottom: 2rem;
    }
}


.code-content {
    padding: 1.5rem;
    background: var(--bg-dark);
    min-height: 300px;
    /* Match container height */
    height: 100%;
    /* Ensure it fills container */
    overflow: hidden;
    /* Prevent content from overflowing */
}


.code-window {
    background: var(--card-bg);
    border-radius: 12px;
    border: 1px solid var(--border-color);
    overflow: hidden;
    box-shadow: var(--shadow-glow);
    width: 100%;
    max-width: 500px;
    max-height: 350px;
    min-height: 350px;
}

.window-header {
    background: var(--bg-darker);
    padding: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.window-controls {
    display: flex;
    gap: 0.5rem;
}

.control {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.control.close {
    background: #ff5f57;
}

.control.minimize {
    background: #ffbd2e;
}

.control.maximize {
    background: #28ca42;
}

.window-title {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.code-content {
    padding: 1.5rem;
    background: var(--bg-dark);
    min-height: 280px;
    max-height: 280px;
    overflow: hidden;
}

#code-animation {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.9rem;
    color: var(--text-primary);
    line-height: 1.6;
    white-space: pre-wrap;
    word-wrap: break-word;
    overflow-wrap: break-word;
    max-width: 100%;
}

#code-animation .cursor {
    display: inline-block;
    width: 2px;
    background: var(--primary);
    animation: cursorBlink 1s infinite;
    margin-left: 2px;
}

@keyframes cursorBlink {
    0%, 49% {
        opacity: 1;
    }
    50%, 100% {
        opacity: 0;
    }
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-muted);
    animation: bounce 2s infinite;
}

.scroll-arrow {
    width: 20px;
    height: 20px;
    border-right: 2px solid var(--primary);
    border-bottom: 2px solid var(--primary);
    transform: rotate(45deg);
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateX(-50%) translateY(0);
    }

    40% {
        transform: translateX(-50%) translateY(-10px);
    }

    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

/* Section Headers */
.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-line {
    width: 100px;
    height: 4px;
    background: var(--gradient-primary);
    margin: 0 auto;
    border-radius: 2px;
}

/* About Section */
.about {
    padding: 8rem 0;
    background: var(--bg-darker);
}

.about-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 4rem;
    align-items: start;
}

.about-text {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.about-card {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.about-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.about-card:hover::before {
    transform: scaleX(1);
}

.about-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 40px rgba(0, 245, 255, 0.2);
}

.about-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--primary);
}

.about-card p {
    color: var(--text-secondary);
    line-height: 1.8;
}

.about-visual {
    display: flex;
    justify-content: center;
}

.profile-card {
    background: var(--card-bg);
    border-radius: 20px;
    padding: 2rem;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-glow);
    width: 100%;
    max-width: 350px;
}

.profile-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border-color);
}

.profile-avatar {
    width: 80px;
    height: 80px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 700;
    color: var(--bg-dark);
}

.profile-info h4 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

.profile-info p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.profile-status {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.status-dot {
    width: 8px;
    height: 8px;
    background: #28ca42;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

.profile-status span {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.profile-details {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.detail-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.detail-label {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.detail-value {
    color: var(--text-primary);
    font-weight: 500;
}

/* Skills Section */
.skills {
    padding: 8rem 0;
}

.skills-content {
    display: flex;
    flex-direction: column;
    gap: 4rem;
}

.skills-category h3 {
    font-size: 2rem;
    margin-bottom: 2rem;
    text-align: center;
    color: var(--primary);
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.skill-card {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    text-align: center;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.skill-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 245, 255, 0.1), transparent);
    transition: left 0.5s ease;
}

.skill-card:hover::before {
    left: 100%;
}

.skill-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 60px rgba(0, 245, 255, 0.2);
}

.skill-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.skill-card h4 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--primary);
}

.skill-card p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.skill-bar {
    width: 100%;
    height: 8px;
    background: var(--border-color);
    border-radius: 4px;
    overflow: hidden;
}

.skill-progress {
    height: 100%;
    background: var(--gradient-primary);
    border-radius: 4px;
    width: 0;
    transition: width 1s ease-in-out;
}

.learning-section h3 {
    font-size: 2rem;
    margin-bottom: 2rem;
    text-align: center;
    color: var(--secondary);
}

.learning-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.learning-card {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    text-align: center;
    transition: var(--transition);
}

.learning-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(255, 61, 113, 0.2);
}

.learning-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.learning-card h4 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--secondary);
}

.learning-progress {
    width: 100%;
    height: 6px;
    background: var(--border-color);
    border-radius: 3px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background: var(--gradient-secondary);
    border-radius: 3px;
    width: 0;
    transition: width 1s ease-in-out;
}

/* Projects Section */
.projects {
    padding: 8rem 0;
    background: var(--bg-darker);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.project-card {
    background: var(--card-bg);
    border-radius: 16px;
    border: 1px solid var(--border-color);
    padding: 2rem;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.project-card:hover::before {
    transform: scaleX(1);
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 60px rgba(0, 245, 255, 0.2);
}

.project-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.project-icon {
    font-size: 2.5rem;
}

.project-meta h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--primary);
}

.project-type {
    color: var(--text-muted);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.project-description {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 2rem;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 2rem;
}

.tech-tag {
    background: rgba(0, 245, 255, 0.1);
    color: var(--primary);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    border: 1px solid rgba(0, 245, 255, 0.2);
}

.project-links {
    display: flex;
    gap: 1rem;
}

.project-link {
    padding: 0.8rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.project-link:not(.secondary) {
    background: var(--gradient-primary);
    color: var(--bg-dark);
}

.project-link.secondary {
    background: transparent;
    color: var(--primary);
    border: 1px solid var(--primary);
}

.project-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 245, 255, 0.3);
}

/* Journey Timeline */
.journey {
    padding: 8rem 0;
}

.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--gradient-primary);
    transform: translateX(-50%);
}

.timeline-item {
    position: relative;
    margin-bottom: 4rem;
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.6s ease;
}

.timeline-item.animate {
    opacity: 1;
    transform: translateY(0);
}

.timeline-item:nth-child(odd) .timeline-content {
    margin-right: 50%;
    padding-right: 2rem;
    text-align: right;
}

.timeline-item:nth-child(even) .timeline-content {
    margin-left: 50%;
    padding-left: 2rem;
}

.timeline-item::before {
    content: attr(data-year);
    position: absolute;
    left: 50%;
    top: 0;
    transform: translateX(-50%);
    background: var(--card-bg);
    color: var(--primary);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: 700;
    font-family: 'JetBrains Mono', monospace;
    border: 2px solid var(--primary);
    z-index: 2;
}

.timeline-content {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    position: relative;
}

.timeline-content h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--primary);
}

.timeline-content p {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.timeline-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.timeline-tech span {
    background: rgba(123, 104, 238, 0.1);
    color: var(--accent);
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
    border: 1px solid rgba(123, 104, 238, 0.2);
}

/* Contact Section */
.contact {
    padding: 8rem 0;
    background: var(--bg-darker);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.contact-info h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--primary);
}

.contact-info p {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 2rem;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.contact-icon {
    font-size: 1.5rem;
    width: 50px;
    height: 50px;
    background: rgba(0, 245, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(0, 245, 255, 0.2);
}

.contact-text {
    display: flex;
    flex-direction: column;
}

.contact-label {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 0.2rem;
}

.contact-text a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
}

.contact-text a:hover {
    color: var(--text-primary);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.contact-button {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem;
    text-decoration: none;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 1rem;
    position: relative;
    overflow: hidden;
}

.contact-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 245, 255, 0.1), transparent);
    transition: left 0.5s ease;
}

.contact-button:hover::before {
    left: 100%;
}

.contact-button:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 245, 255, 0.2);
    border-color: var(--primary);
}

.button-icon {
    font-size: 1.5rem;
    width: 50px;
    height: 50px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.button-text {
    display: flex;
    flex-direction: column;
}

.button-title {
    color: var(--text-primary);
    font-weight: 600;
    margin-bottom: 0.2rem;
}

.button-subtitle {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.contact-button.whatsapp:hover .button-icon {
    background: linear-gradient(135deg, #25D366, #128C7E);
}

.contact-button.github:hover .button-icon {
    background: linear-gradient(135deg, #24292e, #586069);
}

.contact-button.phone:hover .button-icon {
    background: var(--gradient-secondary);
}

/* Footer */
.footer {
    background: var(--bg-dark);
    padding: 3rem 0;
    border-top: 1px solid var(--border-color);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-left {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.footer-logo .logo-text {
    font-family: 'JetBrains Mono', monospace;
    font-size: 1.5rem;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.footer-left p {
    color: var(--text-muted);
}

.footer-right p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: rgba(5, 5, 8, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 3rem;
        transition: left 0.3s ease;
        z-index: 999;
        overflow-y: auto;
    }

    [data-theme="light"] .nav-menu {
        background: rgba(255, 255, 255, 0.98);
    }

    .nav-menu.active {
        left: 0;
    }

    .hamburger {
        display: flex;
        z-index: 1002;
    }

    .nav-actions {
        gap: 0.8rem;
        z-index: 1002;
    }

    .theme-toggle {
        width: 40px;
        height: 40px;
    }

    .theme-toggle .sun-icon,
    .theme-toggle .moon-icon {
        font-size: 1.1rem;
    }

    .hero-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

    .title-name {
        font-size: 2.5rem;
    }

    .hero-stats {
        justify-content: center;
        gap: 2rem;
    }

    .about-content,
    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .skills-grid {
        grid-template-columns: 1fr;
    }

    .timeline::before {
        left: 2rem;
    }

    .timeline-item:nth-child(odd) .timeline-content,
    .timeline-item:nth-child(even) .timeline-content {
        margin-left: 4rem;
        margin-right: 0;
        padding-left: 2rem;
        padding-right: 0;
        text-align: left;
    }

    .timeline-item::before {
        left: 2rem;
        transform: translateX(-50%);
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

    .footer-content {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .footer-left {
        flex-direction: column;
        gap: 1rem;
    }

    .container {
        padding: 0 1rem;
    }

}

@media (max-width: 480px) {
    .title-name {
        font-size: 2rem;
    }

    .hero-stats {
        flex-direction: column;
        gap: 1rem;
    }

    .code-window {
        max-width: 100%;
        height: 280px;
        min-height: 280px;
        max-height: 280px;
    }

    .code-content {
        padding: 1rem;
        min-height: 210px;
        max-height: 210px;
        overflow: hidden;
    }

    #code-animation {
        font-size: 0.75rem;
        line-height: 1.4;
    }
}

/* Scroll animations */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.6s ease;
}

.animate-on-scroll.animate {
    opacity: 1;
    transform: translateY(0);
}

/* Loading animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease forwards;
}





/* Image Showcase Section */
.image-showcase {
    padding: 8rem 0;
    background: var(--bg-darker);
}

.section-subtitle {
    color: var(--text-secondary);
    font-size: 1.2rem;
    margin-top: 1rem;
}

.image-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.image-card {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transition: var(--transition);
    aspect-ratio: 1/1;
}

.image-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 245, 255, 0.3);
}

.image-container {
    width: 100%;
    height: 100%;
}

.image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.image-card:hover img {
    transform: scale(1.05);
}

.image-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(5, 5, 8, 0.9), transparent);
    padding: 2rem 1.5rem 1.5rem;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.image-card:hover .image-overlay {
    transform: translateY(0);
}

.image-overlay h3 {
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
    color: var(--primary);
}

.image-overlay p {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

@media (max-width: 768px) {
    .image-gallery {
        grid-template-columns: 1fr;
    }

    .image-card {
        aspect-ratio: 16/9;
    }
}

/* Responsive adjustments for the new section */
@media (max-width: 768px) {
    .image-gallery {
        grid-template-columns: 1fr;
        /* Stack images on small screens */
    }
}

@media (max-width: 480px) {
    .image-card img {
        height: 200px;
        /* Smaller height for very small screens */
    }

    #code-animation {
        font-size: 0.8rem;
        /* Smaller font for code */
        line-height: 1.5;
        /* Tighter line spacing */
    }
}

@media (max-width: 768px) {
    .navbar {
        height: 60px;
        /* Slightly smaller navbar */
    }

    .nav-container {
        height: 60px;
        /* Match navbar height */
    }

    .nav-menu {
        top: 60px;
        /* Adjust for smaller navbar */
        height: calc(100vh - 60px);
        /* Adjust height */
    }
}













/* Timeline styles */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    padding: 20px 0;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--gradient-primary);
    transform: translateX(-50%);
    z-index: 1;
}

.timeline-item {
    position: relative;
    margin-bottom: 4rem;
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.6s ease;
    z-index: 2;
}

.timeline-item.timeline-animate {
    opacity: 1;
    transform: translateY(0);
}

.timeline-item::before {
    content: attr(data-year);
    position: absolute;
    left: 50%;
    top: 0;
    transform: translateX(-50%);
    background: var(--card-bg);
    color: var(--primary);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: 700;
    font-family: 'JetBrains Mono', monospace;
    border: 2px solid var(--primary);
    z-index: 3;
}

.timeline-content {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    position: relative;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .timeline::before {
        left: 2rem;
    }

    .timeline-item:nth-child(odd) .timeline-content,
    .timeline-item:nth-child(even) .timeline-content {
        margin-left: 4rem;
        margin-right: 0;
        padding-left: 2rem;
        padding-right: 0;
        text-align: left;
    }

    .timeline-item::before {
        left: 2rem;
        transform: translateX(-50%);
    }
}

/* C
V Section */
.cv-section {
    padding: 8rem 0;
    background: var(--bg-dark);
}

.cv-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    margin-top: 2rem;
}

.cv-preview {
    display: flex;
    justify-content: center;
}

.cv-document {
    background: var(--card-bg);
    border-radius: 16px;
    padding: 2.5rem;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-glow);
    text-align: center;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    max-width: 400px;
    width: 100%;
}

.cv-document::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 245, 255, 0.1), transparent);
    transition: left 0.5s ease;
}

.cv-document:hover::before {
    left: 100%;
}

.cv-document:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 60px rgba(0, 245, 255, 0.3);
}

.document-icon {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.document-info h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: var(--primary);
}

.document-info p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 2rem;
}

.document-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
}

.document-meta span {
    background: rgba(0, 245, 255, 0.1);
    color: var(--primary);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    border: 1px solid rgba(0, 245, 255, 0.2);
}

.cv-actions {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.cv-highlights h4 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--primary);
}

.highlights-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.highlights-list li {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: var(--text-secondary);
    padding: 1rem;
    background: var(--card-bg);
    border-radius: 8px;
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.highlights-list li:hover {
    transform: translateX(10px);
    border-color: var(--primary);
}

.highlight-icon {
    font-size: 1.5rem;
    width: 40px;
    height: 40px;
    background: rgba(0, 245, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(0, 245, 255, 0.2);
    flex-shrink: 0;
}

.cv-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.cv-button {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem;
    text-decoration: none;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 1rem;
    position: relative;
    overflow: hidden;
}

.cv-button.primary {
    background: var(--gradient-primary);
    border-color: var(--primary);
}

.cv-button.primary .button-text {
    color: var(--bg-dark);
}

.cv-button.primary .button-icon {
    background: rgba(255, 255, 255, 0.2);
    color: var(--bg-dark);
}

.cv-button.secondary {
    border-color: var(--primary);
}

.cv-button.secondary:hover {
    background: rgba(0, 245, 255, 0.1);
}

.cv-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s ease;
}

.cv-button:hover::before {
    left: 100%;
}

.cv-button:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 245, 255, 0.3);
}

.cv-button .button-icon {
    font-size: 1.5rem;
    width: 50px;
    height: 50px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.cv-button .button-text {
    display: flex;
    flex-direction: column;
}

.cv-button .button-title {
    color: var(--text-primary);
    font-weight: 600;
    margin-bottom: 0.2rem;
    font-size: 1.1rem;
}

.cv-button .button-subtitle {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* CV Section Responsive Design */
@media (max-width: 768px) {
    .cv-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .cv-document {
        max-width: 100%;
    }

    .document-meta {
        flex-direction: column;
        align-items: center;
    }

    .highlights-list li {
        padding: 0.8rem;
    }

    .cv-buttons {
        gap: 0.8rem;
    }
}

@media (max-width: 480px) {
    .cv-section {
        padding: 4rem 0;
    }

    .cv-document {
        padding: 2rem;
    }

    .document-icon {
        font-size: 3rem;
    }

    .document-info h3 {
        font-size: 1.5rem;
    }

    .cv-button {
        padding: 1.2rem;
    }

    .cv-button .button-icon {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
}


/* ========================================
   CHATBOT STYLES
   ======================================== */

.chatbot-button {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: var(--gradient-primary);
    border-radius: 50%;
    border: none;
    cursor: pointer;
    box-shadow: 0 8px 32px rgba(0, 245, 255, 0.4);
    z-index: 999;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.chatbot-button:hover {
    transform: scale(1.1);
    box-shadow: 0 12px 40px rgba(0, 245, 255, 0.6);
}

.chatbot-button:focus {
    outline: none;
}

.chatbot-button .chat-icon {
    font-size: 1.8rem;
    display: block;
}

.chatbot-button .close-icon {
    font-size: 1.8rem;
    display: none;
    font-style: normal;
}

.chatbot-button.active .chat-icon {
    display: none;
}

.chatbot-button.active .close-icon {
    display: block;
}

.chatbot-container {
    position: fixed;
    bottom: 110px;
    right: 30px;
    width: 380px;
    max-height: 600px;
    background: var(--card-bg);
    border-radius: 20px;
    border: 1px solid var(--border-color);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    z-index: 998;
    display: none;
    flex-direction: column;
    overflow: hidden;
    transition: var(--transition);
}

.chatbot-container.active {
    display: flex;
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.chatbot-header {
    background: var(--gradient-primary);
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.chatbot-avatar {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--bg-dark);
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.chatbot-info h3 {
    font-size: 1.1rem;
    margin-bottom: 4px;
    color: var(--bg-dark);
}

.chatbot-info p {
    font-size: 0.85rem;
    color: rgba(10, 10, 15, 0.8);
    display: flex;
    align-items: center;
    gap: 8px;
}

.chatbot-messages {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    max-height: 400px;
    background: var(--bg-darker);
}

.chatbot-messages::-webkit-scrollbar {
    width: 6px;
}

.chatbot-messages::-webkit-scrollbar-track {
    background: transparent;
}

.chatbot-messages::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 3px;
}

.message {
    display: flex;
    gap: 12px;
    animation: messageSlide 0.3s ease;
}

@keyframes messageSlide {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message.bot {
    align-items: flex-start;
}

.message.user {
    flex-direction: row-reverse;
}

.message-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 0.9rem;
    font-weight: 600;
}

.message.bot .message-avatar {
    background: var(--gradient-primary);
    color: var(--bg-dark);
}

.message.user .message-avatar {
    background: var(--border-color);
    color: var(--text-primary);
}

.message-content {
    max-width: 70%;
    padding: 12px 16px;
    border-radius: 16px;
    line-height: 1.6;
    font-size: 0.95rem;
    white-space: pre-line;
}

.message.bot .message-content {
    background: var(--card-bg);
    color: var(--text-primary);
    border-bottom-left-radius: 4px;
    border: 1px solid var(--border-color);
}

.message.user .message-content {
    background: var(--gradient-primary);
    color: var(--bg-dark);
    border-bottom-right-radius: 4px;
}

.typing-indicator {
    display: flex;
    gap: 5px;
    padding: 12px 16px;
    background: var(--card-bg);
    border-radius: 16px;
    border-bottom-left-radius: 4px;
    width: fit-content;
    border: 1px solid var(--border-color);
}

.typing-dot {
    width: 8px;
    height: 8px;
    background: var(--primary);
    border-radius: 50%;
    animation: typing 1.4s infinite;
}

.typing-dot:nth-child(2) {
    animation-delay: 0.2s;
}

.typing-dot:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes typing {

    0%,
    60%,
    100% {
        transform: translateY(0);
        opacity: 0.7;
    }

    30% {
        transform: translateY(-10px);
        opacity: 1;
    }
}

.quick-replies {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.quick-reply-btn {
    padding: 8px 16px;
    background: var(--card-bg);
    border: 2px solid var(--primary);
    color: var(--primary);
    border-radius: 20px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: var(--transition);
    font-weight: 600;
}

.quick-reply-btn:hover {
    background: var(--gradient-primary);
    color: var(--bg-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 245, 255, 0.3);
}

.chatbot-input-area {
    padding: 18px 20px;
    border-top: 1px solid var(--border-color);
    background: var(--card-bg);
    display: flex;
    gap: 12px;
}

.chatbot-input {
    flex: 1;
    padding: 12px 18px;
    border: 2px solid var(--border-color);
    border-radius: 25px;
    font-family: inherit;
    font-size: 0.95rem;
    background: var(--bg-darker);
    color: var(--text-primary);
    transition: var(--transition);
}

.chatbot-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(0, 245, 255, 0.1);
}

.chatbot-input::placeholder {
    color: var(--text-muted);
}

.chatbot-send-btn {
    width: 46px;
    height: 46px;
    background: var(--gradient-primary);
    border: none;
    border-radius: 50%;
    color: var(--bg-dark);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    font-size: 1.2rem;
}

.chatbot-send-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 16px rgba(0, 245, 255, 0.4);
}

.chatbot-send-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: scale(1);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .chatbot-container {
        width: calc(100vw - 40px);
        right: 20px;
        bottom: 130px;
        max-height: 500px;
    }

    .chatbot-button {
        bottom: 20px;
        right: 20px;
        width: 56px;
        height: 56px;
    }

    .chatbot-button .chat-icon,
    .chatbot-button .close-icon {
        font-size: 1.5rem;
    }

    .chatbot-input-area {
        padding: 16px;
    }

    .chatbot-send-btn {
        width: 44px;
        height: 44px;
    }
}

@media (max-width: 480px) {
    .chatbot-container {
        width: calc(100vw - 20px);
        right: 10px;
        left: 10px;
        max-height: 450px;
    }

    .chatbot-messages {
        max-height: 320px;
    }

    .message-content {
        max-width: 80%;
        font-size: 0.9rem;
    }
}

/* Prevent horizontal overflow on all sections */
section {
    max-width: 100vw;
    overflow-x: hidden;
    box-sizing: border-box;
}

/* Ensure all elements respect viewport width */
* {
    max-width: 100%;
    box-sizing: border-box;
}

/* Fix for hero section on mobile */
@media (max-width: 768px) {
    .hero {
        overflow-x: hidden;
    }
    
    .hero-content {
        max-width: 100%;
        overflow-x: hidden;
    }
    
    .hero-visual {
        max-width: 100%;
        overflow-x: hidden;
    }
    
    .code-window {
        margin: 0 auto;
    }
}

/* Light mode specific adjustments */
[data-theme="light"] .navbar {
    background: rgba(255, 255, 255, 0.95);
    border-bottom-color: var(--border-color);
}

[data-theme="light"] .navbar.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .nav-menu {
    background: rgba(255, 255, 255, 0.98);
}

[data-theme="light"] .grid-overlay {
    background-image: 
        linear-gradient(rgba(243, 156, 18, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(243, 156, 18, 0.1) 1px, transparent 1px);
}

[data-theme="light"] .floating-element {
    opacity: 0.05;
}

[data-theme="light"] .code-window {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .card-bg,
[data-theme="light"] .about-card,
[data-theme="light"] .skill-card,
[data-theme="light"] .project-card {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

/* ============================================
   CUSTOM CURSOR
   ============================================ */

/* ============================================
   CUSTOM CURSOR
   ============================================ */
.cursor-dot,
.cursor-outline {
    pointer-events: none;
    position: fixed;
    top: 0;
    left: 0;
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
    z-index: 10000;
    will-change: transform;
}

.cursor-dot {
    width: 8px;
    height: 8px;
    background: var(--primary);
    box-shadow: 0 0 10px var(--primary);
}

.cursor-outline {
    width: 40px;
    height: 40px;
    border: 2px solid var(--primary);
    transition: all 0.15s ease-out;
}

.cursor-dot.active,
.cursor-outline.active {
    opacity: 1;
}

.cursor-outline.hover {
    width: 60px;
    height: 60px;
    background: rgba(241, 196, 15, 0.1);
}

/* Hide cursor on mobile */
@media (max-width: 768px) {
    .cursor-dot,
    .cursor-outline {
        display: none !important;
    }
}
/*
 ============================================
   HEXAGONAL SKILLS GRID
   ============================================ */
.hex-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
    margin: 4rem 0;
    padding: 2rem 0;
}

.hex-item {
    width: 200px;
    height: 230px;
    position: relative;
    transition: all 0.3s ease;
}

.hex-item:hover {
    transform: translateY(-10px);
    z-index: 10;
}

.hexagon {
    width: 100%;
    height: 100%;
    position: relative;
}

.hex-inner {
    width: 100%;
    height: 100%;
    background: var(--card-bg);
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    border: 2px solid var(--border-color);
    transition: all 0.3s ease;
}

.hex-item:hover .hex-inner {
    border-color: var(--primary);
    box-shadow: 
        0 0 20px rgba(241, 196, 15, 0.3),
        inset 0 0 20px rgba(241, 196, 15, 0.1);
}

.hex-inner::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(241, 196, 15, 0.2), transparent);
    transition: left 0.5s ease;
}

.hex-item:hover .hex-inner::before {
    left: 100%;
}

.hex-content {
    text-align: center;
    z-index: 2;
    padding: 1rem;
}

.hex-content .skill-icon {
    font-size: 3rem;
    margin-bottom: 0.5rem;
    display: block;
    transition: all 0.3s ease;
}

.hex-item:hover .hex-content .skill-icon {
    transform: scale(1.2);
    filter: drop-shadow(0 0 10px rgba(241, 196, 15, 0.5));
}

.hex-content h4 {
    font-size: 1.2rem;
    margin-bottom: 0.3rem;
    color: var(--text-primary);
    font-weight: 600;
}

.hex-content .skill-level {
    font-size: 0.8rem;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 500;
}

/* Responsive Hexagonal Grid */
@media (max-width: 768px) {
    .hex-grid {
        gap: 1.5rem;
    }
    
    .hex-item {
        width: 150px;
        height: 170px;
    }
    
    .hex-content .skill-icon {
        font-size: 2.5rem;
    }
    
    .hex-content h4 {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .hex-item {
        width: 130px;
        height: 150px;
    }
    
    .hex-content .skill-icon {
        font-size: 2rem;
    }
}

/* ============================================
   GITHUB STATS SECTION
   ============================================ */
.github-stats {
    padding: 8rem 0;
    background: var(--bg-dark);
}

.github-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    margin-top: 3rem;
}

.stats-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

.stat-card {
    background: var(--card-bg);
    border-radius: 16px;
    padding: 2rem;
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 1.5rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(241, 196, 15, 0.1), transparent);
    transition: left 0.5s ease;
}

.stat-card:hover::before {
    left: 100%;
}

.stat-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    box-shadow: 0 10px 30px rgba(241, 196, 15, 0.2);
}

.stat-icon {
    font-size: 2.5rem;
    width: 60px;
    height: 60px;
    background: rgba(241, 196, 15, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.stat-info h3 {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 0.3rem;
    font-family: 'JetBrains Mono', monospace;
}

.stat-info p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.github-profile-card {
    background: var(--card-bg);
    border-radius: 20px;
    padding: 2.5rem;
    border: 1px solid var(--border-color);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.profile-header-github {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.github-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 3px solid var(--primary);
    box-shadow: 0 0 20px rgba(241, 196, 15, 0.3);
}

.github-info h3 {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.github-info p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
    line-height: 1.6;
}

.github-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 1.5rem;
    background: var(--gradient-primary);
    color: var(--bg-dark);
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.github-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(241, 196, 15, 0.3);
}

/* GitHub Stats Responsive */
@media (max-width: 768px) {
    .stats-cards {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .stat-card {
        padding: 1.5rem;
        flex-direction: column;
        text-align: center;
    }
    
    .profile-header-github {
        flex-direction: column;
        text-align: center;
    }
    
    .github-avatar {
        width: 100px;
        height: 100px;
    }
}

@media (max-width: 480px) {
    .stats-cards {
        grid-template-columns: 1fr;
    }
}

/* ============================================
   CONTACT SECTION
   ============================================ */
.contact {
    padding: 8rem 0;
    background: var(--bg-darker);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.contact-info h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--primary);
}

.contact-info p {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 2rem;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.contact-icon {
    font-size: 1.5rem;
    width: 50px;
    height: 50px;
    background: rgba(241, 196, 15, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(241, 196, 15, 0.2);
    color: var(--primary);
}

.contact-text {
    display: flex;
    flex-direction: column;
}

.contact-label {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 0.2rem;
}

.contact-text a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
}

.contact-text a:hover {
    color: var(--text-primary);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.contact-button {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem;
    text-decoration: none;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 1rem;
    position: relative;
    overflow: hidden;
}

.contact-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(241, 196, 15, 0.1), transparent);
    transition: left 0.5s ease;
}

.contact-button:hover::before {
    left: 100%;
}

.contact-button:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(241, 196, 15, 0.2);
    border-color: var(--primary);
}

.button-icon {
    font-size: 1.5rem;
    width: 50px;
    height: 50px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--bg-dark);
}

.button-text {
    display: flex;
    flex-direction: column;
}

.button-title {
    color: var(--text-primary);
    font-weight: 600;
    margin-bottom: 0.2rem;
}

.button-subtitle {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.contact-button.whatsapp:hover .button-icon {
    background: linear-gradient(135deg, #25D366, #128C7E);
}

.contact-button.github:hover .button-icon {
    background: linear-gradient(135deg, #24292e, #586069);
}

.contact-button.phone:hover .button-icon {
    background: var(--gradient-secondary);
}

.contact-button.email:hover .button-icon {
    background: linear-gradient(135deg, #EA4335, #C5221F);
}

/* Contact Section Responsive */
@media (max-width: 768px) {
    .contact-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }
}