:root {
    /* Color Palette - Modern Gradient */
    --primary-color: #6366f1;
    --secondary-color: #a855f7;
    --accent-color: #ec4899;
    --tertiary-color: #06b6d4;
    --success-color: #10b981;
    --warning-color: #f59e0b;
    /* Background Colors */
    --dark-bg: #0f172a;
    --darker-bg: #020617;
    --card-bg: #1e293b;
    --card-bg-lighter: #334155;
    --light-bg: #f8fafc;
    /* Text Colors */
    --text-dark: #f1f5f9;
    --text-light: #94a3b8;
    --text-muted: #64748b;
    --border-color: #334155;
    /* Shadows */
    --card-shadow: 0 10px 40px rgba(99, 102, 241, 0.15);
    --card-shadow-hover: 0 20px 60px rgba(99, 102, 241, 0.3);
    --glow-shadow: 0 0 30px rgba(168, 85, 247, 0.3);
    --glow-shadow-hover: 0 0 50px rgba(168, 85, 247, 0.5);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
    background: linear-gradient(135deg, #020617 0%, #0f172a 100%);
    color: var(--text-dark);
    line-height: 1.7;
    overflow-x: hidden;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* ============================================
   ANIMATIONS
   ============================================ */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-60px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(60px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }

    50% {
        transform: translateY(-20px) rotate(5deg);
    }
}

@keyframes float-slow {
    0%, 100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-30px);
    }
}

@keyframes glow {
    0%, 100% {
        box-shadow: 0 0 20px rgba(168, 85, 247, 0.2);
    }

    50% {
        box-shadow: 0 0 40px rgba(168, 85, 247, 0.6);
    }
}

@keyframes gradient-shift {
    0%, 100% {
        background-position: 0% center;
    }

    50% {
        background-position: 100% center;
    }
}

@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }

    100% {
        background-position: 1000px 0;
    }
}

@keyframes pulse-glow {
    0% {
        opacity: 0.5;
        transform: scale(1);
    }

    50% {
        opacity: 1;
    }

    100% {
        opacity: 0.5;
        transform: scale(1.1);
    }
}

@keyframes bounce-in {
    0% {
        opacity: 0;
        transform: scale(0.3);
    }

    50% {
        opacity: 1;
        transform: scale(1.05);
    }

    100% {
        transform: scale(1);
    }
}

/* Navigation Bar */
#navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    border-bottom: 1px solid rgba(99, 102, 241, 0.1);
    z-index: 1000;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    animation: slideInDown 0.6s ease;
}

    #navbar.scrolled {
        background: rgba(15, 23, 42, 0.98);
        box-shadow: 0 8px 40px rgba(99, 102, 241, 0.2);
        border-bottom: 1px solid rgba(99, 102, 241, 0.3);
    }

@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-size: 1.5rem;
    font-weight: 800;
    text-decoration: none;
    color: white;
    transition: all 0.3s ease;
    position: relative;
    animation: fadeInUp 0.8s ease;
}

    .logo:hover {
        transform: translateY(-2px);
    }

.logo-icon {
    font-size: 2rem;
    filter: drop-shadow(0 0 10px rgba(99, 102, 241, 0.5));
    animation: float 3s ease-in-out infinite;
}

.logo-text {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #ec4899 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    background-size: 200% auto;
    animation: gradient-shift 3s ease infinite;
}

.nav-links {
    display: flex;
    gap: 0.5rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

    .nav-links a,
    .nav-links ::deep a {
        color: rgba(241, 245, 249, 0.9);
        text-decoration: none;
        font-weight: 600;
        font-size: 0.95rem;
        padding: 0.75rem 1.25rem;
        border-radius: 12px;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        position: relative;
        overflow: hidden;
        display: flex;
        align-items: center;
        gap: 0.5rem;
        cursor: pointer;
    }

        .nav-links a::before,
        .nav-links ::deep a::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(139, 92, 246, 0.1));
            transform: scaleX(0);
            transform-origin: right;
            transition: transform 0.3s ease;
            border-radius: 12px;
            z-index: -1;
        }

        .nav-links a:hover::before,
        .nav-links a.active::before,
        .nav-links ::deep a:hover::before,
        .nav-links ::deep a.active::before {
            transform: scaleX(1);
            transform-origin: left;
        }

        .nav-links a:hover,
        .nav-links ::deep a:hover {
            color: white;
            background: linear-gradient(135deg, rgba(99, 102, 241, 0.2), rgba(139, 92, 246, 0.2));
            transform: translateY(-2px);
            box-shadow: 0 4px 20px rgba(99, 102, 241, 0.3);
        }

        .nav-links a.active,
        .nav-links ::deep a.active {
            color: white;
            background: linear-gradient(135deg, #6366f1, #8b5cf6);
            box-shadow: 0 4px 20px rgba(99, 102, 241, 0.4);
            animation: bounce-in 0.5s ease;
        }

/* Menu Toggle Button */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    background: rgba(99, 102, 241, 0.1);
    border: 2px solid rgba(99, 102, 241, 0.3);
    padding: 0.6rem;
    border-radius: 12px;
    transition: all 0.3s ease;
    z-index: 1001;
}

    .menu-toggle:hover {
        background: rgba(99, 102, 241, 0.2);
        border-color: rgba(99, 102, 241, 0.5);
        transform: scale(1.05);
    }

    .menu-toggle span {
        width: 25px;
        height: 3px;
        background: linear-gradient(135deg, #6366f1, #8b5cf6);
        border-radius: 3px;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(8px, 8px);
    }

    .menu-toggle.active span:nth-child(2) {
        opacity: 0;
        transform: translateX(-20px);
    }

    .menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(8px, -8px);
    }

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    overflow: hidden;
}

    .hero::before {
        content: '';
        position: absolute;
        width: 100%;
        height: 100%;
        background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    }

.hero-content {
    text-align: center;
    color: white;
    z-index: 2;
    animation: fadeInUp 1s ease 0.2s both;
    padding: 2rem;
}

.hero-subtitle {
    font-size: 1.2rem;
    font-weight: 500;
    margin-bottom: 1rem;
    opacity: 0.95;
    letter-spacing: 2px;
    text-transform: uppercase;
    animation: slideInLeft 0.8s ease 0.3s both;
}

.hero h1 {
    font-size: clamp(2.5rem, 6vw, 5rem);
    margin-bottom: 1.5rem;
    font-weight: 800;
    line-height: 1.2;
    text-shadow: 2px 4px 8px rgba(0, 0, 0, 0.2);
    animation: slideInRight 0.8s ease 0.4s both;
}

.hero-description {
    font-size: clamp(1rem, 2vw, 1.3rem);
    margin-bottom: 2.5rem;
    opacity: 0.95;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    animation: fadeInUp 1s ease 0.5s both;
}

.cta-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 1s ease 0.6s both;
}

.cta-button {
    display: inline-block;
    padding: 1rem 2.5rem;
    background: white;
    color: var(--primary-color);
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
    position: relative;
    overflow: hidden;
    border: 2px solid white;
    cursor: pointer;
}

    .cta-button::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
        transition: left 0.5s ease;
    }

    .cta-button:hover::before {
        left: 100%;
    }

    .cta-button:hover {
        transform: translateY(-5px) scale(1.08);
        box-shadow: 0 15px 50px rgba(0, 0, 0, 0.3);
    }

    .cta-button.secondary {
        background: transparent;
        color: white;
        border: 2px solid white;
    }

        .cta-button.secondary:hover {
            background: white;
            color: var(--primary-color);
            transform: translateY(-5px) scale(1.08);
        }

/* Floating Shapes */
.shape {
    position: absolute;
    border-radius: 50%;
    opacity: 0.1;
    animation: float 25s infinite ease-in-out;
}

.shape1 {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, white, transparent);
    top: 10%;
    left: 5%;
    animation-delay: 0s;
}

.shape2 {
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, white, transparent);
    bottom: 15%;
    right: 10%;
    animation-delay: -7s;
}

.shape3 {
    width: 150px;
    height: 150px;
    background: radial-gradient(circle, white, transparent);
    top: 50%;
    left: 60%;
    animation-delay: -14s;
}

/* Sections */
section {
    padding: 6rem 0;
    position: relative;
    background: var(--dark-bg);
    overflow: hidden;
}

    section:nth-child(even) {
        background: linear-gradient(135deg, var(--darker-bg) 0%, #111c2f 100%);
    }

    section > .container {
        animation: fadeInUp 1s ease;
    }

h2 {
    text-align: center;
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 1rem;
    font-weight: 800;
    background: linear-gradient(135deg, #6366f1 0%, #a855f7 50%, #ec4899 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    background-size: 200% auto;
    animation: gradient-shift 3s ease infinite;
}

.section-subtitle {
    text-align: center;
    color: var(--text-light);
    font-size: 1.1rem;
    margin-bottom: 4rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    animation: fadeInUp 1s ease;
}

/* Cards - General */
.project-card,
.skill-card,
.contact-item {
    animation: fadeInUp 0.8s ease;
}

.project-card {
    background: var(--card-bg);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--card-shadow);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
    border: 1px solid var(--border-color);
    position: relative;
}

    .project-card::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: linear-gradient(135deg, rgba(168, 85, 247, 0.2), rgba(236, 72, 153, 0.2));
        opacity: 0;
        transition: opacity 0.3s ease;
        z-index: 1;
    }

    .project-card:hover::before {
        opacity: 1;
    }

    .project-card:hover {
        transform: translateY(-15px) scale(1.02);
        box-shadow: var(--glow-shadow-hover);
        border-color: var(--secondary-color);
    }

.skill-card {
    background: var(--card-bg);
    padding: 2.5rem;
    border-radius: 20px;
    text-align: center;
    box-shadow: var(--card-shadow);
    transition: all 0.4s ease;
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

    .skill-card::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 4px;
        background: linear-gradient(90deg, var(--primary-color), var(--secondary-color), var(--accent-color));
        transform: scaleX(0);
        transition: transform 0.3s ease;
        transform-origin: left;
    }

    .skill-card:hover::before {
        transform: scaleX(1);
    }

    .skill-card:hover {
        transform: translateY(-15px) scale(1.05);
        box-shadow: var(--glow-shadow-hover);
        border-color: var(--secondary-color);
    }

/* Scroll to Top Button */
.scroll-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 55px;
    height: 55px;
    background: linear-gradient(135deg, #6366f1, #a855f7);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(100px) scale(0.5);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--glow-shadow);
    z-index: 999;
}

    .scroll-top.visible {
        opacity: 1;
        visibility: visible;
        transform: translateY(0) scale(1);
        animation: bounce-in 0.5s ease;
    }

    .scroll-top:hover {
        transform: translateY(-8px) scale(1.15);
        box-shadow: var(--glow-shadow-hover);
        animation: pulse-glow 1.5s ease infinite;
    }

    .scroll-top:active {
        transform: translateY(-3px) scale(1.05);
    }

/* Footer */
footer {
    background: linear-gradient(135deg, var(--darker-bg) 0%, #111c2f 100%);
    color: white;
    text-align: center;
    padding: 3rem 0;
    position: relative;
    overflow: hidden;
    border-top: 1px solid var(--border-color);
}

    footer::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 4px;
        background: linear-gradient(90deg, #6366f1, #a855f7, #ec4899, #06b6d4);
        background-size: 300% auto;
        animation: gradient-shift 3s ease infinite;
    }

    footer p {
        opacity: 0.8;
        font-size: 1rem;
        animation: fadeInUp 0.8s ease;
    }

/* Page Layout */
.page {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main {
    flex: 1;
}

html {
    scroll-behavior: smooth;
}

/* Responsive */
@media (max-width: 768px) {
    section {
        padding: 4rem 0;
    }

    h2 {
        font-size: clamp(1.5rem, 3vw, 2.5rem);
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: linear-gradient(180deg, rgba(15, 23, 42, 0.98) 0%, rgba(30, 41, 59, 0.98) 100%);
        backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 6rem 2rem 2rem;
        box-shadow: -10px 0 40px rgba(0, 0, 0, 0.5);
        transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        gap: 0.5rem;
        border-left: 1px solid rgba(99, 102, 241, 0.2);
        overflow-y: auto;
    }

        .nav-links.active {
            right: 0;
            animation: slideInRight 0.4s ease;
        }

    .menu-toggle {
        display: flex;
    }

    .scroll-top {
        bottom: 1.5rem;
        right: 1.5rem;
        width: 50px;
        height: 50px;
        font-size: 1.3rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }

    section {
        padding: 3rem 0;
    }
}

/* ============================================
   SKILLS PAGE - FIXED STYLES
   ============================================ */

/* Skills Grid - Main Skills Section */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

/* Skill Card */
.skill-card {
    background: var(--card-bg);
    padding: 2.5rem;
    border-radius: 20px;
    text-align: center;
    box-shadow: var(--card-shadow);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
    animation: fadeInUp 0.8s ease;
}

    .skill-card::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 4px;
        background: linear-gradient(90deg, var(--primary-color), var(--secondary-color), var(--accent-color));
        transform: scaleX(0);
        transition: transform 0.3s ease;
        transform-origin: left;
    }

    .skill-card:hover::before {
        transform: scaleX(1);
    }

    .skill-card:hover {
        transform: translateY(-15px) scale(1.03);
        box-shadow: 0 20px 60px rgba(99, 102, 241, 0.4);
        border-color: var(--primary-color);
    }

/* Skill Icon */
.skill-icon {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    filter: grayscale(0.3);
    transition: all 0.3s ease;
    line-height: 1;
}

.skill-card:hover .skill-icon {
    filter: grayscale(0);
    transform: scale(1.1) rotateY(360deg);
}

/* Skill Title */
.skill-card h3 {
    color: var(--text-dark);
    margin-bottom: 1rem;
    font-size: 1.5rem;
    font-weight: 700;
}

/* Skill Description */
.skill-card p {
    color: var(--text-light);
    margin-bottom: 1.5rem;
    line-height: 1.7;
    font-size: 1rem;
}

/* Skill Bar */
.skill-bar {
    background: var(--card-bg-lighter);
    height: 12px;
    border-radius: 10px;
    overflow: hidden;
    position: relative;
    margin-top: 1.5rem;
}

.skill-progress {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 10px;
    transition: width 1.5s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

    .skill-progress::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
        animation: shimmer 2s infinite;
    }

@keyframes shimmer {
    0% {
        transform: translateX(-100%);
    }

    100% {
        transform: translateX(100%);
    }
}

/* Contact Items Grid */
.contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

/* Contact Item */
.contact-item {
    background: var(--card-bg);
    padding: 3rem 2rem;
    border-radius: 20px;
    text-align: center;
    box-shadow: var(--card-shadow);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
    cursor: pointer;
    animation: fadeInUp 0.8s ease;
}

    .contact-item::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(139, 92, 246, 0.1));
        opacity: 0;
        transition: opacity 0.3s ease;
    }

    .contact-item:hover::before {
        opacity: 1;
    }

    .contact-item:hover {
        transform: translateY(-15px) scale(1.05);
        box-shadow: 0 25px 70px rgba(99, 102, 241, 0.5);
        border-color: var(--primary-color);
    }

/* Responsive Fixes */
@media (max-width: 768px) {
    .skills-grid,
    .contact-info {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .skill-card,
    .contact-item {
        padding: 2rem 1.5rem;
    }

    .skill-icon {
        font-size: 3rem;
    }

    .skill-card h3 {
        font-size: 1.3rem;
    }
}

@media (max-width: 480px) {
    .skill-card,
    .contact-item {
        padding: 1.5rem 1rem;
    }

    .skill-icon {
        font-size: 2.5rem;
    }

    .skill-card h3 {
        font-size: 1.2rem;
    }
}
/* ============================================
   MOBILE HERO SECTION - IMPROVED
   ============================================ */

@media (max-width: 768px) {
    .hero {
        min-height: auto;
        padding: 4rem 0 2rem 0;
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    }

        .hero .container > div {
            flex-direction: column-reverse !important;
            gap: 2rem !important;
            align-items: center;
            text-align: center;
        }

    .hero-content {
        text-align: center !important;
        flex: 1 !important;
        min-width: unset !important;
    }

    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 0.8rem;
    }

    .hero h1 {
        font-size: 2rem;
        margin-bottom: 1rem;
        line-height: 1.3;
    }

    .hero-description {
        font-size: 1rem;
        margin-bottom: 1.5rem;
        max-width: 100%;
    }

    .cta-buttons {
        justify-content: center !important;
        flex-direction: column;
        gap: 1rem;
        width: 100%;
    }

    .cta-button {
        width: 100%;
        padding: 0.9rem 1.5rem;
        font-size: 1rem;
    }

    /* Profile Image */
    .hero [style*="width: 300px"] {
        width: 250px !important;
        height: 250px !important;
    }

    .hero div[style*="border-radius: 50%"] {
        width: 250px !important;
        height: 250px !important;
    }
}

@media (max-width: 640px) {
    .hero {
        padding: 3rem 0 1.5rem 0;
        min-height: auto;
    }

        .hero .container {
            padding: 0 1rem;
        }

            .hero .container > div {
                gap: 1.5rem !important;
            }

    .hero-subtitle {
        font-size: 0.9rem;
    }

    .hero h1 {
        font-size: 1.8rem;
        margin-bottom: 0.8rem;
    }

    .hero-description {
        font-size: 0.95rem;
        margin-bottom: 1.2rem;
    }

    .cta-buttons {
        gap: 0.8rem;
    }

    .cta-button {
        padding: 0.8rem 1.2rem;
        font-size: 0.95rem;
        border-radius: 40px;
    }

    /* Profile Image - Smaller */
    .hero [style*="width: 300px"] {
        width: 200px !important;
        height: 200px !important;
    }

    .hero div[style*="border-radius: 50%"] {
        width: 200px !important;
        height: 200px !important;
    }

    .hero [style*="border: 6px"] {
        border-width: 4px !important;
    }
}

/* ============================================
   ABOUT SECTION - MOBILE IMPROVEMENTS
   ============================================ */

@media (max-width: 768px) {
    /* Profile Image in About */
    .about-profile-image {
        width: 150px !important;
        height: 150px !important;
        margin: 0 auto 1.5rem !important;
    }

    /* Stats Grid */
    section [style*="grid-template-columns: repeat"] {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 1rem !important;
    }

    /* Tabs */
    section [style*="border-bottom: 2px solid"] {
        display: flex;
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    section button[style*="padding: 1rem 2rem"] {
        padding: 0.8rem 1rem !important;
        font-size: 0.9rem !important;
    }
}

@media (max-width: 640px) {
    /* Stats Grid - Single Column */
    section [style*="grid-template-columns: repeat"] {
        grid-template-columns: 1fr !important;
        gap: 1rem !important;
    }

    /* Profile Image - Smaller */
    .about-profile-image {
        width: 120px !important;
        height: 120px !important;
        margin: 0 auto 1rem !important;
    }

    /* Tabs - Smaller Buttons */
    section button[style*="padding: 1rem 2rem"] {
        padding: 0.6rem 0.8rem !important;
        font-size: 0.8rem !important;
    }

    /* Tab Content */
    section [style*="padding: 3rem"] {
        padding: 1.5rem !important;
    }

    section [style*="padding: 2rem"] {
        padding: 1rem !important;
    }
}

/* ============================================
   FEATURED PROJECTS - MOBILE IMPROVEMENTS
   ============================================ */

@media (max-width: 768px) {
    .hero {
        min-height: auto;
        padding: 4rem 0 2rem 0;
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    }

        .hero .container > div {
            flex-direction: column-reverse !important;
            gap: 2rem !important;
            align-items: center;
            text-align: center;
        }

    .hero-content {
        text-align: center !important;
        flex: 1 !important;
        min-width: unset !important;
    }

    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 0.8rem;
    }

    .hero h1 {
        font-size: 2rem;
        margin-bottom: 1rem;
        line-height: 1.3;
    }

    .hero-description {
        font-size: 1rem;
        margin-bottom: 1.5rem;
        max-width: 100%;
    }

    .cta-buttons {
        justify-content: center !important;
        flex-direction: column;
        gap: 1rem;
        width: 100%;
    }

    .cta-button {
        width: 100%;
        padding: 0.9rem 1.5rem;
        font-size: 1rem;
    }

    /* Profile Image - Fix for mobile */
    .hero [style*="clamp(200px"] {
        width: 220px !important;
        height: 220px !important;
        max-width: 85vw !important;
        max-height: 85vw !important;
    }

    .hero div[style*="border-radius: 50%"] img {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
        object-position: center !important;
    }
}

@media (max-width: 640px) {
    .hero {
        padding: 3rem 0 1.5rem 0;
        min-height: auto;
    }

        .hero .container {
            padding: 0 1rem;
        }

            .hero .container > div {
                gap: 1.5rem !important;
            }

    .hero-subtitle {
        font-size: 0.9rem;
    }

    .hero h1 {
        font-size: 1.8rem;
        margin-bottom: 0.8rem;
    }

    .hero-description {
        font-size: 0.95rem;
        margin-bottom: 1.2rem;
    }

    .cta-buttons {
        gap: 0.8rem;
    }

    .cta-button {
        padding: 0.8rem 1.2rem;
        font-size: 0.95rem;
        border-radius: 40px;
    }

    /* Profile Image - Smaller */
    .hero [style*="width: 300px"] {
        width: 200px !important;
        height: 200px !important;
    }

    .hero div[style*="border-radius: 50%"] {
        width: 200px !important;
        height: 200px !important;
    }

    .hero [style*="border: 6px"] {
        border-width: 4px !important;
    }
}

/* ============================================
   ABOUT SECTION - MOBILE IMPROVEMENTS
   ============================================ */

@media (max-width: 768px) {
    /* Profile Image in About */
    .about-profile-image {
        width: 150px !important;
        height: 150px !important;
        margin: 0 auto 1.5rem !important;
    }

    /* Stats Grid */
    section [style*="grid-template-columns: repeat"] {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 1rem !important;
    }

    /* Tabs */
    section [style*="border-bottom: 2px solid"] {
        display: flex;
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    section button[style*="padding: 1rem 2rem"] {
        padding: 0.8rem 1rem !important;
        font-size: 0.9rem !important;
    }
}

@media (max-width: 640px) {
    /* Stats Grid - Single Column */
    section [style*="grid-template-columns: repeat"] {
        grid-template-columns: 1fr !important;
        gap: 1rem !important;
    }

    /* Profile Image - Smaller */
    .about-profile-image {
        width: 120px !important;
        height: 120px !important;
        margin: 0 auto 1rem !important;
    }

    /* Tabs - Smaller Buttons */
    section button[style*="padding: 1rem 2rem"] {
        padding: 0.6rem 0.8rem !important;
        font-size: 0.8rem !important;
    }

    /* Tab Content */
    section [style*="padding: 3rem"] {
        padding: 1.5rem !important;
    }

    section [style*="padding: 2rem"] {
        padding: 1rem !important;
    }
}

/* ============================================
   FEATURED PROJECTS - MOBILE IMPROVEMENTS
   ============================================ */

@media (max-width: 768px) {
    section [style*="grid-template-columns: repeat(auto-fit, minmax(300px"] {
        grid-template-columns: 1fr !important;
        gap: 1.5rem !important;
    }

    section [style*="grid-template-columns: repeat(auto-fit, minmax(150px"] {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 1rem !important;
    }
}

@media (max-width: 640px) {
    section [style*="grid-template-columns: repeat(auto-fit, minmax(300px"] {
        grid-template-columns: 1fr !important;
        gap: 1rem !important;
    }

    section [style*="grid-template-columns: repeat(auto-fit, minmax(150px"] {
        grid-template-columns: 1fr !important;
        gap: 1rem !important;
    }

    /* Project Cards */
    section [style*="padding: 2rem"] {
        padding: 1.5rem !important;
    }

    section h3[style*="font-size: 1.5rem"] {
        font-size: 1.2rem !important;
    }

    section h3[style*="font-size: 1.4rem"] {
        font-size: 1.1rem !important;
    }
}

/* ============================================
   SKILLS SECTION - MOBILE IMPROVEMENTS
   ============================================ */

@media (max-width: 768px) {
    .skills-grid {
        grid-template-columns: 1fr !important;
        gap: 1.5rem !important;
    }

    .skill-card {
        padding: 1.5rem 1rem !important;
    }

    .skill-icon {
        font-size: 2.5rem !important;
    }

    .skill-card h3 {
        font-size: 1.2rem !important;
    }
}

@media (max-width: 640px) {
    .skills-grid {
        grid-template-columns: 1fr !important;
        gap: 1rem !important;
    }

    .skill-card {
        padding: 1rem !important;
    }

    .skill-icon {
        font-size: 2rem !important;
    }

    .skill-card h3 {
        font-size: 1.1rem !important;
    }

    .skill-card p {
        font-size: 0.95rem !important;
    }
}

/* ============================================
   CONTACT SECTION - MOBILE IMPROVEMENTS
   ============================================ */

@media (max-width: 768px) {
    .contact-info {
        grid-template-columns: 1fr !important;
        gap: 1.5rem !important;
    }

    .contact-item {
        padding: 1.5rem !important;
    }
}

@media (max-width: 640px) {
    .contact-info {
        grid-template-columns: 1fr !important;
        gap: 1rem !important;
    }

    .contact-item {
        padding: 1rem !important;
    }
}

/* ============================================
   TIMELINE - MOBILE IMPROVEMENTS
   ============================================ */

@media (max-width: 768px) {
    section [style*="padding-right: 3rem"] {
        padding-right: 0 !important;
        padding-left: 2rem !important;
    }

    section [style*="right: -2.75rem"] {
        right: auto !important;
        left: -2.75rem !important;
    }

    section [style*="right: 0"] {
        right: auto !important;
        left: 0 !important;
    }

    section [style*="position: absolute; right: 0"] {
        left: 0 !important;
        right: auto !important;
    }
}

/* ============================================
   CTA SECTION - MOBILE IMPROVEMENTS
   ============================================ */

@media (max-width: 768px) {
    section [style*="padding: 3rem"] {
        padding: 2rem 1rem !important;
    }

    section [style*="max-width: 800px"] {
        margin: 0 1rem !important;
        padding: 2rem 1rem !important;
    }

    section h2[style*="margin-bottom: 1rem"] {
        font-size: 1.8rem !important;
    }

    section p[style*="font-size: 1.2rem"] {
        font-size: 1rem !important;
    }
}

@media (max-width: 640px) {
    section [style*="max-width: 800px"] {
        margin: 0 0.5rem !important;
        padding: 1.5rem 1rem !important;
        border-radius: 20px !important;
    }

    section h2[style*="margin-bottom: 1rem"] {
        font-size: 1.5rem !important;
    }

    section p[style*="font-size: 1.2rem"] {
        font-size: 0.95rem !important;
    }
}