/* ============================================
   RESET & BASE STYLES
   ============================================ */

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

:root {
    /* Color Palette */
    --primary-color: #6c63ff;
    --secondary-color: #4834df;
    --accent-color: #00d2ff;
    --text-color: #2c3e50;
    --text-light: #7f8c8d;
    --bg-color: #ffffff;
    --bg-light: #f8f9fa;
    --bg-dark: #1a1a2e;
    --border-color: #e8e8e8;
    --success-color: #2ecc71;
    --error-color: #e74c3c;

    /* Typography */
    --font-primary: "Poppins", sans-serif;
    --font-size-base: 16px;
    --font-weight-light: 300;
    --font-weight-normal: 400;
    --font-weight-medium: 500;
    --font-weight-semibold: 600;
    --font-weight-bold: 700;

    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 3rem;
    --spacing-xl: 5rem;

    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-full: 50%;

    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.16);
    --shadow-xl: 0 16px 64px rgba(0, 0, 0, 0.2);

    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-base: 0.3s ease;
    --transition-slow: 0.5s ease;
}

/* Dark Theme Variables */
body.dark-theme {
    --text-color: #ecf0f1;
    --text-light: #bdc3c7;
    --bg-color: #0f0f1e;
    --bg-light: #1a1a2e;
    --bg-dark: #16213e;
    --border-color: #2c3e50;
}

html {
    scroll-behavior: smooth;
    font-size: var(--font-size-base);
}

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

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

.section {
    padding: var(--spacing-xl) 0;
}

/* ============================================
   SCROLL PROGRESS BAR
   ============================================ */

#scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 4px;
    background: linear-gradient(
        90deg,
        var(--primary-color),
        var(--accent-color)
    );
    z-index: 9999;
    transition: width var(--transition-fast);
}

/* ============================================
   NAVIGATION
   ============================================ */

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
    z-index: 1000;
    transition: all var(--transition-base);
}

body.dark-theme .navbar {
    background-color: rgba(15, 15, 30, 0.95);
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--spacing-sm) 0;
}

.logo {
    font-size: 1.75rem;
    font-weight: var(--font-weight-bold);
    color: var(--text-color);
    text-decoration: none;
    transition: transform var(--transition-base);
}

.logo:hover {
    transform: scale(1.05);
}

.logo-dot {
    color: var(--primary-color);
    font-size: 2rem;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: var(--spacing-md);
    align-items: center;
}

.nav-link {
    color: var(--text-color);
    text-decoration: none;
    font-weight: var(--font-weight-medium);
    padding: 0.5rem 1rem;
    border-radius: var(--radius-sm);
    transition: all var(--transition-base);
    position: relative;
}

.nav-link::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width var(--transition-base);
}

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

.nav-link:hover,
.nav-link.active {
    color: var(--primary-color);
}

/* Theme Toggle Button */
.theme-toggle {
    background: var(--bg-light);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-full);
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--transition-base);
    margin-left: var(--spacing-sm);
}

.theme-toggle:hover {
    transform: rotate(15deg) scale(1.1);
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.theme-toggle i {
    font-size: 1.2rem;
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--text-color);
    margin: 3px 0;
    transition: all var(--transition-base);
    border-radius: 3px;
}

.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* ============================================
   HERO SECTION
   ============================================ */

.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    background: linear-gradient(
        135deg,
        var(--bg-color) 0%,
        var(--bg-light) 100%
    );
    padding-top: 80px;
}

.hero-content {
    text-align: center;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
}

.hero-greeting {
    font-size: 1.25rem;
    color: var(--text-light);
    margin-bottom: var(--spacing-sm);
    animation: fadeInUp 0.8s ease;
}

.hero-title {
    font-size: clamp(2.5rem, 8vw, 4.5rem);
    font-weight: var(--font-weight-bold);
    color: var(--text-color);
    margin-bottom: var(--spacing-sm);
    animation: fadeInUp 0.8s ease 0.2s backwards;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: clamp(1.5rem, 5vw, 2.5rem);
    color: var(--primary-color);
    font-weight: var(--font-weight-semibold);
    margin-bottom: var(--spacing-sm);
    animation: fadeInUp 0.8s ease 0.4s backwards;
}

.hero-description {
    font-size: 1.25rem;
    color: var(--text-light);
    margin-bottom: var(--spacing-lg);
    animation: fadeInUp 0.8s ease 0.6s backwards;
}

.hero-buttons {
    display: flex;
    gap: var(--spacing-sm);
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: var(--spacing-lg);
    animation: fadeInUp 0.8s ease 0.8s backwards;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    border-radius: var(--radius-md);
    font-weight: var(--font-weight-semibold);
    text-decoration: none;
    transition: all var(--transition-base);
    cursor: pointer;
    border: none;
    font-size: 1rem;
    font-family: var(--font-primary);
}

.btn-primary {
    background: linear-gradient(
        135deg,
        var(--primary-color),
        var(--secondary-color)
    );
    color: white;
    box-shadow: 0 4px 15px rgba(108, 99, 255, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(108, 99, 255, 0.4);
}

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

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

.hero-social {
    display: flex;
    gap: var(--spacing-sm);
    justify-content: center;
    animation: fadeInUp 0.8s ease 1s backwards;
}

.hero-social a {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-full);
    background: var(--bg-light);
    color: var(--text-color);
    font-size: 1.25rem;
    transition: all var(--transition-base);
    border: 2px solid var(--border-color);
}

.hero-social a:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-5px);
    border-color: var(--primary-color);
}

/* Hero Animated Shapes */
.hero-shapes {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
}

.shape {
    position: absolute;
    border-radius: var(--radius-full);
    opacity: 0.1;
}

.shape-1 {
    width: 300px;
    height: 300px;
    background: var(--primary-color);
    top: 10%;
    left: 10%;
    animation: float 6s ease-in-out infinite;
}

.shape-2 {
    width: 200px;
    height: 200px;
    background: var(--accent-color);
    bottom: 20%;
    right: 15%;
    animation: float 8s ease-in-out infinite;
}

.shape-3 {
    width: 150px;
    height: 150px;
    background: var(--secondary-color);
    top: 60%;
    left: 5%;
    animation: float 7s ease-in-out infinite;
}

/* ============================================
   ABOUT SECTION
   ============================================ */

.about {
    background: var(--bg-light);
}

.section-title {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: var(--font-weight-bold);
    text-align: center;
    margin-bottom: var(--spacing-md);
    position: relative;
    display: inline-block;
    width: 100%;
}

.section-title::after {
    content: "";
    display: block;
    width: 100px;
    height: 4px;
    background: linear-gradient(
        90deg,
        var(--primary-color),
        var(--accent-color)
    );
    margin: var(--spacing-sm) auto 0;
    border-radius: 2px;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: var(--spacing-lg);
    align-items: center;
    margin-top: var(--spacing-lg);
}

.about-image {
    position: relative;
}

.image-wrapper {
    position: relative;
    width: 100%;
    max-width: 350px;
    margin: 0 auto;
}

.profile-img {
    width: 100%;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    position: relative;
    z-index: 2;
}

.image-border {
    position: absolute;
    top: 20px;
    left: 20px;
    width: 100%;
    height: 100%;
    border: 3px solid var(--primary-color);
    border-radius: var(--radius-lg);
    z-index: 1;
}

.about-text h3 {
    font-size: 1.75rem;
    margin-bottom: var(--spacing-sm);
    color: var(--text-color);
}

.about-text p {
    margin-bottom: var(--spacing-sm);
    color: var(--text-light);
    line-height: 1.8;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-md);
    margin-top: var(--spacing-lg);
}

.stat-item {
    text-align: center;
    padding: var(--spacing-md);
    background: var(--bg-color);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-base);
}

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

.stat-item h4 {
    font-size: 2.5rem;
    color: var(--primary-color);
    font-weight: var(--font-weight-bold);
    margin-bottom: 0.5rem;
}

.stat-item p {
    color: var(--text-light);
    font-size: 0.95rem;
    margin: 0;
}

/* ============================================
   SKILLS SECTION
   ============================================ */

.skills {
    background: var(--bg-color);
}

.section-subtitle {
    text-align: center;
    color: var(--text-light);
    font-size: 1.1rem;
    margin-bottom: var(--spacing-lg);
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-md);
    margin-top: var(--spacing-lg);
}

.skill-card {
    background: var(--bg-light);
    padding: var(--spacing-md);
    border-radius: var(--radius-md);
    text-align: center;
    transition: all var(--transition-base);
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.skill-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(108, 99, 255, 0.1),
        transparent
    );
    transition: left 0.5s ease;
}

.skill-card:hover::before {
    left: 100%;
}

.skill-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.skill-icon {
    font-size: 3.5rem;
    margin-bottom: var(--spacing-sm);
    color: var(--primary-color);
    transition: all var(--transition-base);
}

.skill-card:hover .skill-icon {
    transform: scale(1.2) rotate(5deg);
}

.skill-card h3 {
    font-size: 1.35rem;
    margin-bottom: var(--spacing-xs);
    color: var(--text-color);
}

.skill-card p {
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.6;
}

.skill-card.learning {
    border: 2px dashed var(--accent-color);
}

.learning-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--accent-color);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: var(--font-weight-semibold);
}

/* ============================================
   PROJECTS SECTION
   ============================================ */

.projects {
    background: var(--bg-light);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: var(--spacing-md);
    margin-top: var(--spacing-lg);
}

.project-card {
    background: var(--bg-color);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-base);
    cursor: pointer;
}

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

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

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

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

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

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

.btn-view {
    background: white;
    color: var(--primary-color);
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: var(--radius-md);
    font-weight: var(--font-weight-semibold);
    cursor: pointer;
    transition: all var(--transition-base);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-primary);
}

.btn-view:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-md);
}

.project-content {
    padding: var(--spacing-md);
}

.project-content h3 {
    font-size: 1.5rem;
    margin-bottom: var(--spacing-xs);
    color: var(--text-color);
}

.project-content p {
    color: var(--text-light);
    margin-bottom: var(--spacing-sm);
    line-height: 1.6;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tag {
    background: var(--bg-light);
    color: var(--primary-color);
    padding: 0.35rem 0.75rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: var(--font-weight-medium);
    border: 1px solid var(--primary-color);
}

/* ============================================
   PROJECT MODAL
   ============================================ */

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 10000;
    align-items: center;
    justify-content: center;
    padding: var(--spacing-md);
    backdrop-filter: blur(5px);
}

.modal.active {
    display: flex;
}

.modal-content {
    background: var(--bg-color);
    border-radius: var(--radius-lg);
    max-width: 800px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: var(--shadow-xl);
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--error-color);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: var(--radius-full);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    transition: all var(--transition-base);
    z-index: 10;
}

.modal-close:hover {
    transform: rotate(90deg) scale(1.1);
}

.modal-body {
    padding: var(--spacing-lg);
}

.modal-body h2 {
    font-size: 2rem;
    margin-bottom: var(--spacing-sm);
    color: var(--primary-color);
}

.modal-body h3 {
    font-size: 1.5rem;
    margin-top: var(--spacing-md);
    margin-bottom: var(--spacing-sm);
    color: var(--text-color);
}

.modal-body p {
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: var(--spacing-sm);
}

.modal-body ul {
    margin-left: var(--spacing-md);
    margin-bottom: var(--spacing-sm);
}

.modal-body li {
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 0.5rem;
}

/* ============================================
   CONTACT SECTION
   ============================================ */

.contact {
    background: var(--bg-color);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: var(--spacing-lg);
    margin-top: var(--spacing-lg);
}

.contact-info h3 {
    font-size: 1.75rem;
    margin-bottom: var(--spacing-sm);
    color: var(--text-color);
}

.contact-info > p {
    color: var(--text-light);
    margin-bottom: var(--spacing-md);
    line-height: 1.8;
}

.contact-items {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-lg);
}

.contact-item {
    display: flex;
    gap: var(--spacing-sm);
    align-items: flex-start;
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: var(--bg-light);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-size: 1.25rem;
    flex-shrink: 0;
}

.contact-text h4 {
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
    color: var(--text-color);
}

.contact-text p,
.contact-text a {
    color: var(--text-light);
    text-decoration: none;
    transition: color var(--transition-base);
}

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

.contact-social h4 {
    margin-bottom: var(--spacing-sm);
    color: var(--text-color);
}

.social-links {
    display: flex;
    gap: var(--spacing-sm);
}

.social-links a {
    width: 45px;
    height: 45px;
    background: var(--bg-light);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-color);
    font-size: 1.15rem;
    transition: all var(--transition-base);
    border: 2px solid var(--border-color);
}

.social-links a:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-5px);
    border-color: var(--primary-color);
}

/* Contact Form */
.contact-form {
    background: var(--bg-light);
    padding: var(--spacing-lg);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

.form-group {
    margin-bottom: var(--spacing-md);
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-color);
    font-weight: var(--font-weight-medium);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.875rem;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-family: var(--font-primary);
    font-size: 1rem;
    background: var(--bg-color);
    color: var(--text-color);
    transition: all var(--transition-base);
}

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

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

.form-status {
    margin-top: var(--spacing-sm);
    padding: var(--spacing-sm);
    border-radius: var(--radius-sm);
    text-align: center;
    display: none;
}

.form-status.success {
    background: rgba(46, 204, 113, 0.1);
    color: var(--success-color);
    border: 1px solid var(--success-color);
    display: block;
}

.form-status.error {
    background: rgba(231, 76, 60, 0.1);
    color: var(--error-color);
    border: 1px solid var(--error-color);
    display: block;
}

/* ============================================
   FOOTER
   ============================================ */

.footer {
    background: var(--bg-dark);
    color: var(--text-light);
    padding: var(--spacing-lg) 0;
    text-align: center;
}

body.dark-theme .footer {
    background: #0a0a15;
}

.footer-content p {
    margin-bottom: var(--spacing-sm);
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: var(--spacing-md);
    flex-wrap: wrap;
}

.footer-links a {
    color: var(--text-light);
    text-decoration: none;
    transition: color var(--transition-base);
}

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

/* ============================================
   BACK TO TOP BUTTON
   ============================================ */

.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: var(--radius-full);
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    box-shadow: var(--shadow-lg);
    transition: all var(--transition-base);
    z-index: 999;
}

.back-to-top.active {
    display: flex;
}

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

/* ============================================
   ANIMATIONS
   ============================================ */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes float {
    0%,
    100% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-30px) rotate(10deg);
    }
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

@media (max-width: 1024px) {
    .about-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .about-image {
        max-width: 400px;
        margin: 0 auto;
    }

    .about-stats {
        grid-template-columns: repeat(3, 1fr);
    }

    .contact-content {
        grid-template-columns: 1fr;
    }

    .skills-grid {
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    }

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

@media (max-width: 768px) {
    .container {
        padding: 0 var(--spacing-sm);
    }

    .section {
        padding: var(--spacing-lg) 0;
    }

    /* Navigation */
    .nav-wrapper {
        position: relative;
    }

    .menu-toggle {
        display: flex;
    }

    .nav-menu {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--bg-color);
        flex-direction: column;
        padding: var(--spacing-md);
        box-shadow: var(--shadow-lg);
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all var(--transition-base);
        border-radius: 0 0 var(--radius-md) var(--radius-md);
    }

    .nav-menu.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    .theme-toggle {
        position: absolute;
        right: 60px;
    }

    /* Hero */
    .hero {
        min-height: 90vh;
        padding-top: 100px;
    }

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

    .hero-subtitle {
        font-size: 1.75rem;
    }

    .hero-description {
        font-size: 1.1rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: stretch;
    }

    .btn {
        width: 100%;
        justify-content: center;
    }

    /* About */
    .about-content {
        gap: var(--spacing-md);
    }

    .about-stats {
        grid-template-columns: 1fr;
        gap: var(--spacing-sm);
    }

    .stat-item h4 {
        font-size: 2rem;
    }

    /* Skills */
    .skills-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-sm);
    }

    /* Projects */
    .projects-grid {
        grid-template-columns: 1fr;
    }

    .project-image {
        height: 220px;
    }

    /* Contact */
    .contact-content {
        gap: var(--spacing-md);
    }

    .contact-form {
        padding: var(--spacing-md);
    }

    /* Modal */
    .modal-content {
        max-height: 85vh;
    }

    .modal-body {
        padding: var(--spacing-md);
    }

    .modal-body h2 {
        font-size: 1.5rem;
    }

    /* Footer */
    .footer-links {
        flex-direction: column;
        gap: var(--spacing-xs);
    }

    /* Back to Top */
    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
    }

    /* Hero Shapes */
    .shape-1 {
        width: 200px;
        height: 200px;
    }

    .shape-2 {
        width: 150px;
        height: 150px;
    }

    .shape-3 {
        width: 100px;
        height: 100px;
    }
}

@media (max-width: 480px) {
    :root {
        --font-size-base: 14px;
        --spacing-md: 1.5rem;
        --spacing-lg: 2rem;
        --spacing-xl: 3rem;
    }

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

    .hero-subtitle {
        font-size: 1.5rem;
    }

    .hero-description {
        font-size: 1rem;
    }

    .hero-social a {
        width: 45px;
        height: 45px;
        font-size: 1.1rem;
    }

    .section-title {
        font-size: 1.75rem;
    }

    .about-text h3 {
        font-size: 1.5rem;
    }

    .skill-card {
        padding: var(--spacing-sm);
    }

    .skill-icon {
        font-size: 2.5rem;
    }

    .project-content {
        padding: var(--spacing-sm);
    }

    .project-content h3 {
        font-size: 1.25rem;
    }

    .contact-info h3 {
        font-size: 1.5rem;
    }

    .form-group input,
    .form-group textarea {
        padding: 0.75rem;
    }

    .back-to-top {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
}

/* ============================================
   PRINT STYLES
   ============================================ */

@media print {
    .navbar,
    .hero-shapes,
    .back-to-top,
    .theme-toggle,
    .menu-toggle,
    #scroll-progress {
        display: none;
    }

    body {
        background: white;
        color: black;
    }

    .section {
        page-break-inside: avoid;
    }
}
