/* PWA and Mobile-Specific Optimizations */
html {
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

/* Allow text selection for content areas */
p, h1, h2, h3, h4, h5, h6, span, li {
    -webkit-user-select: text;
    -moz-user-select: text;
    -ms-user-select: text;
    user-select: text;
}

/* Smooth scrolling for all browsers */
html {
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #6366f1;
    --secondary-color: #8b5cf6;
    --accent-color: #f59e0b;
    --text-primary: #1f2937;
    --text-secondary: #6b7280;
    --text-light: #ffffff;
    --bg-primary: #ffffff;
    --bg-secondary: #f9fafb;
    --bg-dark: #111827;
    --bg-gradient: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    --shadow-soft: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-medium: 0 10px 25px -3px rgba(0, 0, 0, 0.1);
    --shadow-strong: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    --border-radius: 12px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --font-family: 'Poppins', sans-serif;
}

body {
    font-family: var(--font-family);
    line-height: 1.6;
    color: var(--text-primary);
    overflow-x: hidden;
}

/* Mobile viewport height fix */
@supports (-webkit-touch-callout: none) {
    .hero {
        min-height: calc(var(--vh, 1vh) * 100);
    }
}

/* Mobile device specific styles */
.mobile-device .hero {
    min-height: calc(var(--vh, 1vh) * 100);
}

.mobile-device .navbar {
    transition: transform 0.3s ease-in-out;
}

/* Preloader */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-gradient);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    transition: opacity 0.5s ease-out;
}

.loader {
    text-align: center;
}

.loader-text {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
}

.letter {
    font-size: 3rem;
    font-weight: 700;
    color: var(--text-light);
    animation: letterFloat 2s ease-in-out infinite;
}

.letter:nth-child(1) { animation-delay: 0s; }
.letter:nth-child(2) { animation-delay: 0.1s; }
.letter:nth-child(3) { animation-delay: 0.2s; }
.letter:nth-child(4) { animation-delay: 0.3s; }
.letter:nth-child(5) { animation-delay: 0.4s; }

.loader-progress {
    width: 200px;
    height: 4px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background: var(--text-light);
    border-radius: 2px;
    animation: progressBar 2s ease-in-out infinite;
}

@keyframes letterFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

@keyframes progressBar {
    0% { width: 0%; }
    100% { width: 100%; }
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    z-index: 1000;
    transition: var(--transition);
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: var(--shadow-soft);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.nav-logo .logo-text {
    font-size: 1.8rem;
    font-weight: 700;
    background: var(--bg-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 40px;
}

.nav-link {
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 500;
    position: relative;
    transition: var(--transition);
}

.nav-link::before {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 3px;
    background: var(--bg-gradient);
    border-radius: 2px;
    transition: var(--transition);
}

.nav-link:hover::before,
.nav-link.active::before {
    width: 100%;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
}

.bar {
    width: 25px;
    height: 3px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: var(--transition);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="%23e2e8f0" opacity="0.5"/><circle cx="75" cy="75" r="1" fill="%23cbd5e1" opacity="0.3"/><circle cx="50" cy="10" r="0.5" fill="%2394a3b8" opacity="0.4"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
    z-index: 0;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 1;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.hero-text {
    animation: slideInLeft 1s ease-out;
}

.hero-title {
    margin-bottom: 30px;
}

.title-line {
    display: block;
    font-size: 1.2rem;
    color: var(--text-secondary);
    font-weight: 400;
    margin-bottom: 10px;
}

.title-main {
    display: block;
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 10px;
    background: var(--bg-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.title-sub {
    display: block;
    font-size: 1.5rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.hero-description {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 40px;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    margin-bottom: 40px;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 30px;
    border-radius: var(--border-radius);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.btn-primary {
    background: var(--bg-gradient);
    color: var(--text-light);
    box-shadow: var(--shadow-medium);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-strong);
}

.btn-secondary {
    background: transparent;
    color: var(--text-primary);
    border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
    background: var(--primary-color);
    color: var(--text-light);
}

.hero-visual {
    display: flex;
    justify-content: center;
    animation: slideInRight 1s ease-out;
}

.profile-card {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.profile-image {
    width: 300px;
    height: 300px;
    position: relative;
    z-index: 2;
}

.image-placeholder {
    width: 100%;
    height: 100%;
    background: var(--bg-gradient);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 80px;
    color: var(--text-light);
    box-shadow: var(--shadow-strong);
}

.profile-ring {
    position: absolute;
    top: -20px;
    left: -20px;
    width: 340px;
    height: 340px;
    border: 3px solid var(--primary-color);
    border-radius: 50%;
    border-top-color: transparent;
    animation: rotate 10s linear infinite;
}

.floating-elements {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.float-element {
    position: absolute;
    width: 60px;
    height: 60px;
    background: var(--bg-primary);
    border-radius: var(--border-radius);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 24px;
    box-shadow: var(--shadow-medium);
    animation: float 3s ease-in-out infinite;
}

.float-element:nth-child(1) {
    top: 20%;
    right: -10%;
    color: #e34f26;
    animation-delay: 0s;
}

.float-element:nth-child(2) {
    top: 60%;
    right: -5%;
    color: #1572b6;
    animation-delay: 0.5s;
}

.float-element:nth-child(3) {
    bottom: 20%;
    left: -10%;
    color: #f7df1e;
    animation-delay: 1s;
}

.float-element:nth-child(4) {
    top: 30%;
    left: -5%;
    color: #239120;
    animation-delay: 1.5s;
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
}

.scroll-arrow {
    width: 30px;
    height: 30px;
    border-bottom: 2px solid var(--text-secondary);
    border-right: 2px solid var(--text-secondary);
    transform: rotate(45deg);
}

/* Section Styles */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

section {
    padding: 100px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 80px;
}

.section-tag {
    display: inline-block;
    padding: 8px 20px;
    background: rgba(99, 102, 241, 0.1);
    color: var(--primary-color);
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 20px;
}

.section-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--text-primary);
}

.section-subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

/* About Section */
.about {
    background: var(--bg-secondary);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.text-block {
    margin-bottom: 40px;
}

.text-block h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--text-primary);
}

.text-block p {
    color: var(--text-secondary);
    line-height: 1.8;
}

.achievement-cards {
    display: grid;
    gap: 20px;
}

.achievement-card {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 25px;
    background: var(--bg-primary);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-soft);
    transition: var(--transition);
}

.achievement-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
}

.achievement-icon {
    width: 60px;
    height: 60px;
    background: var(--bg-gradient);
    border-radius: var(--border-radius);
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--text-light);
    font-size: 1.5rem;
}

.achievement-info h4 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 5px;
    color: var(--text-primary);
}

.achievement-info p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.stats-container {
    display: grid;
    gap: 40px;
}

.stat-item {
    text-align: center;
    padding: 40px 30px;
    background: var(--bg-primary);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-soft);
    transition: var(--transition);
}

.stat-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    background: var(--bg-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 10px;
}

.stat-label {
    color: var(--text-secondary);
    font-weight: 500;
}

/* Skills Section */
.skills {
    max-width: 100%;
    overflow-x: hidden;
}

.skills .container {
    max-width: 1200px;
    padding: 0 20px;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px;
    max-width: 100%;
    width: 100%;
}

.skill-category {
    padding: 40px;
    background: var(--bg-primary);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-soft);
    transition: var(--transition);
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    box-sizing: border-box;
}

.skill-category:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
}

.category-title {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 30px;
    color: var(--text-primary);
    word-wrap: break-word;
    max-width: 100%;
}

.category-title i {
    color: var(--primary-color);
    flex-shrink: 0;
}

.skills-list {
    display: grid;
    gap: 25px;
    width: 100%;
    max-width: 100%;
}

.skill-item {
    display: grid;
    gap: 10px;
    width: 100%;
    max-width: 100%;
}

.skill-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 100%;
}

.skill-name {
    font-weight: 600;
    color: var(--text-primary);
    flex: 1;
}

.skill-level {
    font-weight: 600;
    color: var(--primary-color);
    flex-shrink: 0;
}

.skill-bar {
    height: 8px;
    background: rgba(99, 102, 241, 0.1);
    border-radius: 4px;
    overflow: hidden;
    width: 100%;
    max-width: 100%;
}

.skill-progress {
    height: 100%;
    background: var(--bg-gradient);
    border-radius: 4px;
    width: 0;
    transition: width 1s ease-out;
    max-width: 100%;
}

/* Experience Section */
.experience {
    background: var(--bg-secondary);
    overflow-x: hidden;
}

.experience .container {
    max-width: 1200px;
    padding: 0 20px;
}

.timeline {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    padding: 0;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--bg-gradient);
    transform: translateX(-50%);
}

.timeline-item {
    position: relative;
    margin-bottom: 50px;
    width: 50%;
    padding: 0 40px;
    box-sizing: border-box;
}

.timeline-item:nth-child(even) {
    left: 50%;
}

.timeline-item:nth-child(odd) {
    left: 0;
}

.timeline-content {
    position: relative;
    background: var(--bg-primary);
    padding: 35px 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-soft);
    transition: var(--transition);
    width: 100%;
    max-width: 100%;
    word-wrap: break-word;
    overflow-wrap: break-word;
    box-sizing: border-box;
}

.timeline-content:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
}

.timeline-icon {
    position: absolute;
    top: 50%;
    width: 60px;
    height: 60px;
    background: var(--bg-gradient);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--text-light);
    font-size: 1.5rem;
    transform: translateY(-50%);
}

.timeline-item:nth-child(odd) .timeline-icon {
    right: -80px;
}

.timeline-item:nth-child(even) .timeline-icon {
    left: -80px;
}

.timeline-info h3 {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--text-primary);
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
    line-height: 1.3;
    letter-spacing: 0.5px;
}

.timeline-date {
    display: inline-block;
    padding: 6px 18px;
    background: rgba(99, 102, 241, 0.1);
    color: var(--primary-color);
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 18px;
    word-wrap: break-word;
    letter-spacing: 0.3px;
}

.timeline-info p {
    color: var(--text-secondary);
    line-height: 1.8;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
    text-align: left;
    margin: 0;
    font-size: 1rem;
    letter-spacing: 0.3px;
}

/* Contact Section */
.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: start;
}

.contact-info {
    display: grid;
    gap: 30px;
}

.contact-card {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 30px;
    background: var(--bg-primary);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-soft);
    transition: var(--transition);
}

.contact-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
}

.contact-icon {
    width: 60px;
    height: 60px;
    background: var(--bg-gradient);
    border-radius: var(--border-radius);
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--text-light);
    font-size: 1.5rem;
}

.contact-details h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 5px;
    color: var(--text-primary);
}

.contact-details p {
    color: var(--text-secondary);
}

.form {
    display: grid;
    gap: 25px;
}

.form-group {
    display: grid;
    gap: 8px;
}

.form-group label {
    font-weight: 600;
    color: var(--text-primary);
}

.form-group input,
.form-group textarea {
    padding: 15px;
    border: 2px solid #e5e7eb;
    border-radius: var(--border-radius);
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.full-width {
    width: 100%;
}

/* Footer */
.footer {
    background: var(--bg-dark);
    color: var(--text-light);
    padding: 60px 0 30px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
}

.footer-info h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 10px;
    background: var(--bg-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.footer-info p {
    color: #9ca3af;
}

.social-links {
    display: flex;
    gap: 20px;
}

.social-link {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--text-light);
    text-decoration: none;
    font-size: 1.2rem;
    transition: var(--transition);
}

.social-link:hover {
    background: var(--primary-color);
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #9ca3af;
}

/* Animations */
@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-100px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(100px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-30px); }
    60% { transform: translateY(-15px); }
}

/* Mobile-First Responsive Design */
@media (max-width: 1024px) {
    .nav-container {
        padding: 0 30px;
    }
    
    .hero-content {
        grid-template-columns: 1fr;
        gap: 60px;
        text-align: center;
    }
    
    .about-content,
    .contact-content {
        grid-template-columns: 1fr;
        gap: 60px;
    }
    
    .skills-grid {
        grid-template-columns: 1fr;
        gap: 30px;
        max-width: 100%;
        width: 100%;
    }
    
    .skill-category {
        padding: 35px 30px;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }
}

@media (max-width: 768px) {
    .hamburger {
        display: flex;
        z-index: 1001;
    }
    
    .nav-logo .logo-text {
        font-size: 1.4rem;
    }
    
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 0;
        flex-direction: column;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(20px);
        width: 100%;
        height: 100vh;
        text-align: center;
        transition: 0.3s ease;
        box-shadow: var(--shadow-medium);
        padding-top: 100px;
        gap: 40px;
        z-index: 1000;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-link {
        font-size: 1.2rem;
        padding: 15px 0;
        display: block;
        border-bottom: 1px solid rgba(0,0,0,0.1);
        margin: 0 30px;
    }
    
    .hero {
        padding-top: 80px;
        min-height: 100vh;
        display: flex;
        align-items: center;
    }
    
    .hero-container {
        width: 100%;
        max-width: 100%;
        padding: 0 15px;
    }
    
    .hero-content {
        display: flex;
        flex-direction: column;
        gap: 30px;
        text-align: center;
        align-items: center;
        padding: 20px 0;
        max-width: 100%;
    }
    
    .hero-text {
        order: 2;
        width: 100%;
        max-width: 100%;
    }
    
    .hero-visual {
        order: 1;
        width: 100%;
        max-width: 100%;
        display: flex;
        justify-content: center;
    }
    
    .hero-title {
        margin-bottom: 25px;
    }
    
    .title-line {
        font-size: 1.1rem;
        margin-bottom: 8px;
        display: block;
    }
    
    .title-main {
        font-size: 2.5rem;
        line-height: 1.2;
        margin-bottom: 8px;
        display: block;
        word-wrap: break-word;
    }
    
    .title-sub {
        font-size: 1.3rem;
        display: block;
        line-height: 1.3;
    }
    
    .hero-description {
        font-size: 1.05rem;
        margin-bottom: 30px;
        line-height: 1.7;
        max-width: 100%;
    }
    
    .hero-buttons {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 15px;
        width: 100%;
        max-width: 320px;
        margin: 0 auto;
    }
    
    .btn {
        width: 100%;
        max-width: 280px;
        justify-content: center;
        padding: 14px 25px;
        font-size: 1rem;
    }
    
    .profile-card {
        max-width: 300px;
        margin: 0 auto;
    }
    
    .profile-image {
        width: 280px;
        height: 280px;
    }
    
    .profile-ring {
        width: 320px;
        height: 320px;
        top: -20px;
        left: -20px;
    }
    
    .float-element {
        width: 55px;
        height: 55px;
        font-size: 22px;
    }
    
    .section-header {
        margin-bottom: 50px;
    }
    
    .section-title {
        font-size: 2rem;
        margin-bottom: 15px;
    }
    
    .section-subtitle {
        font-size: 1rem;
    }
    
    .achievement-cards {
        gap: 15px;
    }
    
    .achievement-card {
        padding: 20px;
    }
    
    .stats-container {
        gap: 20px;
    }
    
    .stat-item {
        padding: 30px 20px;
    }
    
    .stat-number {
        font-size: 2.5rem;
    }
    
    .skill-category {
        padding: 30px 25px;
    }
    
    .category-title {
        font-size: 1.3rem;
        margin-bottom: 25px;
    }
    
    .timeline::before {
        left: 20px;
    }
    
    .timeline-item {
        width: 100%;
        left: 50px !important;
        margin-bottom: 40px;
        padding: 0 20px;
        max-width: calc(100% - 70px);
        box-sizing: border-box;
    }
    
    .timeline-icon {
        left: -65px !important;
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
    
    .timeline-content {
        padding: 25px 20px;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }
    
    .timeline-info h3 {
        font-size: 1.3rem;
        line-height: 1.3;
        margin-bottom: 10px;
        letter-spacing: 0.3px;
    }
    
    .timeline-date {
        font-size: 0.85rem;
        padding: 5px 14px;
        margin-bottom: 15px;
    }
    
    .timeline-info p {
        font-size: 0.95rem;
        line-height: 1.7;
        letter-spacing: 0.2px;
    }
    
    .contact-info {
        gap: 20px;
    }
    
    .contact-card {
        padding: 25px 20px;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 30px;
        text-align: center;
    }
    
    .social-links {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .nav-container {
        padding: 0 20px;
        height: 70px;
    }
    
    .nav-logo .logo-text {
        font-size: 1.2rem;
    }
    
    .nav-menu {
        padding-top: 80px;
        gap: 30px;
    }
    
    .hero-container,
    .container {
        padding: 0 20px;
    }
    
    section {
        padding: 60px 0;
    }
    
    .hero {
        padding-top: 70px;
    }
    
    .title-line {
        font-size: 0.9rem;
    }
    
    .title-main {
        font-size: 1.8rem;
        margin-bottom: 8px;
    }
    
    .title-sub {
        font-size: 1rem;
    }
    
    .hero-description {
        font-size: 0.95rem;
        line-height: 1.6;
    }
    
    .btn {
        padding: 12px 25px;
        font-size: 0.9rem;
        max-width: 250px;
    }
    
    .profile-image {
        width: 220px;
        height: 220px;
    }
    
    .profile-ring {
        width: 260px;
        height: 260px;
        top: -20px;
        left: -20px;
    }
    
    .image-placeholder {
        font-size: 60px;
    }
    
    .float-element {
        width: 45px;
        height: 45px;
        font-size: 18px;
    }
    
    .section-tag {
        font-size: 0.8rem;
        padding: 6px 16px;
    }
    
    .section-title {
        font-size: 1.6rem;
        line-height: 1.3;
    }
    
    .section-subtitle {
        font-size: 0.9rem;
    }
    
    .text-block h3 {
        font-size: 1.3rem;
    }
    
    .text-block p {
        font-size: 0.9rem;
        line-height: 1.7;
    }
    
    .achievement-card {
        padding: 18px 15px;
        gap: 15px;
    }
    
    .achievement-icon {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
    
    .achievement-info h4 {
        font-size: 1rem;
    }
    
    .achievement-info p {
        font-size: 0.8rem;
    }
    
    .stat-item {
        padding: 25px 15px;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .stat-label {
        font-size: 0.9rem;
    }
    
    .skill-category {
        padding: 25px 20px;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }
    
    .category-title {
        font-size: 1.2rem;
        gap: 10px;
        word-wrap: break-word;
    }
    
    .skills-list {
        width: 100%;
    }
    
    .skill-item {
        width: 100%;
        max-width: 100%;
    }
    
    .skill-info {
        width: 100%;
        max-width: 100%;
    }
    
    .skill-name {
        font-size: 0.9rem;
    }
    
    .skill-level {
        font-size: 0.8rem;
    }
    
    .timeline-item {
        left: 45px !important;
        max-width: calc(100% - 65px);
        padding: 0 15px;
    }
    
    .timeline-icon {
        left: -60px !important;
        width: 45px;
        height: 45px;
        font-size: 1rem;
    }
    
    .timeline-content {
        padding: 20px 15px;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }
    
    .timeline-info h3 {
        font-size: 1.15rem;
        line-height: 1.3;
        margin-bottom: 8px;
        letter-spacing: 0.2px;
    }
    
    .timeline-date {
        font-size: 0.8rem;
        padding: 4px 12px;
        margin-bottom: 12px;
    }
    
    .timeline-info p {
        font-size: 0.9rem;
        line-height: 1.6;
        letter-spacing: 0.1px;
    }
    
    .contact-card {
        padding: 20px 15px;
        gap: 15px;
    }
    
    .contact-icon {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
    
    .contact-details h3 {
        font-size: 1rem;
    }
    
    .contact-details p {
        font-size: 0.9rem;
    }
    
    .form-group label {
        font-size: 0.9rem;
    }
    
    .form-group input,
    .form-group textarea {
        padding: 12px;
        font-size: 0.9rem;
    }
    
    .footer {
        padding: 40px 0 20px;
    }
    
    .footer-info h3 {
        font-size: 1.3rem;
    }
    
    .footer-info p {
        font-size: 0.9rem;
    }
    
    .social-link {
        width: 45px;
        height: 45px;
        font-size: 1.1rem;
    }
    
    .footer-bottom p {
        font-size: 0.8rem;
    }
}

@media (max-width: 360px) {
    .hero-container,
    .container {
        padding: 0 15px;
    }
    
    .title-main {
        font-size: 1.6rem;
    }
    
    .section-title {
        font-size: 1.4rem;
    }
    
    .profile-image {
        width: 200px;
        height: 200px;
    }
    
    .profile-ring {
        width: 240px;
        height: 240px;
    }
    
    .achievement-card {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
    
    .timeline-item {
        left: 35px !important;
        max-width: calc(100% - 55px);
        padding: 0 10px;
    }
    
    .timeline-icon {
        left: -50px !important;
        width: 40px;
        height: 40px;
        font-size: 0.9rem;
    }
    
    .timeline-content {
        padding: 15px 12px;
    }
    
    .timeline-info h3 {
        font-size: 1.05rem;
        line-height: 1.2;
        margin-bottom: 6px;
        letter-spacing: 0.1px;
    }
    
    .timeline-date {
        font-size: 0.75rem;
        padding: 3px 10px;
        margin-bottom: 10px;
    }
    
    .timeline-info p {
        font-size: 0.85rem;
        line-height: 1.5;
        letter-spacing: 0.1px;
    }
    
    .btn {
        max-width: 220px;
    }
}

/* Touch and Interaction Improvements for Mobile */
@media (hover: none) and (pointer: coarse) {
    .btn:hover {
        transform: none;
    }
    
    .achievement-card:hover,
    .skill-category:hover,
    .timeline-content:hover,
    .contact-card:hover {
        transform: none;
    }
    
    .btn:active {
        transform: scale(0.98);
        transition: transform 0.1s ease;
    }
    
    .social-link:hover {
        transform: none;
    }
    
    .social-link:active {
        transform: scale(0.95);
        transition: transform 0.1s ease;
    }
    
    .nav-link:active {
        background: rgba(99, 102, 241, 0.1);
        border-radius: 8px;
    }
    
    .achievement-card:active,
    .skill-category:active,
    .contact-card:active {
        transform: scale(0.98);
        transition: transform 0.1s ease;
    }
    
    /* Enhanced touch targets */
    .btn {
        min-height: 44px;
        min-width: 44px;
    }
    
    .nav-link {
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .social-link {
        min-width: 44px;
        min-height: 44px;
    }
    
    .hamburger {
        min-width: 44px;
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
}

/* Fast click for mobile */
.btn, .nav-link, .social-link, .hamburger {
    touch-action: manipulation;
}

/* Prevent zooming on input focus */
@media (max-width: 768px) {
    input, textarea, select {
        font-size: 16px !important;
    }
}

/* Landscape Mode for Mobile */
@media (max-width: 768px) and (orientation: landscape) {
    .hero {
        min-height: 90vh;
    }
    
    .hero-content {
        padding: 20px 0;
    }
    
    .profile-image {
        width: 200px;
        height: 200px;
    }
    
    .profile-ring {
        width: 240px;
        height: 240px;
    }
    
    section {
        padding: 50px 0;
    }
    
    .timeline-item {
        margin-bottom: 30px;
        max-width: calc(100% - 60px);
    }
    
    .timeline-content {
        padding: 20px 15px;
    }
    
    .timeline-info h3 {
        font-size: 1.1rem;
        margin-bottom: 8px;
        letter-spacing: 0.2px;
    }
    
    .timeline-date {
        font-size: 0.8rem;
        margin-bottom: 10px;
    }
    
    .timeline-info p {
        font-size: 0.9rem;
        line-height: 1.5;
        letter-spacing: 0.1px;
    }
}

/* Enhanced Mobile Optimization - Critical Fixes */
@media screen and (max-width: 768px) {
    /* Prevent horizontal overflow */
    html, body {
        max-width: 100vw;
        overflow-x: hidden;
    }
    
    * {
        max-width: 100%;
        box-sizing: border-box;
    }
    
    /* Section spacing adjustments for mobile */
    section {
        padding: 60px 0;
    }
    
    .container {
        padding: 0 15px;
        max-width: 100%;
    }
    
    /* Section headers */
    .section-header {
        margin-bottom: 40px;
    }
    
    .section-title {
        font-size: 2rem;
        line-height: 1.2;
        margin-bottom: 15px;
    }
    
    .section-subtitle {
        font-size: 1rem;
        line-height: 1.6;
    }
    
    /* About section mobile fixes */
    .about-content {
        grid-template-columns: 1fr;
        gap: 40px;
        max-width: 100%;
    }
    
    .about-text {
        max-width: 100%;
    }
    
    .text-block {
        margin-bottom: 30px;
        max-width: 100%;
    }
    
    .text-block h3 {
        font-size: 1.3rem;
        margin-bottom: 12px;
    }
    
    .text-block p {
        font-size: 0.95rem;
        line-height: 1.7;
    }
    
    .achievement-cards {
        grid-template-columns: 1fr;
        gap: 15px;
        max-width: 100%;
    }
    
    .achievement-card {
        padding: 20px;
        gap: 15px;
        max-width: 100%;
        margin: 0;
    }
    
    .achievement-icon {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
        flex-shrink: 0;
    }
    
    .achievement-info {
        flex: 1;
        min-width: 0;
    }
    
    .achievement-info h4 {
        font-size: 1rem;
        margin-bottom: 3px;
    }
    
    .achievement-info p {
        font-size: 0.85rem;
    }
    
    /* Stats container mobile fixes */
    .about-visual {
        max-width: 100%;
    }
    
    .stats-container {
        grid-template-columns: 1fr;
        gap: 20px;
        max-width: 100%;
    }
    
    .stat-item {
        padding: 25px 20px;
        max-width: 100%;
        margin: 0;
    }
    
    .stat-number {
        font-size: 2.2rem;
        margin-bottom: 8px;
    }
    
    .stat-label {
        font-size: 0.9rem;
    }
    
    /* Navigation fixes */
    .navbar {
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
    }
    
    .nav-container {
        padding: 0 15px;
        max-width: 100%;
    }
    
    /* Skills section mobile fixes */
    .skills {
        max-width: 100%;
        overflow-x: hidden;
    }
    
    .skills .container {
        padding: 0 15px;
        max-width: 100%;
    }
    
    .skills-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        max-width: 100%;
        width: 100%;
    }
    
    .skill-category {
        width: 100%;
        max-width: 100%;
        margin: 0;
        padding: 25px 20px;
        box-sizing: border-box;
    }
    
    .category-title {
        font-size: 1.2rem;
        gap: 10px;
        margin-bottom: 20px;
        word-wrap: break-word;
        max-width: 100%;
    }
    
    .skills-list {
        width: 100%;
        max-width: 100%;
        gap: 20px;
    }
    
    .skill-item {
        width: 100%;
        max-width: 100%;
        gap: 8px;
    }
    
    .skill-info {
        width: 100%;
        max-width: 100%;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
    
    .skill-name {
        font-size: 0.95rem;
        flex: 1;
        min-width: 0;
    }
    
    .skill-level {
        font-size: 0.85rem;
        flex-shrink: 0;
        margin-left: 10px;
    }
    
    .skill-bar {
        width: 100%;
        max-width: 100%;
        height: 6px;
    }
    
    .skill-progress {
        width: 100%;
        max-width: 100%;
        height: 100%;
    }
    
    /* Hero section mobile optimizations */
    .hero {
        min-height: 100vh;
        padding: 80px 0 40px;
        display: flex;
        align-items: center;
    }
    
    .hero-container {
        padding: 0 15px;
        max-width: 100%;
        width: 100%;
    }
    
    .hero-content {
        display: flex !important;
        flex-direction: column;
        text-align: center;
        gap: 30px;
        max-width: 100%;
        width: 100%;
        align-items: center;
    }
    
    .hero-text {
        order: 2;
        max-width: 100%;
        width: 100%;
        padding: 0;
    }
    
    .hero-visual {
        order: 1;
        max-width: 100%;
        width: 100%;
        display: flex;
        justify-content: center;
    }
    
    .profile-card {
        max-width: 280px;
        margin: 0 auto;
    }
    
    /* Section containers */
    .container {
        padding: 0 15px;
        max-width: 100%;
    }
    
    /* Skills section mobile fix */
    .skills-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        max-width: 100%;
    }
    
    .skill-category {
        width: 100%;
        max-width: 100%;
        margin: 0;
        padding: 25px 20px;
    }
    
    /* Timeline mobile optimization */
    .timeline {
        max-width: 100%;
        padding: 0;
        margin: 0;
    }
    
    .timeline::before {
        left: 15px;
    }
    
    .timeline-item {
        width: 100%;
        left: 40px !important;
        right: auto !important;
        margin: 0 0 30px 0;
        padding: 0 15px 0 0;
        max-width: calc(100% - 55px);
    }
    
    .timeline-icon {
        left: -55px !important;
        width: 40px;
        height: 40px;
        font-size: 0.9rem;
    }
    
    .timeline-content {
        width: 100%;
        max-width: 100%;
        padding: 20px 15px;
        margin: 0;
    }
    
    .timeline-info {
        max-width: 100%;
    }
    
    .timeline-info h3 {
        font-size: 1.2rem;
        line-height: 1.3;
        margin-bottom: 10px;
        word-wrap: break-word;
        hyphens: auto;
    }
    
    .timeline-info p {
        font-size: 0.9rem;
        line-height: 1.6;
        word-wrap: break-word;
        hyphens: auto;
    }
    
    /* Contact section mobile */
    .contact-content {
        flex-direction: column;
        gap: 40px;
        max-width: 100%;
    }
    
    .contact-info {
        max-width: 100%;
    }
    
    .contact-form {
        max-width: 100%;
    }
    
    /* Form improvements */
    .form-group {
        margin-bottom: 20px;
    }
    
    .form-group input,
    .form-group textarea {
        width: 100%;
        padding: 15px;
        font-size: 16px; /* Prevents zoom on iOS */
        border-radius: 8px;
        border: 2px solid #e5e7eb;
        transition: border-color 0.3s ease;
    }
    
    .form-group input:focus,
    .form-group textarea:focus {
        border-color: var(--primary-color);
        outline: none;
    }
    
    /* Button improvements */
    .btn {
        width: 100%;
        max-width: 100%;
        padding: 15px 25px;
        font-size: 1rem;
        border-radius: 8px;
        touch-action: manipulation;
    }
    
    .btn:active {
        transform: translateY(1px);
    }
}

/* Extra small mobile devices */
@media screen and (max-width: 480px) {
    /* Container and section adjustments */
    .container {
        padding: 0 12px;
        max-width: 100%;
    }
    
    section {
        padding: 50px 0;
    }
    
    /* Section headers for small screens */
    .section-title {
        font-size: 1.7rem;
        line-height: 1.2;
        margin-bottom: 12px;
    }
    
    .section-subtitle {
        font-size: 0.9rem;
        line-height: 1.5;
    }
    
    /* About section optimizations */
    .about-content {
        gap: 30px;
    }
    
    .text-block {
        margin-bottom: 25px;
    }
    
    .text-block h3 {
        font-size: 1.2rem;
        margin-bottom: 10px;
    }
    
    .text-block p {
        font-size: 0.9rem;
        line-height: 1.6;
    }
    
    .achievement-cards {
        gap: 12px;
    }
    
    .achievement-card {
        padding: 18px 15px;
        gap: 12px;
    }
    
    .achievement-icon {
        width: 45px;
        height: 45px;
        font-size: 1.1rem;
    }
    
    .achievement-info h4 {
        font-size: 0.95rem;
        margin-bottom: 2px;
    }
    
    .achievement-info p {
        font-size: 0.8rem;
    }
    
    /* Stats container for small screens */
    .stats-container {
        gap: 15px;
    }
    
    .stat-item {
        padding: 20px 15px;
    }
    
    .stat-number {
        font-size: 2rem;
        margin-bottom: 6px;
    }
    
    .stat-label {
        font-size: 0.85rem;
    }
    
    /* Skills section for small screens */
    .skills .container {
        padding: 0 12px;
    }
    
    .skills-grid {
        gap: 15px;
    }
    
    .skill-category {
        padding: 20px 15px;
    }
    
    .category-title {
        font-size: 1.1rem;
        gap: 8px;
        margin-bottom: 18px;
    }
    
    .category-title i {
        font-size: 1rem;
    }
    
    .skills-list {
        gap: 18px;
    }
    
    .skill-item {
        gap: 6px;
    }
    
    .skill-info {
        margin-bottom: 6px;
    }
    
    .skill-name {
        font-size: 0.9rem;
    }
    
    .skill-level {
        font-size: 0.8rem;
    }
    
    .skill-bar {
        height: 5px;
    }
    
    /* Hero section for small screens */
    .hero {
        padding: 70px 0 30px;
        min-height: 100vh;
        display: flex;
        align-items: center;
    }
    
    .hero-container {
        padding: 0 12px;
        width: 100%;
        max-width: 100%;
    }
    
    .hero-content {
        display: flex !important;
        flex-direction: column;
        gap: 25px;
        text-align: center;
        align-items: center;
        width: 100%;
    }
    
    .title-line {
        font-size: 1rem;
        margin-bottom: 6px;
    }
    
    .title-main {
        font-size: 2rem;
        line-height: 1.2;
        margin-bottom: 6px;
    }
    
    .title-sub {
        font-size: 1.1rem;
        line-height: 1.3;
    }
    
    .hero-description {
        font-size: 0.95rem;
        line-height: 1.6;
        margin-bottom: 25px;
        max-width: 100%;
    }
    
    .profile-card {
        max-width: 220px;
        margin: 0 auto;
    }
    
    .profile-image {
        width: 200px;
        height: 200px;
    }
    
    .profile-ring {
        width: 240px;
        height: 240px;
    }
    
    .section-title {
        font-size: 1.6rem;
        line-height: 1.3;
    }
    
    .timeline-item {
        max-width: calc(100% - 50px);
        left: 35px !important;
    }
    
    .timeline-icon {
        left: -50px !important;
        width: 35px;
        height: 35px;
        font-size: 0.8rem;
    }
    
    .timeline-info h3 {
        font-size: 1.1rem;
    }
    
    .timeline-info p {
        font-size: 0.85rem;
        line-height: 1.5;
    }
}

/* Very small devices (iPhone SE, etc.) */
@media screen and (max-width: 375px) {
    .hero-container,
    .container {
        padding: 0 10px;
    }
    
    section {
        padding: 45px 0;
    }
    
    /* Section headers for very small screens */
    .section-title {
        font-size: 1.5rem;
        margin-bottom: 10px;
    }
    
    .section-subtitle {
        font-size: 0.85rem;
    }
    
    /* About section for very small screens */
    .about-content {
        gap: 25px;
    }
    
    .text-block {
        margin-bottom: 20px;
    }
    
    .text-block h3 {
        font-size: 1.1rem;
        margin-bottom: 8px;
    }
    
    .text-block p {
        font-size: 0.85rem;
        line-height: 1.5;
    }
    
    .achievement-cards {
        gap: 10px;
    }
    
    .achievement-card {
        padding: 15px 12px;
        gap: 10px;
    }
    
    .achievement-icon {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .achievement-info h4 {
        font-size: 0.9rem;
        margin-bottom: 1px;
    }
    
    .achievement-info p {
        font-size: 0.75rem;
    }
    
    /* Stats for very small screens */
    .stats-container {
        gap: 12px;
    }
    
    .stat-item {
        padding: 18px 12px;
    }
    
    .stat-number {
        font-size: 1.8rem;
        margin-bottom: 5px;
    }
    
    .stat-label {
        font-size: 0.8rem;
    }
    
    /* Skills section for very small screens */
    .skills .container {
        padding: 0 10px;
    }
    
    .skills-grid {
        gap: 12px;
    }
    
    .skill-category {
        padding: 18px 12px;
    }
    
    .category-title {
        font-size: 1rem;
        gap: 6px;
        margin-bottom: 15px;
    }
    
    .category-title i {
        font-size: 0.9rem;
    }
    
    .skills-list {
        gap: 15px;
    }
    
    .skill-item {
        gap: 5px;
    }
    
    .skill-name {
        font-size: 0.85rem;
    }
    
    .skill-level {
        font-size: 0.75rem;
    }
    
    .skill-bar {
        height: 4px;
    }
    
    /* Hero adjustments */
    .hero {
        padding: 60px 0 25px;
        min-height: 100vh;
        display: flex;
        align-items: center;
    }
    
    .hero-container {
        padding: 0 10px;
        width: 100%;
        max-width: 100%;
    }
    
    .hero-content {
        display: flex !important;
        flex-direction: column;
        gap: 20px;
        text-align: center;
        align-items: center;
        width: 100%;
    }
    
    .title-line {
        font-size: 0.9rem;
        margin-bottom: 5px;
    }
    
    .title-main {
        font-size: 1.7rem;
        line-height: 1.2;
        margin-bottom: 5px;
    }
    
    .title-sub {
        font-size: 1rem;
        line-height: 1.3;
    }
    
    .hero-description {
        font-size: 0.9rem;
        line-height: 1.5;
        margin-bottom: 20px;
        max-width: 100%;
    }
    
    .profile-card {
        max-width: 200px;
        margin: 0 auto;
    }
    
    .profile-image {
        width: 180px;
        height: 180px;
    }
    
    .profile-ring {
        width: 220px;
        height: 220px;
    }
    
    .timeline-item {
        max-width: calc(100% - 45px);
        left: 30px !important;
        padding: 0 10px 0 0;
    }
    
    .timeline-icon {
        left: -45px !important;
        width: 30px;
        height: 30px;
        font-size: 0.7rem;
    }
    
    .timeline-content {
        padding: 15px 12px;
    }
}

/* Touch device optimizations */
@media (hover: none) and (pointer: coarse) {
    .nav-link:hover,
    .btn:hover,
    .social-link:hover {
        transform: none;
    }
    
    .nav-link:active,
    .btn:active,
    .social-link:active {
        transform: translateY(1px);
        opacity: 0.8;
    }
    
    /* Improve touch targets */
    .nav-link {
        padding: 15px 20px;
        margin: 5px 0;
    }
    
    .btn {
        min-height: 48px;
        padding: 15px 25px;
    }
    
}

/* CLEAN MOBILE RESPONSIVE - FINAL SOLUTION */
@media screen and (max-width: 768px) {
    /* Force everything to be mobile first */
    * {
        max-width: 100% !important;
        box-sizing: border-box !important;
    }
    
    html, body {
        overflow-x: hidden !important;
        max-width: 100vw !important;
    }
    
    /* Container fixes */
    .container, .hero-container {
        padding: 0 15px !important;
        max-width: 100% !important;
        width: 100% !important;
    }
    
    /* Navigation mobile */
    .hamburger {
        display: flex !important;
        z-index: 1001;
    }
    
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 0;
        flex-direction: column;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(20px);
        width: 100%;
        height: 100vh;
        text-align: center;
        transition: 0.3s ease;
        padding-top: 100px;
        gap: 40px;
        z-index: 1000;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    /* HERO SECTION MOBILE FIX */
    .hero {
        min-height: 100vh !important;
        padding: 80px 0 40px !important;
        display: flex !important;
        align-items: center !important;
    }
    
    .hero-content {
        display: flex !important;
        flex-direction: column !important;
        gap: 30px !important;
        text-align: left !important;
        align-items: center !important;
        width: 100% !important;
        max-width: 100% !important;
    }
    
    .hero-text {
        order: 2 !important;
        width: 100% !important;
        max-width: 100% !important;
        text-align: left !important;
    }
    
    .hero-title {
        text-align: left !important;
        margin-bottom: 25px !important;
    }
    
    .hero-visual {
        order: 1 !important;
        width: 100% !important;
        max-width: 100% !important;
        display: flex !important;
        justify-content: center !important;
    }
    
    .title-main {
        font-size: 2.2rem !important;
        line-height: 1.2 !important;
        margin-bottom: 10px !important;
        text-align: left !important;
        display: block !important;
    }
    
    .title-line {
        font-size: 1rem !important;
        margin-bottom: 8px !important;
        text-align: left !important;
        display: block !important;
    }
    
    .title-sub {
        font-size: 1.2rem !important;
        line-height: 1.3 !important;
        text-align: left !important;
        display: block !important;
    }
    
    .hero-description {
        font-size: 1rem !important;
        line-height: 1.6 !important;
        margin-bottom: 30px !important;
        text-align: left !important;
    }
    
    .hero-buttons {
        display: flex !important;
        flex-direction: column !important;
        gap: 15px !important;
        width: 100% !important;
        max-width: 300px !important;
        align-items: center !important;
    }
    
    .btn {
        width: 100% !important;
        max-width: 280px !important;
        justify-content: center !important;
        padding: 14px 25px !important;
    }
    
    /* Profile image mobile */
    .profile-card {
        max-width: 280px !important;
        margin: 0 auto !important;
    }
    
    .profile-image {
        width: 260px !important;
        height: 260px !important;
    }
    
    .profile-ring {
        width: 300px !important;
        height: 300px !important;
    }
    
    /* ABOUT SECTION MOBILE FIX */
    .about-content {
        display: block !important;
        grid-template-columns: none !important;
        gap: 40px !important;
    }
    
    .about-text, .about-visual {
        width: 100% !important;
        max-width: 100% !important;
        margin-bottom: 40px !important;
    }
    
    .text-block {
        margin-bottom: 30px !important;
        width: 100% !important;
    }
    
    .text-block h3 {
        font-size: 1.3rem !important;
        margin-bottom: 12px !important;
        word-wrap: break-word !important;
        overflow-wrap: break-word !important;
    }
    
    .text-block p {
        font-size: 0.95rem !important;
        line-height: 1.7 !important;
        word-wrap: break-word !important;
        overflow-wrap: break-word !important;
        hyphens: auto !important;
        text-align: justify !important;
        margin: 0 !important;
        padding: 0 !important;
        max-width: 100% !important;
    }
    
    .achievement-cards {
        display: block !important;
        grid-template-columns: none !important;
    }
    
    .achievement-card {
        margin-bottom: 15px !important;
        padding: 20px !important;
        width: 100% !important;
        display: flex !important;
        gap: 15px !important;
    }
    
    .achievement-icon {
        width: 50px !important;
        height: 50px !important;
        flex-shrink: 0 !important;
    }
    
    .stats-container {
        display: block !important;
        grid-template-columns: none !important;
    }
    
    .stat-item {
        margin-bottom: 20px !important;
        padding: 25px !important;
        width: 100% !important;
    }
    
    .stat-number {
        font-size: 2.2rem !important;
    }
    
    /* SKILLS SECTION MOBILE FIX */
    .skills-grid {
        display: block !important;
        grid-template-columns: none !important;
    }
    
    .skill-category {
        margin-bottom: 20px !important;
        padding: 25px 20px !important;
        width: 100% !important;
    }
    
    .category-title {
        font-size: 1.2rem !important;
        margin-bottom: 20px !important;
    }
    
    .skill-item {
        margin-bottom: 20px !important;
        width: 100% !important;
    }
    
    .skill-name {
        font-size: 0.95rem !important;
    }
    
    .skill-level {
        font-size: 0.85rem !important;
    }
    
    /* TIMELINE MOBILE FIX */
    .timeline::before {
        left: 15px !important;
    }
    
    .timeline-item {
        width: 100% !important;
        left: 40px !important;
        margin-bottom: 30px !important;
        padding: 0 15px 0 0 !important;
        max-width: calc(100% - 55px) !important;
    }
    
    .timeline-icon {
        left: -55px !important;
        width: 40px !important;
        height: 40px !important;
    }
    
    .timeline-content {
        padding: 20px 15px !important;
        width: 100% !important;
    }
    
    .timeline-info h3 {
        font-size: 1.2rem !important;
        line-height: 1.3 !important;
        margin-bottom: 10px !important;
    }
    
    .timeline-info p {
        font-size: 0.9rem !important;
        line-height: 1.6 !important;
    }
    
    /* Section spacing */
    section {
        padding: 60px 0 !important;
    }
    
    .section-title {
        font-size: 2rem !important;
        margin-bottom: 15px !important;
    }
    
    .section-subtitle {
        font-size: 1rem !important;
    }
    
    /* Contact mobile */
    .contact-content {
        display: block !important;
        grid-template-columns: none !important;
    }
    
    .contact-info, .contact-form {
        width: 100% !important;
        margin-bottom: 40px !important;
    }
    
    .contact-card {
        margin-bottom: 20px !important;
        padding: 20px !important;
    }
}

/* Small mobile devices */
@media screen and (max-width: 480px) {
    .container, .hero-container {
        padding: 0 12px !important;
    }
    
    .title-main {
        font-size: 1.8rem !important;
    }
    
    .profile-image {
        width: 200px !important;
        height: 200px !important;
    }
    
    .profile-ring {
        width: 240px !important;
        height: 240px !important;
    }
    
    .section-title {
        font-size: 1.7rem !important;
    }
    
    .skill-category {
        padding: 20px 15px !important;
    }
    
    /* About section text improvements */
    .text-block p {
        font-size: 0.9rem !important;
        line-height: 1.6 !important;
        text-align: left !important;
    }
    
    .text-block h3 {
        font-size: 1.2rem !important;
    }
}

/* Very small devices */
@media screen and (max-width: 375px) {
    .container, .hero-container {
        padding: 0 10px !important;
    }
    
    .title-main {
        font-size: 1.6rem !important;
    }
    
    .profile-image {
        width: 180px !important;
        height: 180px !important;
    }
    
    .profile-ring {
        width: 220px !important;
        height: 220px !important;
        top: -20px !important;
        left: -20px !important;
        border-radius: 50% !important;
        border: 3px solid var(--primary-color) !important;
        border-top-color: transparent !important;
        animation: rotate 10s linear infinite !important;
    }
    
    .section-title {
        font-size: 1.5rem !important;
    }
    
    /* About section text for very small screens */
    .text-block p {
        font-size: 0.85rem !important;
        line-height: 1.5 !important;
        text-align: left !important;
    }
    
    .text-block h3 {
        font-size: 1.1rem !important;
        margin-bottom: 10px !important;
    }
}
