/* ===== VARIABLES ===== */
:root {
    --primary-color: #00ffff;
    --secondary-color: #ff00ff;
    --tertiary-color: #ffff00;
    --background-color: #0a0a1a;
    --surface-color: #12122a;
    --text-color: #ffffff;
    --text-color-secondary: #b3b3cc;
    --font-primary: 'Orbitron', sans-serif;
    --font-secondary: 'Poppins', sans-serif;
    --transition: all 0.3s ease;
    --glow-shadow: 0 0 10px rgba(0, 255, 255, 0.7), 0 0 20px rgba(0, 255, 255, 0.5), 0 0 30px rgba(0, 255, 255, 0.3);
    --glass-background: rgba(18, 18, 42, 0.8);
    --glass-border: 1px solid rgba(255, 255, 255, 0.1);
}

/* ===== RESET & BASE STYLES ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 62.5%;
}

body {
    font-family: var(--font-secondary);
    background-color: var(--background-color);
    color: var(--text-color);
    font-size: 1.6rem;
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

a {
    text-decoration: none;
    color: var(--text-color);
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

section {
    padding: 10rem 0;
    position: relative;
}

/* ===== PRELOADER ===== */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--background-color);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.preloader.hide {
    opacity: 0;
    visibility: hidden;
}

.loader {
    width: 5rem;
    height: 5rem;
    border: 0.5rem solid transparent;
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    position: relative;
}

.loader::before, .loader::after {
    content: '';
    position: absolute;
    border: 0.5rem solid transparent;
    border-radius: 50%;
}

.loader::before {
    top: -0.5rem;
    left: -0.5rem;
    right: -0.5rem;
    bottom: -0.5rem;
    border-top-color: var(--secondary-color);
    animation: spin 1.5s linear infinite;
}

.loader::after {
    top: 0.5rem;
    left: 0.5rem;
    right: 0.5rem;
    bottom: 0.5rem;
    border-top-color: var(--tertiary-color);
    animation: spin 2s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-block;
    padding: 1.2rem 2.4rem;
    border-radius: 3rem;
    font-family: var(--font-primary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    z-index: 1;
    border: none;
    cursor: pointer;
    font-size: 1.4rem;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    z-index: -1;
    transition: var(--transition);
}

.btn::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, var(--secondary-color), var(--primary-color));
    z-index: -1;
    transition: var(--transition);
    opacity: 0;
}

.btn:hover::before {
    opacity: 0;
}

.btn:hover::after {
    opacity: 1;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: var(--glow-shadow);
}

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

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

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

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

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

.btn-tertiary:hover {
    color: var(--background-color);
}

.btn-sm {
    padding: 0.8rem 1.6rem;
    font-size: 1.2rem;
}

/* ===== SECTION HEADERS ===== */
.section-header {
    text-align: center;
    margin-bottom: 5rem;
}

.section-header h2 {
    font-family: var(--font-primary);
    font-size: 3.6rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    display: inline-block;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    position: relative;
    margin-bottom: 1.5rem;
}

.section-header-underline {
    width: 10rem;
    height: 0.3rem;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    margin: 0 auto;
    position: relative;
}

.section-header-underline::before {
    content: '';
    position: absolute;
    top: -0.3rem;
    left: 50%;
    transform: translateX(-50%);
    width: 2rem;
    height: 1rem;
    background-color: var(--primary-color);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

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

/* ===== NAVBAR ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 2rem 0;
    z-index: 1000;
    transition: var(--transition);
    background-color: transparent;
}

.navbar.scrolled {
    padding: 1rem 0;
    background-color: rgba(10, 10, 26, 0.9);
    backdrop-filter: blur(10px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

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

.logo a {
    font-family: var(--font-primary);
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary-color);
    text-shadow: 0 0 10px rgba(0, 255, 255, 0.5);
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    font-family: var(--font-primary);
    font-size: 1.4rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    padding: 0.5rem 0;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    transition: var(--transition);
}

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

.nav-links a:hover,
.nav-links a.active {
    color: var(--primary-color);
    text-shadow: 0 0 10px rgba(0, 255, 255, 0.5);
}

.menu-btn {
    display: none;
    cursor: pointer;
    z-index: 1001;
}

.menu-btn__burger {
    width: 3rem;
    height: 0.3rem;
    background-color: var(--primary-color);
    border-radius: 0.5rem;
    box-shadow: 0 0 5px rgba(0, 255, 255, 0.5);
    transition: var(--transition);
    position: relative;
}

.menu-btn__burger::before,
.menu-btn__burger::after {
    content: '';
    position: absolute;
    width: 3rem;
    height: 0.3rem;
    background-color: var(--primary-color);
    border-radius: 0.5rem;
    box-shadow: 0 0 5px rgba(0, 255, 255, 0.5);
    transition: var(--transition);
}

.menu-btn__burger::before {
    transform: translateY(-1rem);
}

.menu-btn__burger::after {
    transform: translateY(1rem);
}

.menu-btn.open .menu-btn__burger {
    transform: translateX(-5rem);
    background: transparent;
    box-shadow: none;
}

.menu-btn.open .menu-btn__burger::before {
    transform: rotate(45deg) translate(3.5rem, -3.5rem);
}

.menu-btn.open .menu-btn__burger::after {
    transform: rotate(-45deg) translate(3.5rem, 3.5rem);
}

/* ===== HERO SECTION ===== */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    background: radial-gradient(ellipse at center, var(--surface-color) 0%, var(--background-color) 70%);
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    opacity: 0.05;
}

.hero-canvas-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 80rem;
    margin: 0 auto;
}

.hero-content h1 {
    font-family: var(--font-primary);
    font-size: 5.6rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 2rem;
    position: relative;
    display: inline-block;
}

.glitch {
    position: relative;
    color: var(--text-color);
    text-shadow: 0 0 10px rgba(0, 255, 255, 0.5);
}

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

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

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

@keyframes glitch-animation {
    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);
    }
}

.subtitle {
    font-family: var(--font-secondary);
    font-size: 2rem;
    font-weight: 400;
    color: var(--text-color-secondary);
    margin-bottom: 4rem;
    letter-spacing: 1px;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

/* ===== ABOUT SECTION ===== */
.about {
    background-color: var(--surface-color);
    position: relative;
}

.about::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('../img/grid-pattern.svg');
    opacity: 0.05;
}

.about-content {
    display: flex;
    flex-direction: column;
    gap: 5rem;
    align-items: center;
}

.profile-image {
    width: 25rem;
    height: 25rem;
    margin-bottom: 3rem;
    position: relative;
    z-index: 1;
}

.profile-image-container {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
    border-radius: 50%;
    box-shadow: var(--glow-shadow);
    animation: pulse 3s infinite alternate;
    background-color: #333;
}

.profile-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 10px rgba(0, 255, 255, 0.7), 0 0 20px rgba(0, 255, 255, 0.5);
    }
    100% {
        transform: scale(1.05);
        box-shadow: 0 0 15px rgba(0, 255, 255, 0.8), 0 0 30px rgba(0, 255, 255, 0.6), 0 0 45px rgba(0, 255, 255, 0.4);
    }
}

.about-text {
    text-align: center;
    max-width: 70rem;
    margin: 0 auto;
    font-size: 1.8rem;
    line-height: 1.8;
    color: var(--text-color-secondary);
}

.stats-container {
    display: flex;
    justify-content: center;
    gap: 5rem;
    flex-wrap: wrap;
    margin: 2rem 0;
}

.stat-item {
    text-align: center;
    padding: 2rem;
    background: var(--glass-background);
    backdrop-filter: blur(10px);
    border-radius: 1rem;
    border: var(--glass-border);
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
    width: 20rem;
    transition: var(--transition);
}

.stat-item:hover {
    transform: translateY(-10px);
    box-shadow: var(--glow-shadow);
}

.stat-number {
    font-family: var(--font-primary);
    font-size: 4.8rem;
    font-weight: 700;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: 1rem;
}

.stat-title {
    font-family: var(--font-secondary);
    font-size: 1.6rem;
    font-weight: 500;
    color: var(--text-color-secondary);
}

.timeline {
    position: relative;
    max-width: 80rem;
    margin: 0 auto;
    padding: 2rem 0;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0.2rem;
    height: 100%;
    background: linear-gradient(to bottom, var(--primary-color), var(--secondary-color));
}

.timeline-item {
    position: relative;
    margin-bottom: 5rem;
    width: 100%;
}

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

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

.timeline-icon {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 5rem;
    height: 5rem;
    background: var(--background-color);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1;
    border: 0.3rem solid var(--primary-color);
    box-shadow: 0 0 10px rgba(0, 255, 255, 0.5);
}

.timeline-icon i {
    font-size: 2rem;
    color: var(--primary-color);
}

.timeline-content {
    width: 45%;
    padding: 2rem;
    background: var(--glass-background);
    backdrop-filter: blur(10px);
    border-radius: 1rem;
    border: var(--glass-border);
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
}

.timeline-content:hover {
    transform: translateY(-5px);
    box-shadow: var(--glow-shadow);
}

.timeline-content h3 {
    font-family: var(--font-primary);
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.timeline-content h4 {
    font-family: var(--font-secondary);
    font-size: 1.6rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: var(--text-color);
}

.timeline-date {
    font-family: var(--font-secondary);
    font-size: 1.4rem;
    font-weight: 400;
    color: var(--text-color-secondary);
    margin-bottom: 1rem;
}

.timeline-content p {
    font-size: 1.4rem;
    line-height: 1.6;
    color: var(--text-color-secondary);
}

/* ===== SKILLS SECTION ===== */
.skills {
    background-color: var(--background-color);
    position: relative;
}

.skills::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('../img/circuit-pattern.svg');
    opacity: 0.05;
}

.skills-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr));
    gap: 3rem;
    margin: 0 auto;
    max-width: 100rem;
}

.skill-item {
    text-align: center;
    padding: 2rem;
    background: var(--glass-background);
    backdrop-filter: blur(10px);
    border-radius: 1rem;
    border: var(--glass-border);
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
}

.skill-item:hover {
    transform: translateY(-10px);
    box-shadow: var(--glow-shadow);
}

.skill-item:hover .skill-icon i {
    animation: pulse-icon 1.5s infinite;
}

.skill-icon {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
}

.skill-item h3 {
    font-family: var(--font-primary);
    font-size: 1.6rem;
    font-weight: 500;
    color: var(--text-color);
}

@keyframes pulse-icon {
    0% {
        transform: scale(1);
        text-shadow: 0 0 10px rgba(0, 255, 255, 0.5);
    }
    50% {
        transform: scale(1.1);
        text-shadow: 0 0 20px rgba(0, 255, 255, 0.7), 0 0 30px rgba(0, 255, 255, 0.5);
    }
    100% {
        transform: scale(1);
        text-shadow: 0 0 10px rgba(0, 255, 255, 0.5);
    }
}

/* ===== PROJECTS SECTION ===== */
.projects {
    background-color: var(--surface-color);
    position: relative;
}

.projects::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('../img/grid-pattern.svg');
    opacity: 0.05;
}

.projects-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(35rem, 1fr));
    gap: 3rem;
    margin: 0 auto;
}

.project-card {
    background: var(--glass-background);
    backdrop-filter: blur(10px);
    border-radius: 1rem;
    border: var(--glass-border);
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: var(--transition);
    
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--glow-shadow);
}

.project-img {
    width: 100%;
    height: 20rem;
    overflow: hidden;
    position: relative;
}

.project-img img {
    width: 100%;
    height: 100%;
    object-fit:fill;
    transition: var(--transition);
}

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

.project-content {
    padding: 2rem;
}

.project-content h3 {
    font-family: var(--font-primary);
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.project-content p {
    font-size: 1.4rem;
    line-height: 1.6;
    color: var(--text-color-secondary);
    margin-bottom: 1.5rem;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.project-tech span {
    font-family: var(--font-primary);
    font-size: 1.2rem;
    font-weight: 500;
    padding: 0.5rem 1rem;
    background: rgba(0, 255, 255, 0.1);
    border-radius: 2rem;
    color: var(--primary-color);
    border: 1px solid rgba(0, 255, 255, 0.3);
}

.project-links {
    display: flex;
    gap: 1rem;
}

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

.testimonials::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('../img/circuit-pattern.svg');
    opacity: 0.05;
}

.testimonials-slider {
    position: relative;
    max-width: 70rem;
    margin: 0 auto;
    height: 30rem;
}

.testimonial-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease, visibility 0.5s ease, transform 1s ease;
    transform: translateX(50px);
}

.testimonial-item.active {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

.testimonial-content {
    background: var(--glass-background);
    backdrop-filter: blur(10px);
    border-radius: 1rem;
    border: var(--glass-border);
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
    padding: 3rem;
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
}

.quote-icon {
    font-size: 3rem;
    color: var(--primary-color);
    opacity: 0.3;
    margin-bottom: 1.5rem;
}

.testimonial-content p {
    font-size: 1.6rem;
    line-height: 1.8;
    color: var(--text-color-secondary);
    margin-bottom: 2rem;
    flex-grow: 1;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.author-img {
    width: 6rem;
    height: 6rem;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid var(--primary-color);
    box-shadow: 0 0 10px rgba(0, 255, 255, 0.5);
}

.author-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.author-info h4 {
    font-family: var(--font-primary);
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 0.5rem;
}

.author-info p {
    font-family: var(--font-secondary);
    font-size: 1.4rem;
    font-weight: 400;
    color: var(--text-color-secondary);
    margin-bottom: 0;
}

.testimonial-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    margin-top: 3rem;
}

.prev-btn, .next-btn {
    background: transparent;
    border: none;
    font-size: 2rem;
    color: var(--primary-color);
    cursor: pointer;
    transition: var(--transition);
}

.prev-btn:hover, .next-btn:hover {
    color: var(--secondary-color);
    transform: scale(1.2);
}

.testimonial-dots {
    display: flex;
    gap: 1rem;
}

.dot {
    width: 1rem;
    height: 1rem;
    border-radius: 50%;
    background-color: rgba(0, 255, 255, 0.3);
    cursor: pointer;
    transition: var(--transition);
}

.dot.active {
    background-color: var(--primary-color);
    box-shadow: 0 0 10px rgba(0, 255, 255, 0.7);
}

/* ===== CONTACT SECTION ===== */
.contact {
    background-color: var(--surface-color);
    position: relative;
}

.contact::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('../img/grid-pattern.svg');
    opacity: 0.05;
}

.contact-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(30rem, 1fr));
    gap: 5rem;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 2rem;
    padding: 2rem;
    background: var(--glass-background);
    backdrop-filter: blur(10px);
    border-radius: 1rem;
    border: var(--glass-border);
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
}

.contact-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--glow-shadow);
}

.contact-icon {
    width: 5rem;
    height: 5rem;
    background: rgba(0, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2rem;
    color: var(--primary-color);
    border: 1px solid rgba(0, 255, 255, 0.3);
}

.contact-text h3 {
    font-family: var(--font-primary);
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-color);
}

.contact-text p a {
    font-family: var(--font-secondary);
    font-size: 1.4rem;
    font-weight: 400;
    color: var(--text-color-secondary);
    transition: var(--transition);
}

.contact-text p a:hover {
    color: var(--primary-color);
}

.contact-form {
    background: var(--glass-background);
    backdrop-filter: blur(10px);
    border-radius: 1rem;
    border: var(--glass-border);
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
    padding: 3rem;
    transition: var(--transition);
}

.contact-form:hover {
    box-shadow: var(--glow-shadow);
}

.form-group {
    margin-bottom: 2rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1.5rem;
    background: rgba(18, 18, 42, 0.5);
    border: 1px solid rgba(0, 255, 255, 0.3);
    border-radius: 0.5rem;
    color: var(--text-color);
    font-family: var(--font-secondary);
    font-size: 1.6rem;
    transition: var(--transition);
}

.form-group textarea {
    height: 15rem;
    resize: none;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 10px rgba(0, 255, 255, 0.5);
}

/* ===== FOOTER ===== */
.footer {
    background-color: var(--background-color);
    padding: 5rem 0 2rem;
    position: relative;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('../img/circuit-pattern.svg');
    opacity: 0.05;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-logo a {
    font-family: var(--font-primary);
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary-color);
    text-shadow: 0 0 10px rgba(0, 255, 255, 0.5);
}

.footer-social {
    display: flex;
    gap: 2rem;
}

.footer-social a {
    width: 4rem;
    height: 4rem;
    background: rgba(0, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.8rem;
    color: var(--primary-color);
    border: 1px solid rgba(0, 255, 255, 0.3);
    transition: var(--transition);
}

.footer-social a:hover {
    background: var(--primary-color);
    color: var(--background-color);
    transform: translateY(-5px);
    box-shadow: 0 0 10px rgba(0, 255, 255, 0.7);
}

.footer-nav ul {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}

.footer-nav a {
    font-family: var(--font-primary);
    font-size: 1.4rem;
    font-weight: 500;
    color: var(--text-color-secondary);
    transition: var(--transition);
}

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

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

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

/* ===== BACK TO TOP BUTTON ===== */
.back-to-top {
    position: fixed;
    bottom: 3rem;
    right: 3rem;
    width: 5rem;
    height: 5rem;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2rem;
    color: var(--background-color);
    box-shadow: 0 0 10px rgba(0, 255, 255, 0.7);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 999;
}

.back-to-top.active {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: var(--secondary-color);
    transform: translateY(-5px);
}

/* ===== RESPONSIVE STYLES ===== */
@media screen and (max-width: 1024px) {
    html {
        font-size: 55%;
    }

    .hero-content h1 {
        font-size: 4.8rem;
    }

    .timeline::before {
        left: 3rem;
    }

    .timeline-icon {
        left: 3rem;
    }

    .timeline-content {
        width: calc(100% - 8rem);
        margin-left: 8rem !important;
        text-align: left !important;
    }
}

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

    .profile-image {
        width: 20rem;
        height: 20rem;
        margin-bottom: 2rem;
    }
    
    .profile-image-container {
        width: 100%;
        height: 100%;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        height: 100vh;
        background: var(--glass-background);
        backdrop-filter: blur(10px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: var(--transition);
        z-index: 1000;
    }

    .nav-links.open {
        right: 0;
    }

    .hero-content h1 {
        font-size: 4rem;
    }

    .subtitle {
        font-size: 1.8rem;
    }

    .cta-buttons {
        flex-direction: column;
        gap: 1.5rem;
    }

    .stats-container {
        gap: 2rem;
    }

    .projects-container {
        grid-template-columns: 1fr;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
    }

    .footer-nav ul {
        justify-content: center;
    }
}

@media screen and (max-width: 480px) {
    .hero-content h1 {
        font-size: 3.2rem;
    }

    .subtitle {
        font-size: 1.6rem;
    }

    .section-header h2 {
        font-size: 3rem;
    }

    .profile-image {
        width: 18rem;
        height: 18rem;
        margin-bottom: 1.5rem;
    }
    
    .profile-image-container {
        width: 100%;
        height: 100%;
    }

    .stat-item {
        width: 100%;
    }

    .timeline-content {
        width: calc(100% - 6rem);
        margin-left: 6rem !important;
        padding: 1.5rem;
    }

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

    .contact-item {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }

    .contact-form {
        padding: 2rem;
    }

    .back-to-top {
        bottom: 2rem;
        right: 2rem;
        width: 4rem;
        height: 4rem;
        font-size: 1.6rem;
    }
}
