/* ===== GLOBAL STYLES ===== */
:root {
    --primary-color: #8a2be2;
    --primary-dark: #5e17a8;
    --primary-light: #b57aff;
    --secondary-color: #121212;
    --secondary-light: #1e1e1e;
    --secondary-lighter: #2a2a2a;
    --text-color: #ffffff;
    --text-secondary: #b3b3b3;
    --accent-color: #00ff88;
    --danger-color: #ff3860;
    --warning-color: #ffdd57;
}

:root.light-mode {
    --secondary-color: #ffffff;
    --secondary-light: #f5f5f5;
    --secondary-lighter: #e0e0e0;
    --text-color: #333333;
    --text-secondary: #666666;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: var(--secondary-color);
    color: var(--text-color);
    overflow-x: hidden;
    line-height: 1.6;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===== HEADER STYLES ===== */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 20px 0;
    background-color: rgba(18, 18, 18, 0.9);
    backdrop-filter: blur(10px);
    /* transition: all 0.3s ease; */
}

.light-mode header {
    background-color: rgba(255, 255, 255, 0.9);
}

body, header, .skill-category, .project-card, .certificate-card, 
.timeline-content, .contact-info, .testimonial {
    transition: background-color 0.3s ease, color 0.3s ease;
}

.light-mode .form-group input,
.light-mode .form-group textarea,
.light-mode .footer-newsletter input {
    background-color: var(--secondary-lighter);
    color: var(--text-color);
}

header.scrolled {
    padding: 15px 0;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    position: relative;
    display: inline-block;
    font-family: 'Montserrat', sans-serif;
}

.logo::after {
    content: attr(data-text);
    position: absolute;
    left: 0;
    top: 0;
    color: var(--primary-light);
    z-index: -1;
    filter: blur(5px);
}

.nav-links ul {
    display: flex;
    list-style: none;
    align-items: center;
    gap: 25px;
}

.nav-link {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    position: relative;
    padding: 5px 0;
    transition: all 0.3s ease;
    font-family: 'Poppins', sans-serif;
}

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

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

.portfolio-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 30px;
    background: var(--primary-dark);
    color: white;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    font-family: 'Poppins', sans-serif;
}

.portfolio-toggle:hover {
    background: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(138, 43, 226, 0.4);
}

.menu-toggle {
    display: none;
    cursor: pointer;
    font-size: 1.5rem;
}

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

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    z-index: 2;
}

.hero h1 {
    font-size: 4rem;
    margin-bottom: 20px;
    position: relative;
    display: inline-block;
}

.glitch {
    position: relative;
    color: var(--text-color);
}

.glitch::before, .glitch::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.glitch::before {
    color: var(--primary-light);
    z-index: -1;
    animation: glitch-effect 3s infinite;
}

.glitch::after {
    color: var(--accent-color);
    z-index: -2;
    animation: glitch-effect 2s infinite reverse;
}

@keyframes glitch-effect {
    0% { transform: translate(0); }
    20% { transform: translate(-3px, 3px); }
    40% { transform: translate(-3px, -3px); }
    60% { transform: translate(3px, 3px); }
    80% { transform: translate(3px, -3px); }
    100% { transform: translate(0); }
}

.hero h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: var(--text-secondary);
}

.hero h2 span {
    color: var(--primary-color);
    font-weight: 700;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    max-width: 600px;
    color: var(--text-secondary);
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-color));
    z-index: -1;
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.4s ease;
}

.btn:hover::before {
    transform: scaleX(1);
    transform-origin: left;
}

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

.btn-secondary {
    color: var(--text-color);
    border: 2px solid var(--secondary-lighter);
    background-color: var(--secondary-light);
}

.btn-secondary:hover {
    border-color: var(--primary-color);
}

/* Achievement Badges */
.achievement-badges {
    display: flex;
    gap: 15px;
    margin-top: 30px;
    justify-content: center;
}

.badge {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--secondary-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--primary-color);
    position: relative;
    cursor: pointer;
    transition: all 0.3s ease;
}

.badge:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(138, 43, 226, 0.3);
}

.tooltip {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: var(--secondary-light);
    color: var(--text-color);
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 0.8rem;
    white-space: nowrap;
    visibility: hidden;
    opacity: 0;
    transition: all 0.3s ease;
    margin-bottom: 10px;
}

.tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border-width: 5px;
    border-style: solid;
    border-color: var(--secondary-light) transparent transparent transparent;
}

.badge:hover .tooltip {
    visibility: visible;
    opacity: 1;
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.mouse {
    width: 25px;
    height: 40px;
    border: 2px solid var(--text-color);
    border-radius: 20px;
    display: flex;
    justify-content: center;
    padding-top: 5px;
}

.wheel {
    width: 5px;
    height: 8px;
    background: var(--text-color);
    border-radius: 5px;
    animation: scrollWheel 2s infinite;
}

.arrows {
    margin-top: 10px;
}

.arrows span {
    display: block;
    width: 10px;
    height: 10px;
    border-right: 2px solid var(--text-color);
    border-bottom: 2px solid var(--text-color);
    transform: rotate(45deg);
    margin: -5px;
    animation: scrollArrow 2s infinite;
}

.arrows span:nth-child(2) {
    animation-delay: -0.2s;
}

.arrows span:nth-child(3) {
    animation-delay: -0.4s;
}

@keyframes scrollWheel {
    0% { transform: translateY(0); opacity: 1; }
    100% { transform: translateY(10px); opacity: 0; }
}

@keyframes scrollArrow {
    0% { opacity: 0; }
    50% { opacity: 1; }
    100% { opacity: 0; }
}

/* ===== SECTION COMMON STYLES ===== */
section {
    padding: 100px 0;
    overflow: hidden;
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
    position: relative;
}

.section-title span {
    display: inline-block;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-color);
    position: relative;
    padding-bottom: 15px;
}

.section-title span::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(to right, var(--primary-color), var(--primary-dark));
}

/* ===== ABOUT SECTION ===== */
.about-content {
    display: flex;
    align-items: center;
    gap: 50px;
}

.about-image {
    flex: 1;
    position: relative;
}

.circuit-border {
    position: relative;
    border-radius: 50%;
    background: linear-gradient(45deg, var(--primary-color), var(--primary-dark));
    animation: borderAnimation 3s linear infinite;
}

@keyframes borderAnimation {
    0% { box-shadow: 0 0 10px var(--primary-color); }
    50% { box-shadow: 0 0 20px var(--primary-light); }
    100% { box-shadow: 0 0 10px var(--primary-color); }
}

.about-image img {
    width: 100%;
    border-radius: 5px;
    display: block;
}

.about-text {
    flex: 1;
}

.about-text h3 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: var(--primary-light);
}

.about-text p {
    margin-bottom: 30px;
    color: var(--text-secondary);
}

.metrics-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.metric-card {
    background: var(--secondary-light);
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    transition: all 0.3s ease;
}

.metric-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(138, 43, 226, 0.2);
}

.metric-value {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--accent-color);
    margin-bottom: 5px;
}

.metric-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.about-details {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.detail-item {
    display: flex;
}

.detail-item span {
    font-weight: 600;
    color: var(--primary-color);
    margin-right: 10px;
    min-width: 120px;
}

.detail-item p {
    margin: 0;
    color: var(--text-color);
}

.about-actions {
    display: flex;
    gap: 20px;
}

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

.btn-outline:hover {
    background: var(--text-color);
    color: var(--secondary-color);
}

/* ===== SKILLS SECTION ===== */
.skills-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.radar-chart-container {
    position: relative;
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    aspect-ratio: 1/1; /* Maintain square aspect ratio */
    padding-bottom: 50px;
}


.skill-category {
    background-color: var(--secondary-light);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
    margin-bottom: 2%;
}

.skill-category:hover {
    transform: translateY(-10px);
}

.skill-category h3 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: var(--primary-color);
    position: relative;
    padding-bottom: 10px;
}

.skill-category h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background-color: var(--primary-color);
}

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

.skill-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 5px;
}

.skill-bar {
    height: 10px;
    background-color: var(--secondary-lighter);
    border-radius: 5px;
    overflow: hidden;
}

.skill-progress {
    height: 100%;
    background: linear-gradient(to right, var(--primary-color), var(--primary-light));
    border-radius: 5px;
    width: 0;
    transition: width 1.5s ease;
}

/* ===== EXPERIENCE SECTION ===== */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 0;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    width: 2px;
    height: 100%;
    background: var(--primary-color);
    transform: translateX(-50%);
}

.timeline-item {
    padding: 20px 0;
    position: relative;
}

.timeline-content {
    width: calc(50% - 40px);
    padding: 20px;
    background: var(--secondary-light);
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    position: relative;
}

.timeline-item:nth-child(odd) .timeline-content {
    margin-left: auto;
}

.timeline-item:nth-child(even) .timeline-content {
    margin-right: auto;
}

.timeline-content::before {
    content: attr(data-year);
    position: absolute;
    top: -15px;
    font-weight: bold;
    color: var(--primary-color);
    background-color: var(--secondary-color);
}

.timeline-item:nth-child(odd) .timeline-content::before {
    left: -100px;
    text-align: right;
    width: 80px;
}

.timeline-item:nth-child(even) .timeline-content::before {
    right: -100px;
    text-align: left;
    width: 80px;
}

.timeline-content h3 {
    color: var(--primary-light);
    margin-bottom: 5px;
}

.timeline-content h4 {
    color: var(--text-secondary);
    margin-bottom: 10px;
    font-size: 1rem;
}

.tech-used {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 15px;
}

.tech-used span {
    background: rgba(138, 43, 226, 0.2);
    color: var(--primary-light);
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    transition: all 0.3s ease;
}

.tech-used span:hover {
    background: var(--primary-color);
    transform: translateY(-2px);
}

/* Initial hidden state for timeline items */
.timeline-content {
    width: calc(50% - 40px);
    padding: 20px;
    background: var(--secondary-light);
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    position: relative;
    
    /* Add animation properties */
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

/* Visible state */
.timeline-content.animate__animated {
    opacity: 1;
    transform: translateY(0);
}

/* ===== PROJECTS SECTION ===== */
.projects-filter {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 8px 16px;
    border: 2px solid var(--primary-color);
    background: transparent;
    color: var(--text-color);
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-btn.active, .filter-btn:hover {
    background: var(--primary-color);
    color: white;
}

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

.project-card {
    background-color: var(--secondary-light);
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.3s ease;
    position: relative;
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(138, 43, 226, 0.3);
}

.project-image {
    position: relative;
    height: 250px;
    overflow: hidden;
}

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

.project-card:hover .project-image img {
    transform: scale(1.1);
}

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(94, 23, 168, 0.8);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    padding: 20px;
    text-align: center;
}

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

.project-overlay h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.project-overlay p {
    margin-bottom: 20px;
    font-size: 0.9rem;
}

.project-tech {
    padding: 15px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.project-tech span {
    background-color: var(--secondary-color);
    color: var(--primary-light);
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    transition: all 0.3s ease;
}

.project-tech span:hover {
    background: var(--primary-color);
    transform: translateY(-3px);
}

.project-details {
    padding: 20px;
}

.project-description {
    margin-bottom: 20px;
}

.project-features {
    margin-bottom: 20px;
}

.project-features h4 {
    color: var(--primary-light);
    margin-bottom: 10px;
}

.project-features ul {
    padding-left: 20px;
}

.project-features li {
    margin-bottom: 8px;
    position: relative;
}

.project-features li::before {
    content: '▹';
    position: absolute;
    left: -20px;
    color: var(--primary-color);
}

.project-meta {
    display: flex;
    gap: 15px;
    margin-top: 10px;
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.project-meta i {
    margin-right: 5px;
}

.project-stats {
    display: flex;
    gap: 15px;
    margin: 15px 0;
}

.stat {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.9rem;
}

.stat i {
    color: var(--primary-color);
}

.project-actions {
    display: flex;
    gap: 10px;
}

/* ===== CERTIFICATIONS SECTION ===== */
.certificates-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.certificate-card {
    background-color: var(--secondary-light);
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.certificate-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(138, 43, 226, 0.3);
}

.certificate-image {
    height: 200px;
    overflow: hidden;
}

.certificate-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.certificate-card:hover .certificate-image img {
    transform: scale(1.1);
}

.certificate-details {
    padding: 20px;
}

.certificate-details h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: var(--primary-light);
}

.certificate-details p {
    color: var(--text-secondary);
    margin-bottom: 5px;
    font-size: 0.9rem;
}

/* ===== TESTIMONIALS SECTION ===== */
.testimonials {
    background-color: var(--secondary-light);
}

.testimonial-carousel {
    max-width: 800px;
    margin: 0 auto;
}

.testimonial {
    background-color: var(--secondary-color);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    margin: 0 20px;
}

.testimonial-content {
    text-align: center;
}

.testimonial-content p {
    font-size: 1.1rem;
    font-style: italic;
    margin-bottom: 20px;
    color: var(--text-secondary);
}

.testimonial-author {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.testimonial-author img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--primary-color);
}

.testimonial-author h4 {
    font-size: 1.2rem;
    margin-bottom: 5px;
}

.testimonial-author p {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* ===== CONTACT SECTION ===== */
.contact-content {
    display: flex;
    gap: 50px;
}

.contact-info {
    flex: 1;
    background-color: var(--secondary-light);
    padding: 30px;
    border-radius: 10px;
}

.contact-info h3 {
    font-size: 1.8rem;
    margin-bottom: 30px;
    color: var(--primary-color);
    position: relative;
    padding-bottom: 10px;
}

.contact-info h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background-color: var(--primary-color);
}

.info-item {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.info-item i {
    font-size: 1.2rem;
    color: var(--primary-color);
    margin-right: 15px;
    width: 20px;
    text-align: center;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 30px;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--secondary-color);
    color: var(--text-color);
    transition: all 0.3s ease;
}

.social-links a:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(138, 43, 226, 0.3);
}

.availability {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid var(--secondary-lighter);
}

.status {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.status-indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.status.available .status-indicator {
    background: var(--accent-color);
    box-shadow: 0 0 10px var(--accent-color);
}

.contact-form {
    flex: 1;
}

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

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px;
    border: none;
    border-radius: 5px;
    background-color: var(--secondary-light);
    color: var(--text-color);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    box-shadow: 0 0 0 2px var(--primary-color);
}

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

.form-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
}

.form-note {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.form-note i {
    color: var(--accent-color);
}

/* Add this to your existing styles */
#contactForm button[type="submit"] {
    background: var(--primary-color);
    color: white;
    border: 2px solid var(--primary-color);
    padding: 12px 30px;
    border-radius: 30px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

#contactForm button[type="submit"]:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(138, 43, 226, 0.4);
}

/* Style the icon inside the button */
#contactForm button[type="submit"] .btn-icon {
    font-size: 0.9em;
}

/* Style for when the button is disabled during submission */
#contactForm button[type="submit"]:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important;
}

#contactForm button[type="submit"] {
    animation: pulse 2s infinite;
}

/* ===== FOOTER ===== */
footer {
    background-color: var(--secondary-light);
    padding: 70px 0 0;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 50px;
}

.footer-logo .logo {
    font-size: 1.8rem;
    margin-bottom: 20px;
}

.footer-logo p {
    color: var(--text-secondary);
}

.footer-links h3 {
    font-size: 1.3rem;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.footer-links ul {
    list-style: none;
}

.footer-links ul li {
    margin-bottom: 10px;
}

.footer-links ul li a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-links ul li a:hover {
    color: var(--primary-color);
    padding-left: 5px;
}

.footer-newsletter h3 {
    font-size: 1.3rem;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.footer-newsletter p {
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.footer-newsletter form {
    display: flex;
}

.footer-newsletter input {
    flex: 1;
    padding: 12px;
    border: none;
    border-radius: 5px 0 0 5px;
    background-color: var(--secondary-lighter);
    color: var(--text-color);
}

.footer-newsletter button {
    padding: 0 20px;
    border: none;
    border-radius: 0 5px 5px 0;
    background-color: var(--primary-color);
    color: var(--text-color);
    cursor: pointer;
    transition: all 0.3s ease;
}

.footer-newsletter button:hover {
    background-color: var(--primary-dark);
}

.footer-bottom {
    padding: 20px 0;
    border-top: 1px solid var(--secondary-lighter);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-bottom p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.footer-terms {
    display: flex;
    gap: 20px;
}

.footer-terms a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.footer-terms a:hover {
    color: var(--primary-color);
}

/* ===== DARK/LIGHT MODE TOGGLE ===== */
.skill-progress {
    background: linear-gradient(to right, var(--primary-color), var(--primary-light)) !important;
}

/* Radar Chart Background */
.light-mode #radarChart {
    border-radius: 10px;
    padding: 20px;
}

.dark-mode #radarChart {
    border-radius: 10px;
    padding: 20px;
}

/* Subscribe Button Arrow Color */
.light-mode .footer-newsletter button i {
    color: white !important;
}

/* Make sure the chart has proper contrast in both modes */

.dark-mode-toggle {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1000;
}

/* Update button hover effects */
.btn-primary:hover,
.btn-primary:hover i {
    color: white !important;
}

.btn-secondary:hover,
.btn-secondary:hover i {
    color: white !important;
}

.btn-outline:hover,
.btn-outline:hover i {
    color: var(--secondary-color) !important;
}

/* Update CV download button hover */
.about-actions .btn-primary:hover,
.about-actions .btn-primary:hover i {
    color: white !important;
}

/* Update view work and contact me buttons */
.hero-buttons .btn-primary:hover i,
.hero-buttons .btn-secondary:hover i {
    color: white !important;
}

/* Update radar chart colors for light mode */
.light-mode #radarChart {
    filter: brightness(0.9) contrast(1.1);
}

/* Update tooltip colors for light mode */
.light-mode .tooltip {
    background: var(--secondary-lighter);
    color: var(--text-color);
}

.light-mode .tooltip::after {
    border-color: var(--secondary-lighter) transparent transparent transparent;
}

/* Update scroll indicator for light mode */
.light-mode .mouse {
    border-color: var(--text-color);
}

.light-mode .wheel {
    background: var(--text-color);
}

.light-mode .arrows span {
    border-right-color: var(--text-color);
    border-bottom-color: var(--text-color);
}

.dark-mode-toggle label {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 30px;
    background: var(--secondary-light);
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.light-mode .dark-mode-toggle label {
    background: var(--secondary-lighter);
}

.dark-mode-toggle input {
    opacity: 0;
    position: absolute;
}

.dark-mode-toggle label i {
    position: absolute;
    top: 7px;
    font-size: 16px;
    transition: all 0.3s ease;
}

.dark-mode-toggle label .fa-moon {
    left: 8px;
    color: #f1c40f;
}

.dark-mode-toggle label .fa-sun {
    right: 8px;
    color: #f39c12;
}

.dark-mode-toggle label .ball {
    position: absolute;
    top: 3px;
    left: 3px;
    width: 24px;
    height: 24px;
    background: var(--primary-color);
    border-radius: 50%;
    transition: transform 0.3s ease;
}

.dark-mode-toggle input:checked + label .ball {
    transform: translateX(30px);
}

/* ===== ANIMATIONS ===== */
.pulse {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

/* ===== RESPONSIVE STYLES ===== */
@media (max-width: 992px) {
    .hero-content {
        flex-direction: column;
        text-align: center;
    }

    .hero h1 {
        font-size: 3rem;
    }
    
    .hero h2 {
        font-size: 2rem;
    }
    
    .about-content {
        flex-direction: column;
    }
    
    .contact-content {
        flex-direction: column;
    }
    
    .portfolio-toggle .toggle-text {
        display: none;
    }
    
    .portfolio-toggle {
        padding: 10px;
    }
    
    .tech-icons i {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }

    body.menu-active {
        overflow: hidden;
        position: fixed;
        width: 100%;
        height: 100%;
    }

    .hero {
        padding-top: 100px;
        height: auto;
        min-height: 100vh;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero h2 {
        font-size: 1.5rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 15px;
    }
    
    .tech-icons i {
        font-size: 1.5rem;
    }
    
    .nav-links {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background-color: var(--secondary-light);
        transition: all 0.3s ease;
        display: flex;
        justify-content: center;
        align-items: center;
        z-index: 999;
    }
    
    .nav-links.active {
        left: 0;
    }

    .section-title span {
        font-size: 2rem;
    }

    .metrics-container {
        grid-template-columns: repeat(2, 1fr);
    }

    .about-details {
        grid-template-columns: 1fr;
    }

    .contact-info,
    .contact-form {
        width: 100%;
    }

    .form-footer {
        flex-direction: column;
        gap: 15px;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }

    .footer-terms {
        justify-content: center;
    }

    .radar-chart-container {
        max-width: 100%;
        padding: 0 20px;
    }

    .nav-links ul {
        flex-direction: column;
        align-items: center;
        gap: 30px;
    }
    
    .nav-links ul li.events-mobile {
        display: block;
        margin-top: 20px;
    }
    
    .nav-links ul li.events-mobile a {
        display: flex;
        align-items: center;
        gap: 10px;
        background: var(--primary-dark);
        padding: 10px 20px;
        border-radius: 30px;
    }

    .nav-links.active .menu-toggle {
        position: fixed;
        top: 20px;
        right: 20px;
        z-index: 1001;
    }

    .portfolio-toggle {
        display: none;
    }

}

@media (max-width: 480px) {
    .metrics-container {
        grid-template-columns: 1fr;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero h2 {
        font-size: 1.3rem;
    }
    
    .section-title span {
        font-size: 1.8rem;
    }
}

@media (min-width: 769px) {
    .events-mobile {
        display: none;
    }
}