/* Modern Dark Portfolio Styles */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

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

:root {
    --bg-primary: #0a0a0f;
    --bg-secondary: #13131a;
    --bg-tertiary: #1a1a24;
    --text-primary: #ffffff;
    --text-secondary: #a0a0b0;
    --text-muted: #6b6b7f;
    --accent-primary: #8b5cf6;
    --accent-secondary: #6366f1;
    --accent-gradient: linear-gradient(135deg, #8b5cf6 0%, #6366f1 100%);
    --glow: rgba(139, 92, 246, 0.4);
    --border-color: rgba(255, 255, 255, 0.1);
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    width: 100%;
    position: relative;
}

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

/* Prevent content overflow */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

svg {
    max-width: 100%;
    height: auto;
}

/* Background Animation */
.bg-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

.shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.3;
    animation: float 20s infinite ease-in-out;
    will-change: transform;
}

.shape-1 {
    width: 500px;
    height: 500px;
    background: var(--accent-primary);
    top: -200px;
    right: -200px;
    animation-delay: 0s;
}

.shape-2 {
    width: 400px;
    height: 400px;
    background: var(--accent-secondary);
    bottom: -100px;
    left: -100px;
    animation-delay: 7s;
}

.shape-3 {
    width: 300px;
    height: 300px;
    background: #ec4899;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation-delay: 14s;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(50px, -50px) scale(1.1); }
    50% { transform: translate(-30px, 30px) scale(0.9); }
    75% { transform: translate(30px, 50px) scale(1.05); }
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(10, 10, 15, 0.8);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
    transition: all 0.3s ease;
}

.navbar.scrolled {
    background: rgba(10, 10, 15, 0.95);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-decoration: none;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

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

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

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

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.menu-toggle span {
    width: 25px;
    height: 2px;
    background: var(--text-primary);
    transition: all 0.3s ease;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 100px 0 50px;
    position: relative;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: rgba(139, 92, 246, 0.1);
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: 50px;
    color: var(--accent-primary);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    animation: slideInDown 0.8s ease;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1rem;
    animation: slideInLeft 0.8s ease;
}

.gradient-text {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-description {
    font-size: 1.8rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
    animation: slideInLeft 0.8s ease 0.2s backwards;
}

.hero-subtitle {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
    line-height: 1.8;
    animation: slideInLeft 0.8s ease 0.4s backwards;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    margin-bottom: 3rem;
    animation: slideInUp 0.8s ease 0.6s backwards;
}

.btn {
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    font-size: 1rem;
}

.btn-primary {
    background: var(--accent-gradient);
    color: white;
    box-shadow: 0 10px 30px rgba(139, 92, 246, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(139, 92, 246, 0.4);
}

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

.btn-secondary:hover {
    border-color: var(--accent-primary);
    background: rgba(139, 92, 246, 0.1);
}

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

.hero-stats {
    display: flex;
    gap: 3rem;
    animation: fadeIn 1s ease 0.8s backwards;
}

.stat {
    text-align: center;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.stat-label {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

/* Hero Image */
.hero-image {
    position: relative;
    animation: fadeIn 1s ease 0.5s backwards;
}

.image-wrapper {
    position: relative;
    width: 100%;
    height: 500px;
}

.floating-card {
    position: absolute;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 15px;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
}

.floating-card svg {
    color: var(--accent-primary);
}

.floating-card span {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.card-1 {
    top: 20%;
    left: 10%;
    animation: floatCard 6s ease-in-out infinite;
}

.card-2 {
    top: 50%;
    right: 10%;
    animation: floatCard 6s ease-in-out infinite 2s;
}

.card-3 {
    bottom: 15%;
    left: 30%;
    animation: floatCard 6s ease-in-out infinite 4s;
}

@keyframes floatCard {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(3deg); }
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
}

.mouse {
    width: 30px;
    height: 50px;
    border: 2px solid var(--border-color);
    border-radius: 20px;
    position: relative;
}

.mouse::before {
    content: '';
    width: 4px;
    height: 10px;
    background: var(--accent-primary);
    border-radius: 2px;
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    animation: scroll 2s infinite;
}

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

@keyframes bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(10px); }
}

/* Section Styles */
section {
    padding: 100px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-tag {
    display: inline-block;
    color: var(--accent-primary);
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 1rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
}

/* About Section */
.about {
    background: var(--bg-secondary);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 4rem;
    align-items: center;
}

.about-image {
    position: relative;
}

.image-box {
    position: relative;
    width: 100%;
    aspect-ratio: 1;
}

.profile-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    border: 3px solid var(--accent-primary);
    position: relative;
    z-index: 2;
    display: block;
    box-shadow: 0 0 30px rgba(139, 92, 246, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.profile-image:hover {
    transform: scale(1.05);
    box-shadow: 0 0 50px rgba(139, 92, 246, 0.5);
}

.image-placeholder {
    width: 100%;
    height: 100%;
    background: var(--bg-tertiary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--border-color);
    position: relative;
    z-index: 2;
}

.image-placeholder svg {
    width: 80px;
    height: 80px;
    color: var(--accent-primary);
}

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

.about-text h3 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    line-height: 1.4;
}

.about-text p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.about-info {
    margin: 2rem 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: var(--text-secondary);
}

.info-item svg {
    color: var(--accent-primary);
}

/* Skills Section */
/* Tech Stack Section */
.tech-stack {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.tech-category {
    background: var(--bg-secondary);
    padding: 2rem;
    border-radius: 20px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.tech-category:hover {
    border-color: var(--accent-primary);
    box-shadow: 0 10px 40px rgba(139, 92, 246, 0.15);
}

.tech-category-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.tech-category-title::before {
    content: '🔧';
    font-size: 1.2rem;
}

.tech-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.tech-badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: default;
    border: 2px solid transparent;
}

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

/* Language Colors */
.tech-badge.python { background: #3776AB; color: white; }
.tech-badge.java { background: #ED8B00; color: white; }
.tech-badge.kotlin { background: #0095D5; color: white; }
.tech-badge.c { background: #00599C; color: white; }
.tech-badge.cpp { background: #00599C; color: white; }
.tech-badge.csharp { background: #239120; color: white; }
.tech-badge.javascript { background: #F7DF1E; color: #000; }
.tech-badge.typescript { background: #007ACC; color: white; }
.tech-badge.php { background: #777BB4; color: white; }

/* Mobile Development Colors */
.tech-badge.android { background: #3DDC84; color: #000; }
.tech-badge.jetpack { background: #4285F4; color: white; }
.tech-badge.react-native { background: #61DAFB; color: #000; }

/* Web Development Colors */
.tech-badge.nextjs { background: #000000; color: white; border-color: #fff; }
.tech-badge.vue { background: #4FC08D; color: white; }
.tech-badge.react { background: #61DAFB; color: #000; }
.tech-badge.nodejs { background: #339933; color: white; }
.tech-badge.spring { background: #6DB33F; color: white; }

/* Cloud & Database Colors */
.tech-badge.firebase { background: #FFCA28; color: #000; }
.tech-badge.mongodb { background: #47A248; color: white; }
.tech-badge.postgresql { background: #316192; color: white; }
.tech-badge.mysql { background: #4479A1; color: white; }
.tech-badge.sqlite { background: #003B57; color: white; }
.tech-badge.redis { background: #DC382D; color: white; }
.tech-badge.vercel { background: #000000; color: white; border-color: #fff; }
.tech-badge.railway { background: #0B0D0E; color: white; border-color: #fff; }
.tech-badge.appwrite { background: #F02E65; color: white; }

/* Tools & DevOps Colors */
.tech-badge.android-studio { background: #3DDC84; color: #000; }
.tech-badge.vscode { background: #007ACC; color: white; }
.tech-badge.intellij { background: #000000; color: white; border-color: #fff; }
.tech-badge.postman { background: #FF6C37; color: white; }
.tech-badge.figma { background: #F24E1E; color: white; }
.tech-badge.docker { background: #2496ED; color: white; }
.tech-badge.git { background: #F05032; color: white; }

/* AI & ML Colors */
.tech-badge.ollama { background: #000000; color: white; border-color: #fff; }

/* Projects Section */
.projects {
    background: var(--bg-secondary);
}

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

.project-card {
    background: var(--bg-tertiary);
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
    border-color: var(--accent-primary);
}

.project-image {
    height: 250px;
    background: linear-gradient(135deg, var(--accent-primary) 0%, var(--accent-secondary) 100%);
    position: relative;
    overflow: hidden;
}

.project-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

.project-link {
    width: 60px;
    height: 60px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-primary);
    transition: transform 0.3s ease;
}

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

.project-content {
    padding: 2rem;
}

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

.project-tags span {
    padding: 0.3rem 0.8rem;
    background: rgba(139, 92, 246, 0.1);
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: 20px;
    font-size: 0.8rem;
    color: var(--accent-primary);
}

.project-content h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

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

.project-footer {
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

.text-link {
    color: var(--accent-primary);
    text-decoration: none;
    font-weight: 600;
    transition: gap 0.3s ease;
    display: inline-flex;
    align-items: center;
}

.text-link:hover {
    gap: 5px;
}

/* Contact Section */
.contact-content {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 4rem;
}

.contact-info h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    line-height: 1.4;
}

.contact-info p {
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.8;
}

.contact-methods {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
}

.contact-method {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--bg-secondary);
    border-radius: 10px;
    border: 1px solid var(--border-color);
    text-decoration: none;
    color: var(--text-primary);
    transition: all 0.3s ease;
}

.contact-method:hover {
    border-color: var(--accent-primary);
    transform: translateX(5px);
}

.method-icon {
    width: 50px;
    height: 50px;
    background: rgba(139, 92, 246, 0.1);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.method-icon svg {
    color: var(--accent-primary);
}

.method-text {
    display: flex;
    flex-direction: column;
}

.method-label {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.method-value {
    font-weight: 600;
}

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

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

.social-link:hover {
    background: var(--accent-gradient);
    color: white;
    transform: translateY(-3px);
    border-color: transparent;
}

/* Contact Form */
.contact-form {
    background: var(--bg-secondary);
    padding: 2rem;
    border-radius: 20px;
    border: 1px solid var(--border-color);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

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

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    color: var(--text-primary);
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.1);
}

.form-group textarea {
    resize: vertical;
}

/* Footer */
.footer {
    padding: 2rem 0;
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
}

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

.footer-content p {
    color: var(--text-muted);
}

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

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

/* Animations */
@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

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

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Responsive Design */
/* Tablet and below (1024px) */
@media (max-width: 1024px) {
    .container {
        padding: 0 30px;
    }
    
    .hero-container {
        gap: 3rem;
    }
    
    .hero-title {
        font-size: 3rem;
    }
    
    .section-title {
        font-size: 2.2rem;
    }
    
    .about-content {
        gap: 3rem;
    }
    
    .image-wrapper {
        height: 400px;
    }
}

/* Mobile landscape and tablets (968px) */
@media (max-width: 968px) {
    .nav-menu {
        position: fixed;
        top: 70px;
        right: -100%;
        width: 100%;
        max-width: 300px;
        height: calc(100vh - 70px);
        background: rgba(10, 10, 15, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 2rem;
        gap: 1.5rem;
        transition: right 0.3s ease;
        border-left: 1px solid var(--border-color);
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.5);
        overflow-y: auto;
    }

    .nav-menu.active {
        right: 0;
    }

    .menu-toggle {
        display: flex;
        z-index: 1001;
    }

    .hero-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .hero-content {
        order: 1;
    }
    
    .hero-image {
        order: 2;
        max-width: 400px;
        margin: 0 auto;
    }

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

    .hero-buttons {
        flex-wrap: wrap;
    }

    .hero-stats {
        justify-content: center;
        flex-wrap: wrap;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
    
    .about-image {
        max-width: 300px;
        margin: 0 auto;
    }

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

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

    .footer-content {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    /* Improve touch targets for mobile */
    .btn {
        min-height: 48px;
        padding: 0.875rem 1.75rem;
    }
    
    .contact-method {
        min-height: 70px;
        padding: 1.25rem;
    }
    
    .social-link {
        width: 54px;
        height: 54px;
    }
}

/* Mobile portrait (768px) */
@media (max-width: 768px) {
    section {
        padding: 60px 0;
    }
    
    .container {
        padding: 0 20px;
    }
    
    .section-header {
        margin-bottom: 3rem;
    }
    
    .hero {
        padding: 80px 0 40px;
        min-height: auto;
    }
    
    .hero-title {
        font-size: 2.2rem;
        line-height: 1.3;
    }
    
    .hero-description {
        font-size: 1.5rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        width: 100%;
        gap: 0.75rem;
    }
    
    .btn {
        width: 100%;
        justify-content: center;
    }
    
    .hero-stats {
        gap: 2rem;
        margin-top: 2rem;
    }
    
    .stat-number {
        font-size: 2.2rem;
    }
    
    .image-wrapper {
        height: 350px;
    }
    
    .floating-card {
        padding: 1rem;
    }
    
    .floating-card svg {
        width: 30px;
        height: 30px;
    }
    
    .floating-card span {
        font-size: 0.8rem;
    }
    
    .about-text h3 {
        font-size: 1.5rem;
    }
    
    .tech-category {
        padding: 1.5rem;
    }
    
    .tech-badges {
        gap: 0.6rem;
    }
    
    .tech-badge {
        padding: 0.4rem 0.9rem;
        font-size: 0.8rem;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .project-image {
        height: 200px;
    }
    
    .project-content {
        padding: 1.5rem;
    }
    
    .contact-info h3 {
        font-size: 1.5rem;
    }
    
    .scroll-indicator {
        bottom: 20px;
    }
    
    /* Optimize background shapes for mobile */
    .shape-1 {
        width: 300px;
        height: 300px;
        top: -150px;
        right: -150px;
    }
    
    .shape-2 {
        width: 250px;
        height: 250px;
        bottom: -80px;
        left: -80px;
    }
    
    .shape-3 {
        width: 200px;
        height: 200px;
    }
}

/* Small mobile (640px) */
@media (max-width: 640px) {
    .hero-title {
        font-size: 1.8rem;
    }

    .hero-description {
        font-size: 1.2rem;
    }
    
    .hero-subtitle {
        font-size: 0.95rem;
    }
    
    .hero-badge {
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
    }

    .section-title {
        font-size: 1.8rem;
    }
    
    .section-tag {
        font-size: 0.8rem;
    }

    .hero-stats {
        gap: 1.5rem;
        flex-direction: row;
    }

    .stat-number {
        font-size: 2rem;
    }
    
    .stat-label {
        font-size: 0.8rem;
    }
    
    .image-wrapper {
        height: 300px;
    }
    
    .floating-card {
        padding: 0.8rem;
    }
    
    .floating-card svg {
        width: 24px;
        height: 24px;
    }
    
    .floating-card span {
        font-size: 0.7rem;
    }
    
    .about-text h3 {
        font-size: 1.3rem;
    }
    
    .about-text p {
        font-size: 0.95rem;
    }
    
    .info-item {
        font-size: 0.9rem;
    }
    
    .tech-category {
        padding: 1.25rem;
    }
    
    .tech-category-title {
        font-size: 1rem;
    }
    
    .tech-badge {
        padding: 0.35rem 0.75rem;
        font-size: 0.75rem;
    }
    
    .project-content h3 {
        font-size: 1.2rem;
    }
    
    .project-content p {
        font-size: 0.9rem;
    }
    
    .contact-method {
        padding: 1rem;
    }
    
    .method-icon {
        width: 45px;
        height: 45px;
    }
    
    .method-label {
        font-size: 0.8rem;
    }
    
    .method-value {
        font-size: 0.9rem;
    }
    
    .social-link {
        width: 48px;
        height: 48px;
    }
    
    .footer-content p {
        font-size: 0.9rem;
    }
}

/* Very small mobile (480px) */
@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .nav-container {
        padding: 1rem 15px;
    }
    
    .logo {
        font-size: 1.3rem;
    }
    
    .menu-toggle span {
        width: 22px;
    }
    
    section {
        padding: 50px 0;
    }
    
    .hero {
        padding: 70px 0 30px;
    }
    
    .hero-title {
        font-size: 1.6rem;
    }
    
    .hero-description {
        font-size: 1.1rem;
    }
    
    .hero-subtitle {
        font-size: 0.9rem;
        margin-bottom: 1.5rem;
    }
    
    .section-header {
        margin-bottom: 2.5rem;
    }
    
    .section-title {
        font-size: 1.6rem;
    }
    
    .btn {
        padding: 0.75rem 1.5rem;
        font-size: 0.9rem;
    }
    
    .hero-stats {
        gap: 1.2rem;
    }
    
    .stat-number {
        font-size: 1.8rem;
    }
    
    .image-wrapper {
        height: 250px;
    }
    
    /* Hide floating cards on very small screens for cleaner look */
    .floating-card {
        display: none;
    }
    
    .about-image {
        max-width: 250px;
    }
    
    .about-text h3 {
        font-size: 1.2rem;
    }
    
    .tech-stack {
        gap: 1.5rem;
    }
    
    .tech-category {
        padding: 1rem;
    }
    
    .tech-badges {
        gap: 0.5rem;
    }
    
    .tech-badge {
        padding: 0.3rem 0.65rem;
        font-size: 0.7rem;
    }
    
    .project-image {
        height: 180px;
    }
    
    .project-content {
        padding: 1.25rem;
    }
    
    .contact-info h3 {
        font-size: 1.3rem;
    }
    
    .contact-info p {
        font-size: 0.9rem;
    }
    
    .social-links {
        justify-content: center;
        flex-wrap: wrap;
    }
}

/* Landscape mobile optimization */
@media (max-height: 500px) and (orientation: landscape) {
    .hero {
        min-height: auto;
        padding: 60px 0 30px;
    }
    
    .hero-title {
        font-size: 1.8rem;
    }
    
    .hero-description {
        font-size: 1.1rem;
    }
    
    .hero-subtitle {
        font-size: 0.9rem;
        margin-bottom: 1rem;
    }
    
    .hero-buttons {
        margin-bottom: 1.5rem;
    }
    
    .hero-stats {
        display: none;
    }
    
    .image-wrapper {
        display: none;
    }
    
    .scroll-indicator {
        display: none;
    }
    
    section {
        padding: 40px 0;
    }
}

/* Improve touch interactions for all mobile devices */
@media (hover: none) and (pointer: coarse) {
    /* Remove hover effects on touch devices */
    .nav-link::after {
        display: none;
    }
    
    /* Make interactive elements more touch-friendly */
    .nav-link {
        padding: 0.5rem 0;
        display: block;
    }
    
    .project-overlay {
        opacity: 0.8;
    }
    
    /* Ensure proper spacing for touch targets */
    .tech-badge {
        min-height: 36px;
        display: inline-flex;
        align-items: center;
    }
    
    /* Disable cursor glow on touch devices */
    body {
        cursor: default;
    }
}
