/* ===== ROOT VARIABLES ===== */
:root {
    /* Color Scheme */
    --primary-color: #6c5ce7;
    --secondary-color: #00cec9;
    --accent-color: #fd79a8;
    --bg-color: #f9f9f9;
    --bg-dark: #191919;
    --text-color: #333;
    --text-light: #f5f5f5;
    --text-gray: #777;
    --border-color: #ddd;
    --card-bg: #fff;
    --gradient-primary: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    --gradient-accent: linear-gradient(135deg, var(--accent-color), var(--secondary-color));
    
    /* Typography */
    --font-family: 'Poppins', sans-serif;
    
    /* Shadows */
    --box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    --box-shadow-hover: 0 15px 35px rgba(0, 0, 0, 0.15);
    
    /* Animations */
    --transition-fast: all 0.3s ease;
    --transition-normal: all 0.5s ease;
    --transition-slow: all 0.8s ease;
    
    /* Dimensions */
    --navbar-height: 80px;
    --container-width: 1200px;
    --section-padding: 100px 0;
}

/* ===== GLOBAL STYLES ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

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

section {
    padding: var(--section-padding);
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 1rem;
}

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

ul {
    list-style: none;
}

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

/* Container for sections */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* Button Styles */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    border-radius: 30px;
    font-weight: 500;
    text-align: center;
    cursor: pointer;
    transition: var(--transition-fast);
    border: none;
    outline: none;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.primary-btn {
    background: var(--gradient-primary);
    color: var(--text-light);
    box-shadow: 0 4px 15px rgba(108, 92, 231, 0.4);
}

.primary-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(108, 92, 231, 0.6);
}

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

.secondary-btn:hover {
    background: var(--primary-color);
    color: var(--text-light);
    transform: translateY(-3px);
}

.accent {
    color: var(--accent-color);
}

/* Section Title Styles */
.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title h2 {
    font-size: 2.5rem;
    font-weight: 700;
    position: relative;
    display: inline-block;
}

.underline {
    height: 4px;
    width: 70px;
    background: var(--gradient-primary);
    border-radius: 3px;
    margin: 0 auto;
    margin-top: 10px;
}

/* Animation for reveal on scroll */
.reveal-element {
    opacity: 0;
    transform: translateY(50px);
    transition: var(--transition-normal);
}

.reveal-element.active {
    opacity: 1;
    transform: translateY(0);
}

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

.loading-animation {
    width: 200px;
    height: 6px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 20px;
}

.loading-bar {
    width: 0;
    height: 100%;
    background: var(--gradient-primary);
    animation: loading 2s ease-in-out forwards;
}

.loading-text {
    color: var(--text-light);
    font-size: 1.2rem;
    letter-spacing: 3px;
    animation: pulse 1.5s infinite;
}

@keyframes loading {
    0% { width: 0; }
    100% { width: 100%; }
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* ===== NAVBAR STYLES ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--navbar-height);
    background-color: transparent;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 50px;
    z-index: 100;
    transition: var(--transition-fast);
}

.navbar.scrolled {
    background-color: var(--bg-dark);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    height: 70px;
}

.logo {
    display: flex;
    align-items: center;
}

.logo-text {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-light);
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-link {
    color: var(--text-light);
    font-weight: 500;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent-color);
    transition: var(--transition-fast);
}

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

.menu-toggle {
    display: none;
    color: var(--text-light);
    font-size: 1.5rem;
    cursor: pointer;
}

/* ===== HERO SECTION ===== */
.hero {
    height: 100vh;
    background: var(--bg-dark);
    background-image: radial-gradient(circle at 10% 20%, rgba(108, 92, 231, 0.2) 0%, rgba(0, 0, 0, 0) 40%),
                      radial-gradient(circle at 80% 80%, rgba(0, 206, 201, 0.2) 0%, rgba(0, 0, 0, 0) 40%);
    position: relative;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><circle cx="3" cy="3" r="1" fill="rgba(255, 255, 255, 0.05)"/></svg>');
    opacity: 0.5;
}

.hero-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: var(--container-width);
    width: 100%;
    padding: 0 20px;
    position: relative;
    z-index: 1;
}

.hero-text {
    flex: 1;
}

.hero-text h1 {
    font-size: 3.5rem;
    color: var(--text-light);
    margin-bottom: 20px;
    position: relative;
}

/* Glitch Effect */
.glitch {
    position: relative;
    animation: glitch 5s infinite;
    width: max-content;
}

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

.glitch::before {
    left: 2px;
    color: var(--accent-color);
    clip-path: rect(44px, 650px, 56px, 0);
    animation: glitch-anim 5s linear infinite alternate-reverse;
}

.glitch::after {
    left: -2px;
    color: var(--secondary-color);
    clip-path: rect(44px, 650px, 56px, 0);
    animation: glitch-anim2 5s linear infinite alternate-reverse;
}

@keyframes glitch-anim {
    0% { clip: rect(24px, 650px, 90px, 0); }
    20% { clip: rect(62px, 650px, 89px, 0); }
    40% { clip: rect(12px, 650px, 15px, 0); }
    60% { clip: rect(54px, 650px, 120px, 0); }
    80% { clip: rect(79px, 650px, 16px, 0); }
    100% { clip: rect(24px, 650px, 88px, 0); }
}

@keyframes glitch-anim2 {
    0% { clip: rect(32px, 650px, 54px, 0); }
    20% { clip: rect(45px, 650px, 46px, 0); }
    40% { clip: rect(65px, 650px, 32px, 0); }
    60% { clip: rect(12px, 650px, 59px, 0); }
    80% { clip: rect(78px, 650px, 71px, 0); }
    100% { clip: rect(65px, 650px, 21px, 0); }
}

/* Typing Effect */
.typing-container {
    display: flex;
    align-items: center;
    height: 40px;
    margin-bottom: 20px;
}

.static-text {
    color: var(--text-light);
    font-size: 1.8rem;
    font-weight: 500;
    margin-right: 10px;
}

.dynamic-text {
    color: var(--accent-color);
    font-size: 1.8rem;
    font-weight: 600;
    position: relative;
}

.dynamic-text::after {
    content: '';
    position: absolute;
    right: -5px;
    top: 50%;
    transform: translateY(-50%);
    height: 30px;
    width: 2px;
    background-color: var(--accent-color);
    animation: blink 0.7s infinite;
}

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

.hero-description {
    color: var(--text-light);
    font-size: 1.1rem;
    max-width: 500px;
    margin-bottom: 40px;
    opacity: 0.8;
}

.cta-buttons {
    display: flex;
    gap: 20px;
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.profile-placeholder {
    width: 300px;
    height: 300px;
    position: relative;
}

.profile-img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 5px solid rgba(255, 255, 255, 0.1);
    animation: float 6s ease-in-out infinite;
    position: relative;
    z-index: 1;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

.orbit {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 400px;
    height: 400px;
    border-radius: 50%;
    border: 1px dashed rgba(255, 255, 255, 0.2);
    animation: rotate 20s linear infinite;
}

.tech-icon {
    position: absolute;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--bg-dark);
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--accent-color);
    font-size: 1.5rem;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
    transform: rotate(calc(var(--i) * 60deg)) translateX(200px) rotate(calc(var(--i) * -60deg));
}

@keyframes rotate {
    0% { transform: translate(-50%, -50%) rotate(0); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

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

.mouse {
    width: 30px;
    height: 50px;
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: 20px;
    position: relative;
}

.wheel {
    width: 4px;
    height: 10px;
    background-color: var(--accent-color);
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 2px;
    animation: wheel 1.5s infinite;
}

.arrow {
    margin-top: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.arrow span {
    display: block;
    width: 15px;
    height: 15px;
    border-bottom: 2px solid rgba(255, 255, 255, 0.5);
    border-right: 2px solid rgba(255, 255, 255, 0.5);
    transform: rotate(45deg);
    margin-top: -10px;
}

@keyframes wheel {
    0% { transform: translateX(-50%) translateY(0); opacity: 1; }
    100% { transform: translateX(-50%) translateY(15px); opacity: 0; }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
    40% { transform: translateX(-50%) translateY(-15px); }
    60% { transform: translateX(-50%) translateY(-7px); }
}

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

.about-content {
    display: flex;
    align-items: center;
    gap: 50px;
}

.about-text {
    flex: 1;
}

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

.stats-container {
    display: flex;
    justify-content: space-between;
    margin-top: 40px;
}

.stat-box {
    text-align: center;
    flex: 1;
}

.counter {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    display: block;
}

.stat-label {
    color: var(--text-gray);
    font-size: 0.9rem;
    margin-top: 5px;
    display: block;
}

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

.about-img {
    border-radius: 10px;
    box-shadow: var(--box-shadow);
    position: relative;
    z-index: 1;
}

.about-image::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: var(--gradient-primary);
    transform: translate(20px, 20px);
    border-radius: 10px;
    z-index: 0;
}

/* ===== PROJECTS SECTION ===== */
.projects {
    background-color: #f5f5f5;
}

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

.project-card {
    background-color: var(--card-bg);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: var(--transition-fast);
}

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

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

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

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

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition-fast);
}

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

.project-links {
    display: flex;
    gap: 20px;
}

.project-link {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--primary-color);
    color: var(--text-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: var(--transition-fast);
}

.project-link:hover {
    background: var(--accent-color);
    transform: translateY(-5px);
}

.project-info {
    padding: 25px;
}

.project-title {
    font-size: 1.3rem;
    margin-bottom: 10px;
}

.project-description {
    color: var(--text-gray);
    margin-bottom: 15px;
    font-size: 0.95rem;
}

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

.tech-tag {
    padding: 5px 12px;
    background-color: rgba(108, 92, 231, 0.1);
    color: var(--primary-color);
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

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

.skills-container {
    display: flex;
    flex-direction: column;
    gap: 50px;
}

.skill-category h3 {
    margin-bottom: 30px;
    position: relative;
    display: inline-block;
    padding-bottom: 10px;
}

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

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 25px;
}

.skill-item {
    background-color: var(--card-bg);
    border-radius: 10px;
    padding: 20px;
    box-shadow: var(--box-shadow);
    transition: var(--transition-fast);
}

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

.skill-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.skill-name {
    font-weight: 600;
    margin-bottom: 15px;
    display: block;
}

.skill-progress-bar {
    width: 100%;
    height: 8px;
    background-color: rgba(108, 92, 231, 0.1);
    border-radius: 4px;
    overflow: hidden;
}

.skill-progress {
    height: 100%;
    background: var(--gradient-primary);
    border-radius: 4px;
    position: relative;
    transition: width 1.5s ease-in-out;
}

/* ===== NERO AI SECTION ===== */
.nero {
    background-color: var(--bg-dark);
    color: var(--text-light);
}

.nero-container {
    display: flex;
    align-items: center;
    gap: 50px;
}

.nero-image {
    flex: 1;
    display: flex;
    justify-content: center;
}

.nero-visualization {
    position: relative;
    width: 300px;
    height: 300px;
}

.nero-circle {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: var(--gradient-primary);
    box-shadow: 0 0 50px var(--secondary-color);
    animation: pulse-nero 3s infinite;
}

.nero-wave {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 300px;
    height: 300px;
    border-radius: 50%;
    border: 2px solid rgba(108, 92, 231, 0.5);
    box-shadow: 0 0 20px rgba(108, 92, 231, 0.3);
    animation: wave 3s infinite;
}

.nero-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.nero-particles::before {
    content: '';
    position: absolute;
    width: 10px;
    height: 10px;
    background-color: var(--accent-color);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--accent-color);
    animation: particles 2s infinite;
}

.nero-particles::after {
    content: '';
    position: absolute;
    width: 15px;
    height: 15px;
    background-color: var(--secondary-color);
    border-radius: 50%;
    box-shadow: 0 0 15px var(--secondary-color);
    animation: particles 3s infinite 1s;
}

@keyframes pulse-nero {
    0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.8; }
    50% { transform: translate(-50%, -50%) scale(1.1); opacity: 1; }
}

@keyframes wave {
    0% { transform: translate(-50%, -50%) scale(1); opacity: 0.5; }
    50% { transform: translate(-50%, -50%) scale(1.3); opacity: 0.2; }
    100% { transform: translate(-50%, -50%) scale(1); opacity: 0.5; }
}

@keyframes particles {
    0% { top: 50%; left: 50%; opacity: 1; }
    100% { top: calc(50% + 100px); left: calc(50% - 100px); opacity: 0; }
}

.nero-content {
    flex: 1;
}

.nero-content h3 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: var(--accent-color);
}

.nero-content p {
    margin-bottom: 30px;
    opacity: 0.8;
}

.nero-features {
    display: flex;
    flex-direction: column;
    gap: 25px;
    margin-bottom: 40px;
}

.nero-feature {
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

.feature-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(108, 92, 231, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-color);
    font-size: 1.3rem;
}

.feature-text h4 {
    margin-bottom: 5px;
    color: var(--text-light);
}

.feature-text p {
    font-size: 0.95rem;
    color: var(--text-gray);
    margin-bottom: 0;
}

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

.contact-container {
    display: flex;
    gap: 50px;
}

.contact-info {
    flex: 1;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 30px;
}

.contact-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    font-size: 1.5rem;
    margin-right: 20px;
}

.contact-text h3 {
    margin-bottom: 5px;
}

.contact-text p {
    color: var(--text-gray);
}

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

.social-link {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    font-size: 1.2rem;
    transition: var(--transition-fast);
}

.social-link:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(108, 92, 231, 0.4);
}

.contact-form {
    flex: 1;
    background-color: var(--card-bg);
    padding: 40px;
    border-radius: 10px;
    box-shadow: var(--box-shadow);
}

.form-group {
    position: relative;
    margin-bottom: 25px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px 20px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    font-family: var(--font-family);
    font-size: 1rem;
    background-color: transparent;
    color: var(--text-color);
    transition: var(--transition-fast);
}

.form-group label {
    position: absolute;
    top: 15px;
    left: 20px;
    color: var(--text-gray);
    transition: var(--transition-fast);
    pointer-events: none;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group input:not(:placeholder-shown),
.form-group textarea:not(:placeholder-shown) {
    border-color: var(--primary-color);
    outline: none;
}

.form-group input:focus ~ label,
.form-group textarea:focus ~ label,
.form-group input:not(:placeholder-shown) ~ label,
.form-group textarea:not(:placeholder-shown) ~ label {
    top: -10px;
    left: 15px;
    font-size: 0.85rem;
    background-color: var(--card-bg);
    padding: 0 5px;
    color: var(--primary-color);
}

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

.submit-btn {
    width: 100%;
    display: flex;
    justify-content: center;
    gap: 10px;
}

.submit-btn i {
    transition: var(--transition-fast);
}

.submit-btn:hover i {
    transform: translateX(5px);
}

/* ===== FOOTER ===== */
.footer {
    background-color: var(--bg-dark);
    color: var(--text-light);
    padding: 60px 0;
}

.footer-content {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.footer-logo {
    margin-bottom: 20px;
}

.footer-text {
    margin-bottom: 30px;
    color: var(--text-gray);
}

.footer-links {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
}

.footer-links a {
    color: var(--text-gray);
    transition: var(--transition-fast);
}

.footer-links a:hover {
    color: var(--accent-color);
}

/* ===== BACK TO TOP BUTTON ===== */
.back-to-top {
    position: fixed;
    right: 30px;
    bottom: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--gradient-primary);
    color: var(--text-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: var(--transition-fast);
    z-index: 99;
}

.back-to-top.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

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

/* ===== RESPONSIVE STYLES ===== */
@media (max-width: 1200px) {
    .hero-content {
        max-width: 900px;
    }
}

@media (max-width: 992px) {
    :root {
        --section-padding: 80px 0;
    }
    
    .hero-content {
        flex-direction: column;
        text-align: center;
        gap: 50px;
    }
    
    .hero-text {
        order: 2;
    }
    
    .hero-image {
        order: 1;
    }
    
    .typing-container {
        justify-content: center;
    }
    
    .hero-description {
        margin: 0 auto 40px;
    }
    
    .cta-buttons {
        justify-content: center;
    }
    
    .about-content,
    .nero-container,
    .contact-container {
        flex-direction: column;
    }
    
    .about-image::before {
        display: none;
    }
    
    .about-text,
    .nero-content {
        order: 2;
    }
    
    .about-image,
    .nero-image {
        order: 1;
        margin-bottom: 30px;
    }
    
    .nero-visualization {
        margin: 0 auto;
    }
    
    .stat-box .counter {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    .navbar {
        padding: 0 20px;
    }
    
    .nav-links {
        position: fixed;
        top: var(--navbar-height);
        left: 0;
        width: 100%;
        height: 0;
        background-color: var(--bg-dark);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 20px;
        overflow: hidden;
        transition: var(--transition-fast);
        opacity: 0;
        visibility: hidden;
    }
    
    .nav-links.active {
        height: calc(100vh - var(--navbar-height));
        padding: 30px 0;
        opacity: 1;
        visibility: visible;
    }
    
    .menu-toggle {
        display: block;
    }
    
    .hero-text h1 {
        font-size: 2.5rem;
    }
    
    .static-text,
    .dynamic-text {
        font-size: 1.5rem;
    }
    
    .section-title h2 {
        font-size: 2rem;
    }
    
    .projects-container {
        grid-template-columns: 1fr;
    }
    
    .skills-grid {
        grid-template-columns: 1fr;
    }
    
    .stats-container {
        flex-direction: column;
        gap: 20px;
    }
    
    .contact-form {
        padding: 30px 20px;
    }
}

@media (max-width: 480px) {
    .hero-text h1 {
        font-size: 2rem;
    }
    
    .static-text,
    .dynamic-text {
        font-size: 1.2rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        gap: 15px;
    }
    
    .orbit {
        width: 300px;
        height: 300px;
    }
    
    .tech-icon {
        transform: rotate(calc(var(--i) * 60deg)) translateX(150px) rotate(calc(var(--i) * -60deg));
    }
}