:root {
    --primary-color: #7b00ff;
    --primary-dark: #5900ff;
    --primary-light: #7b16ff;
    --primary-transparent: rgba(141, 24, 231, 0.1);
    --accent-color: #ffcc00;
    --text-light: #ffffff;
    --text-gray: #e0e0e0;
    --text-dark: #333333;
    --bg-dark: rgba(30, 0, 40, 0.7);
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Poppins', sans-serif;
    --font-accent: 'Playfair Display', serif;
}

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

html, body {
    max-width: 100%;
    overflow-x: hidden;
    scroll-behavior: smooth;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: var(--font-body);
    color: var(--text-light);
    background: linear-gradient(135deg, #d0a0ff 0%, #cb94ff 100%);
    line-height: 1.6;
}

/* Background Video */
.bg-video {
    position: fixed;
    top: 0; 
    left: 0;
    width: 100%; 
    height: 100%;
    object-fit: cover;
    z-index: -2;
    filter: brightness(0.3);
}

.video-overlay {
    position: fixed;
    top: 0; 
    left: 0;
    width: 100%; 
    height: 100%;
    /* backdrop-filter: blur(4px); */
    background: rgba(0, 183, 255, 0.119);
    z-index: -1;
}

/* Header */
.header {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 40px);
    max-width: 1200px;
    height: 70px;

    /* Glass effect */
    background: rgba(255, 255, 255, 0); /* thoda transparent */
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px); /* Safari support */

    border-radius: 40px;
    border: 1px solid rgba(255, 255, 255, 0.3);

    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 30px;

    z-index: 1000;
    transition: all 0.3s ease;
}


.logo img { 
    height: 100px; 
    transition: transform 0.3s ease; 
}
.logo img:hover { 
    transform: scale(1.05); 
}

/* Navigation */
.nav { 
    display: flex; 
    align-items: center; 
}
.nav a {
    margin: 0 22px;
    text-decoration: none;
    color: var(--text-light);
    font-family: var(--font-heading);
    font-weight: 500;
    font-size: 1rem;
    position: relative;
    padding: 5px 0;
    transition: color 0.3s ease;
}
.nav a::after {
    content: '';
    position: absolute;
    bottom: 0; 
    left: 0;
    width: 0; 
    height: 2px;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}
.nav a:hover::after, .nav a.active::after { 
    width: 100%; 
}
.nav a:hover { 
    color: var(--primary-light); 
}

/* Buttons */
.cv-btn, .btn-primary, .btn-secondary, .submit-btn, .view-all-btn {
    padding: 12px 28px;
    border-radius: 25px;
    font-family: var(--font-heading);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    text-decoration: none;
    display: inline-block;
    font-size: 1rem;
}

.cv-btn {
    background: transparent;
    color: var(--text-light);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 15px rgba(24, 145, 231, 0.2);
}
.cv-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(24, 34, 231, 0.4);
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--text-light);
    box-shadow: 0 6px 20px rgba(24, 31, 231, 0.3);
}
.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(24, 24, 231, 0.4);
}

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

/* Hamburger Menu */
.hamburger-menu {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px; 
    height: 21px;
    cursor: pointer;
}
.hamburger-menu span {
    width: 100%; 
    height: 3px;
    background-color: var(--text-light);
    border-radius: 2px;
    transition: all 0.3s ease;
}
.hamburger-menu.active span:nth-child(1) { 
    transform: rotate(45deg) translate(6px, 6px); 
}
.hamburger-menu.active span:nth-child(2) { 
    opacity: 0; 
}
.hamburger-menu.active span:nth-child(3) { 
    transform: rotate(-45deg) translate(6px, -6px); 
}

/* Hero Section */
.hero-section {
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 120px 20px 40px;
}
.hero-content {
    text-align: center;
    max-width: 800px;
    animation: fadeInUp 1s ease;
}
.typewriter-container { 
    margin-bottom: 20px; 
}
.hello-text {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 10px;
}
.typed-text { 
    color: var(--primary-color); 
}
.cursor {
    display: inline-block;
    animation: blink 1s infinite;
    color: var(--primary-color);
}
@keyframes blink { 
    0%,100%{opacity:1}50%{opacity:0} 
}
.developer-title {
    font-size: 1.8rem;
    color: var(--text-gray);
    margin-bottom: 30px;
    font-weight: 500;
}
.hero-description {
    font-size: 1.2rem;
    line-height: 1.8;
    color: var(--text-gray);
    margin-bottom: 40px;
    max-width: 600px;
    margin: 0 auto 40px;
}
.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

/* About Section */
.about {
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}
.about .bg-video { 
    filter: brightness(0.3); 
}
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 1;
}
.about-header {
    text-align: center;
    margin-bottom: 60px;
}
.section-subtitle {
    font-size: 1rem;
    color: #94a3b8;
    font-weight: 400;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 20px;
}
.section-main-title {
    font-size: 3.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, #ffffff 0%, #94a3b8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1.1;
}
.about-content {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 60px;
    align-items: start;
}

/* Profile Image */
.profile-image-wrapper { 
    position: relative; 
    margin-bottom: 40px; 
}
.image-container {
    position: relative;
    width: 350px; 
    height: 400px;
    margin: 0 auto;
    border-radius: 20px;
    overflow: hidden;
}
.profile-img {
    width: 100%; 
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}
.image-container:hover .profile-img { 
    transform: scale(1.05); 
}
.image-overlay {
    position: absolute;
    top: 0; 
    left: 0;
    width: 100%; 
    height: 100%;
    background: linear-gradient(45deg, rgba(141,24,231,0.1) 0%, transparent 100%);
    mix-blend-mode: overlay;
}
.image-frame {
    position: absolute;
    top: 0; 
    left: 0;
    width: 100%; 
    height: 100%;
    border: 2px solid transparent;
    border-image: linear-gradient(45deg, var(--primary-color), var(--primary-light)) 1;
    border-radius: 20px;
    animation: borderRotate 10s linear infinite;
}
@keyframes borderRotate {
    0% { border-image-source: linear-gradient(45deg, var(--primary-color), var(--primary-light)); }
    100% { border-image-source: linear-gradient(405deg, var(--primary-color), var(--primary-light)); }
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-top: 30px;
}
.stat-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 20px;
    text-align: center;
    transition: all 0.4s ease;
}
.stat-card:hover {
    transform: translateY(-5px);
    border-color: rgba(141, 24, 231, 0.3);
    box-shadow: 0 10px 30px rgba(141, 24, 231, 0.2);
}
.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 5px;
}
.stat-label {
    font-size: 0.9rem;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* About Right Content */
.description-box {
    background: rgba(255, 255, 255, 0);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.227);
    border-radius: 20px;
    padding: 30px;
    margin-bottom: 30px;
}
.main-description {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #e2e8f0;
}
.highlight { 
    color: var(--primary-color); 
    font-weight: 600; 
}
.tech { 
    color: var(--primary-light); 
    font-weight: 600; 
}

/* Info Grid */
.info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}
.info-card {
    background: rgba(255, 255, 255, 0);
    border: 1px solid rgba(255, 255, 255, 0.267);
    border-radius: 16px;
    padding: 20px;
    transition: all 0.3s ease;
}
.info-card:hover {
    transform: translateY(-5px);
    border-color: rgba(141, 24, 231, 0.3);
    background: rgba(141, 24, 231, 0.05);
}
.info-icon {
    font-size: 1.5rem;
    background: rgba(141, 24, 231, 0.15);
    width: 45px; 
    height: 45px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #d8c3ff;
    margin-bottom: 15px;
}
.info-title {
    font-size: 1.1rem;
    color: #ffffff;
    margin-bottom: 10px;
}
.info-text {
    color: #94a3b8;
    line-height: 1.6;
    font-size: 0.9rem;
}

/* Skills Section */
.compact-skills {
    padding: 80px 0;
    background: rgba(5, 1, 36, 0.223);
    position: relative;
    overflow: hidden;
}
.skills-header { 
    text-align: center; 
    margin-bottom: 50px; 
}
.skills-subtitle {
    font-size: 1rem;
    color: var(--primary-color);
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 15px;
}
.skills-title {
    font-size: 2.8rem;
    font-weight: 800;
    background: linear-gradient(90deg, #ffffff, #e2e8f0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 15px;
}
.skills-description {
    font-size: 1rem;
    color: #94a3b8;
    max-width: 500px;
    margin: 0 auto;
}
.compact-skills-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
    max-width: 1000px;
    margin: 0 auto;
}
.skill-card {
    background: rgba(255, 255, 255, 0);
    border: 1px solid rgba(255, 255, 255, 0.218);
    border-radius: 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 25px 15px;
    transition: all 0.3s ease;
    cursor: pointer;
    backdrop-filter: blur(10px);
}
.skill-card:hover {
    transform: translateY(-8px);
    border-color: rgba(141, 24, 231, 0.3);
    box-shadow: 0 15px 30px rgba(141, 24, 231, 0.2);
}
.skill-icon {
    font-size: 2.5rem;
    color: #ffffff;
    margin-bottom: 15px;
    transition: all 0.3s ease;
}
.skill-card:hover .skill-icon {
    transform: scale(1.2);
    color: var(--primary-light);
}
.skill-name {
    font-size: 1rem;
    font-weight: 600;
    color: #e2e8f0;
    text-align: center;
}

/* Projects Section */
.projects {
    padding: 80px 0;
    background: rgba(15, 0, 35, 0.227);
}
.section-header { 
    text-align: center; 
    margin-bottom: 50px; 
}
.section-title {
    font-size: 2.8rem;
    font-weight: 700;
    background: linear-gradient(90deg, #8d18e7, #6f00ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 10px;
}
.section-subtitle {
    font-size: 1.1rem;
    color: #a5a5c7;
    max-width: 500px;
    margin: 0 auto;
}
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}
.project-card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    transition: all 0.4s ease;
    border: 1px solid rgba(255, 255, 255, 0.05);
}
.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(141, 24, 231, 0.2);
    border-color: rgba(141, 24, 231, 0.3);
}
.project-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}
.project-image img {
    width: 100%; 
    height: 100%;
    object-fit: cover;
    transition: all 0.5s ease;
}
.project-card:hover .project-image img {
    transform: scale(1.05);
    filter: brightness(0.8);
}
.project-badge {
    position: absolute;
    top: 15px; 
    right: 15px;
    background: linear-gradient(90deg, var(--primary-color), var(--primary-dark));
    color: white;
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 0.75rem;
    font-weight: 600;
    z-index: 2;
}
.project-links {
    position: absolute;
    top: 0; 
    left: 0;
    width: 100%; 
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    opacity: 0;
    transition: all 0.4s ease;
    background: rgba(0, 0, 0, 0.7);
}
.project-card:hover .project-links { 
    opacity: 1; 
}
.github-link, .live-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}
.github-link {
    background: var(--primary-color);
    color: white;
    border: 2px solid var(--primary-color);
}
.github-link:hover { 
    background: transparent; 
}
.live-link {
    background: var(--primary-light);
    color: white;
    border: 2px solid var(--primary-light);
}
.live-link:hover { 
    background: transparent; 
}
.project-info {
    padding: 25px;
    
}
.project-info h3 {
    font-size: 1.3rem;
    color: #ffffff;
    margin-bottom: 12px;
}
.project-info p {
    color: #b0b0d0;
    line-height: 1.6;
    margin-bottom: 20px;
    font-size: 0.95rem;
}
.tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.tech-stack span {
    background: rgba(255, 255, 255, 0.08);
    color: #a5a5c7;
    padding: 5px 12px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 500;
}

/* Contact Section */
.contact {
    padding: 80px 0 40px;
    background: rgba(5, 1, 46, 0.145);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}
.contact-wrapper {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 40px;
    margin-bottom: 40px;
}
.contact-form-container {
    background: rgba(255, 255, 255, 0.016);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 30px;
    border: 1px solid rgba(255, 255, 255, 0.247);
}
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}
.input-group {
    position: relative;
    margin-bottom: 25px;
}
.input-group input, .input-group textarea {
    width: 100%;
    padding: 12px 0;
    font-size: 1rem;
    background: transparent;
    border: none;
    outline: none;
    color: #ffffff;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}
.input-group textarea { 
    resize: vertical; 
    min-height: 100px; 
}
.input-group label {
    position: absolute;
    top: 12px; 
    left: 0;
    color: #a5a5c7;
    font-size: 0.95rem;
    transition: 0.3s ease;
}
.input-group input:focus ~ label,
.input-group input:valid ~ label,
.input-group textarea:focus ~ label,
.input-group textarea:valid ~ label {
    top: -15px;
    font-size: 0.85rem;
    color: var(--primary-color);
}
.input-group input:focus,
.input-group textarea:focus {
    border-bottom-color: var(--primary-color);
}
.submit-btn {
    background: linear-gradient(90deg, var(--primary-color), var(--primary-dark));
    color: white;
    padding: 14px 32px;
    border-radius: 50px;
    font-size: 1rem;
    box-shadow: 0 5px 15px rgba(141, 24, 231, 0.3);
}
.submit-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(141, 24, 231, 0.4);
}
.contact-info { 
    display: flex; 
    flex-direction: column; 
    gap: 20px; 
}
.info-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 20px;
    background: rgba(15, 0, 53, 0.185);
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
}
.info-item:hover {
    transform: translateY(-5px);
    border-color: rgba(141, 24, 231, 0.3);
}
.info-icon {
    width: 45px; 
    height: 45px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: white;
}
.info-content h4 {
    font-size: 1.1rem;
    color: #ffffff;
    margin-bottom: 5px;
}
.info-content p { 
    color: #a5a5c7; 
    font-size: 0.95rem; 
}
.social-links-compact {
    display: flex;
    gap: 15px;
    padding: 20px;
    justify-content: center;
    background: rgba(255, 255, 255, 0);
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.204);
}
.social-icon {
    width: 45px; 
    height: 45px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #a5a5c7;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    text-decoration: none;
}
.social-icon:hover {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    transform: translateY(-3px);
}
.footer {
    text-align: center;
    padding: 25px 0 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    margin-top: 30px;
}
.footer p { 
    color: #a5a5c7; 
    font-size: 0.9rem; 
}
.creator {
    color: var(--primary-color);
    font-weight: 600;
    background: linear-gradient(90deg, var(--primary-color), var(--primary-dark));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

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

/* =============== MOBILE RESPONSIVENESS =============== */

/* Tablet (1024px and below) */
@media (max-width: 1024px) {
    .about-content { 
        grid-template-columns: 1fr; 
        gap: 40px; 
    }
    .compact-skills-grid { 
        grid-template-columns: repeat(4, 1fr); 
    }
    
    /* Text size adjustments */
    .hello-text {
        font-size: 3rem;
    }
    .section-main-title {
        font-size: 3rem;
    }
    .skills-title {
        font-size: 2.5rem;
    }
    .section-title {
        font-size: 2.5rem;
    }
}

/* Mobile (768px and below) */
@media (max-width: 768px) {
    /* Prevent horizontal scroll */
    body {
        overflow-x: hidden;
        position: relative;
    }
    
    /* Header */
    .header {
        position: fixed;
        top: 10px;
        left: 50%;
        transform: translateX(-50%);
        width: 95%;
        max-width: 95%;
        height: 60px;
        padding: 0 15px;
        border-radius: 30px;
        backdrop-filter: blur(15px);
        background: rgba(10, 0, 20, 0);
        border: 1px solid rgba(255, 255, 255, 0.3);
    }
    
    /* Logo */
    .logo img { 
        height: 80px; 
    }
    
    /* Navigation */
    .nav {
        position: fixed;
        top: 0; 
        right: -100%;
        width: 80%; 
        height: 100vh;
        background: rgba(5, 0, 25, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: flex-start;
        padding-top: 100px;
        transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 999;
        border-left: 1px solid rgba(24, 52, 231, 0.2);
    }
    .nav.active { 
        right: 0; 
    }
    .nav a {
        margin: 15px 0;
        font-size: 1.1rem; /* Smaller font */
        padding: 12px 25px;
        width: 85%;
        text-align: center;
        border-radius: 10px;
        transition: all 0.3s ease;
    }
    .nav a:hover, .nav a.active {
        background: linear-gradient(90deg, var(--primary-color), var(--primary-dark));
        transform: translateX(-5px);
        color: white;
    }
    
    /* Show hamburger, hide CV button */
    .hamburger-menu { 
        display: flex; 
        z-index: 1000;
    }
    .cv-btn { 
        display: none; 
    }
    .mobile-cv { 
        display: inline !important; 
        background: linear-gradient(90deg, var(--primary-color), var(--primary-dark));
        margin-top: 20px;
        padding: 12px 25px;
        border-radius: 25px;
    }
    
    /* Hero Section - Smaller text */
    .hello-text {
        font-size: 2.3rem; /* Smaller for mobile */
        line-height: 1.2;
    }
    .developer-title {
        font-size: 1.3rem; /* Smaller for mobile */
        margin-bottom: 20px;
    }
    .hero-description {
        font-size: 1rem; /* Smaller for mobile */
        padding: 0 10px;
    }
    .hero-buttons {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }
    .btn-primary, .btn-secondary {
        width: 100%;
        max-width: 280px;
        padding: 14px 25px;
        font-size: 0.95rem; /* Smaller font */
    }
    
    /* About Section */
    .section-main-title {
        font-size: 2.2rem; /* Smaller for mobile */
    }
    .section-subtitle {
        font-size: 0.85rem; /* Smaller for mobile */
        letter-spacing: 2px;
    }
    .image-container {
        width: 280px;
        height: 320px;
    }
    
    /* Stats */
    .stat-number {
        font-size: 2rem; /* Smaller for mobile */
    }
    .stat-label {
        font-size: 0.8rem; /* Smaller for mobile */
    }
    
    /* Info Cards */
    .info-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    .info-icon {
        width: 40px;
        height: 40px;
        font-size: 1.2rem; /* Smaller icons */
    }
    .info-title {
        font-size: 1rem; /* Smaller for mobile */
    }
    .info-text {
        font-size: 0.85rem; /* Smaller for mobile */
    }
    
    /* Skills Section */
    .compact-skills-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 15px;
    }
    .skills-title {
        font-size: 2rem; /* Smaller for mobile */
    }
    .skills-description {
        font-size: 0.9rem; /* Smaller for mobile */
        padding: 0 15px;
    }
    .skill-icon {
        font-size: 2rem; /* Smaller icons */
    }
    .skill-name {
        font-size: 0.9rem; /* Smaller for mobile */
    }
    
    /* Projects Section */
    .projects-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    .section-title {
        font-size: 2rem; /* Smaller for mobile */
    }
    .section-subtitle {
        font-size: 0.9rem; /* Smaller for mobile */
    }
    .project-info h3 {
        font-size: 1.2rem; /* Smaller for mobile */
    }
    .project-info p {
        font-size: 0.9rem; /* Smaller for mobile */
    }
    
    /* Contact Section */
    .contact-wrapper {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    .form-row {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    .input-group label {
        font-size: 0.9rem; /* Smaller for mobile */
    }
    .input-group input, .input-group textarea {
        font-size: 0.95rem; /* Smaller for mobile */
    }
    .info-content h4 {
        font-size: 1rem; /* Smaller for mobile */
    }
    .info-content p {
        font-size: 0.85rem; /* Smaller for mobile */
    }
    .social-icon {
        width: 40px;
        height: 40px;
        font-size: 1rem; /* Smaller icons */
    }
}

/* Small Mobile (576px and below) */
@media (max-width: 576px) {
    /* Even smaller text for very small screens */
    .hello-text {
        font-size: 1.9rem;
    }
    .developer-title {
        font-size: 1.1rem;
    }
    .hero-description {
        font-size: 0.9rem;
    }
    
    .section-main-title {
        font-size: 1.8rem;
    }
    
    .image-container {
        width: 250px;
        height: 280px;
    }
    
    .compact-skills-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    
    .skill-icon {
        font-size: 1.8rem;
    }
    
    .project-image {
        height: 180px;
    }
    
    .footer p {
        font-size: 0.8rem;
    }
    
    /* Container padding for very small screens */
    .container {
        padding: 0 12px;
    }
    
    /* Header adjustments */
    .header {
        width: 92%;
        padding: 0 12px;
    }
    
    /* Navigation */
    .nav {
        width: 85%;
    }
    .nav a {
        font-size: 1rem;
        padding: 10px 20px;
    }
    .hero-section{
        min-height: 60vh;
    }
}

/* Extra Small Mobile (375px and below) */
@media (max-width: 375px) {
    .hello-text {
        font-size: 1.7rem;
    }
    
    .btn-primary, .btn-secondary {
        font-size: 0.9rem;
        padding: 12px 20px;
    }
    
    .compact-skills-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .skill-card {
        padding: 20px 10px;
    }
    
    .project-info {
        padding: 20px;
    }
}

/* Smooth scrolling and touch improvements */
@media (hover: none) and (pointer: coarse) {
    /* Better touch targets */
    .nav a, 
    .btn-primary, 
    .btn-secondary,
    .skill-card,
    .info-card,
    .social-icon {
        min-height: 44px;
        min-width: 44px;
    }
    
    /* Remove hover effects on touch devices */
    .nav a:hover::after {
        width: 0;
    }
    
    /* Improve button touch targets */
    .hero-buttons a {
        padding: 16px 25px;
    }
}

/* Prevent content shift when scrollbar appears */
@media (min-width: 769px) {
    html {
        margin-left: calc(100vw - 100%);
        margin-right: 0;
    }
}
