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

:root {
    --primary: #6366f1;
    --secondary: #8b5cf6;
    --accent: #06b6d4;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    
    --bg-primary: #0f0f23;
    --bg-secondary: #1a1a2e;
    --bg-tertiary: #16213e;
    
    --text-primary: #ffffff;
    --text-secondary: #a1a1aa;
    --text-muted: #71717a;
    
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    
    --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-secondary: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --gradient-accent: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    --gradient-success: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
}

[data-theme="light"] {
    --bg-primary: #f8fafc;
    --bg-secondary: #ffffff;
    --bg-tertiary: #f1f5f9;
    
    --text-primary: #1e293b;
    --text-secondary: #475569;
    --text-muted: #64748b;
    
    --glass-bg: rgba(255, 255, 255, 0.25);
    --glass-border: rgba(255, 255, 255, 0.4);
    --glass-shadow: 0 8px 32px rgba(31, 38, 135, 0.15);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

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

/* Background Shapes */
.bg-shapes {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.shape {
    position: absolute;
    border-radius: 50%;
    background: var(--gradient-primary);
    opacity: 0.1;
    animation: float 20s infinite ease-in-out;
}

.shape-1 {
    width: 300px;
    height: 300px;
    top: 10%;
    left: 10%;
    animation-delay: 0s;
}

.shape-2 {
    width: 200px;
    height: 200px;
    top: 60%;
    right: 10%;
    background: var(--gradient-secondary);
    animation-delay: 5s;
}

.shape-3 {
    width: 150px;
    height: 150px;
    bottom: 20%;
    left: 20%;
    background: var(--gradient-accent);
    animation-delay: 10s;
}

.shape-4 {
    width: 250px;
    height: 250px;
    top: 30%;
    right: 30%;
    background: var(--gradient-success);
    animation-delay: 15s;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    33% { transform: translateY(-30px) rotate(120deg); }
    66% { transform: translateY(30px) rotate(240deg); }
}

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

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

.nav-logo {
    font-size: 28px;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 40px;
}

.nav-menu a {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

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

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

.theme-toggle {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 50%;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(20px);
}

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

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--text-primary);
    margin: 3px 0;
    transition: 0.3s;
}

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

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

.hero-name {
    font-size: clamp(3rem, 8vw, 7rem);
    font-weight: 900;
    line-height: 0.9;
    margin-bottom: 30px;
    color: white;
    text-shadow: 0 0 50px rgba(102, 126, 234, 0.5);
    animation: heroGlow 4s ease-in-out infinite alternate;
    letter-spacing: 0.05em;
}

[data-theme="light"] .hero-name {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
}

.name-r, .name-g {
    font-size: 1.2em;
    font-weight: 900;
    text-transform: uppercase;
}

.name-r {
    color: var(--primary);
    text-shadow: 0 0 30px rgba(99, 102, 241, 0.8);
}

.name-g {
    color: var(--accent);
    text-shadow: 0 0 30px rgba(6, 182, 212, 0.8);
}

@keyframes heroGlow {
    0% { 
        filter: drop-shadow(0 0 20px rgba(102, 126, 234, 0.3));
        transform: scale(1);
    }
    100% { 
        filter: drop-shadow(0 0 40px rgba(102, 126, 234, 0.8));
        transform: scale(1.02);
    }
}

.hero-profession {
    font-size: 24px;
    font-weight: 600;
    color: white;
    margin-bottom: 20px;
    height: 40px;
    display: flex;
    align-items: center;
}

[data-theme="light"] .hero-profession {
    color: #7c3aed;
}

.typing-text {
    display: inline-block;
}

.cursor-blink {
    animation: blink 1s infinite;
    color: var(--primary);
    font-weight: 300;
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

.hero-description {
    font-size: 18px;
    color: var(--text-secondary);
    margin-bottom: 40px;
    max-width: 500px;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
}

.btn-secondary {
    background: var(--glass-bg);
    color: var(--text-primary);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(20px);
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(102, 126, 234, 0.4);
}

.hero-visual {
    position: relative;
    height: 500px;
}

.floating-elements {
    position: relative;
    width: 100%;
    height: 100%;
}

.float-item {
    position: absolute;
    width: 80px;
    height: 80px;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    color: var(--primary);
    box-shadow: var(--glass-shadow);
    animation: floatItem 6s ease-in-out infinite;
}

.item-1 {
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.item-2 {
    top: 10%;
    right: 20%;
    animation-delay: 1.5s;
}

.item-3 {
    bottom: 30%;
    left: 20%;
    animation-delay: 3s;
}

.item-4 {
    bottom: 20%;
    right: 10%;
    animation-delay: 4.5s;
}

.item-5 {
    top: 50%;
    left: 5%;
    animation-delay: 6s;
}

.item-6 {
    top: 70%;
    right: 30%;
    animation-delay: 7.5s;
}

.item-7 {
    bottom: 50%;
    right: 5%;
    animation-delay: 9s;
}

.item-8 {
    top: 30%;
    left: 30%;
    animation-delay: 10.5s;
}

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

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

.section-title {
    text-align: center;
    margin-bottom: 80px;
}

.section-title h2 {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 20px;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.title-line {
    width: 100px;
    height: 4px;
    background: var(--gradient-primary);
    margin: 0 auto;
    border-radius: 2px;
}

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

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

.about-image {
    text-align: center;
}

.image-frame {
    position: relative;
    display: inline-block;
}

.image-avatar {
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 4px solid var(--primary);
    box-shadow: 0 20px 60px rgba(102, 126, 234, 0.3);
    position: relative;
    overflow: hidden;
    transition: all 0.4s ease;
}

.image-avatar:hover {
    transform: scale(1.05) rotateY(10deg);
    box-shadow: 0 30px 100px rgba(102, 126, 234, 0.5);
}

.profile-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    transition: all 1.2s ease;
}

.default-img {
    opacity: 1;
    transform: scale(1);
}

.scroll-img {
    opacity: 0;
    transform: scale(0.9);
}

/* For desktop hover effect as fallback */
.image-avatar:hover .default-img {
    opacity: 0;
    transform: scale(0.9);
}

.image-avatar:hover .scroll-img {
    opacity: 1;
    transform: scale(1);
}

/* Class added by JS for scroll effect */
.image-avatar.scrolled .default-img {
    opacity: 0;
    transform: scale(0.9);
}

.image-avatar.scrolled .scroll-img {
    opacity: 1;
    transform: scale(1);
}



.about-text p {
    font-size: 18px;
    color: var(--text-secondary);
    margin-bottom: 25px;
    line-height: 1.8;
}

/* Skills Section */
.skills-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 30px;
    max-width: 1000px;
    margin: 0 auto;
}

.skill-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 30px 20px;
    text-align: center;
    box-shadow: var(--glass-shadow);
    transition: all 0.3s ease;
}

.skill-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 60px rgba(102, 126, 234, 0.2);
}

.skill-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.skill-icon img {
    width: 50px;
    height: 50px;
    object-fit: contain;
}

.skill-card h4 {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
}

/* Certificates Section */
.certificates {
    background: var(--bg-secondary);
}

.certificates-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    max-width: 1000px;
    margin: 0 auto;
}

.certificate-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 25px;
    overflow: hidden;
    box-shadow: var(--glass-shadow);
    transition: all 0.4s ease;
    position: relative;
}

.certificate-card:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: 0 25px 80px rgba(102, 126, 234, 0.3);
}

.certificate-image {
    position: relative;
    height: 200px;
    overflow: hidden;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.certificate-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(255,255,255,0.1) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.certificate-card:hover .certificate-image::before {
    opacity: 1;
}

.cert-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.4s ease;
    filter: brightness(1.1);
}

.certificate-card:hover .cert-img {
    transform: scale(1.1) rotateY(10deg);
    filter: brightness(1.3);
}

.certificate-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.4s ease;
    backdrop-filter: blur(10px);
}

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

.credly-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    color: white;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    padding: 20px;
    border-radius: 15px;
    background: rgba(102, 126, 234, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.credly-link:hover {
    background: var(--primary);
    transform: scale(1.05);
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.4);
}

.credly-link i {
    font-size: 24px;
    margin-bottom: 5px;
}

.credly-link span {
    font-size: 14px;
    text-align: center;
}

.certificate-content {
    padding: 25px;
    text-align: center;
}

.certificate-content h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--text-primary);
    transition: all 0.3s ease;
}

.certificate-card:hover .certificate-content h3 {
    color: var(--primary);
}

.certificate-content p {
    color: var(--text-secondary);
    margin-bottom: 15px;
    font-size: 14px;
}

.cert-date {
    display: inline-block;
    background: rgba(102, 126, 234, 0.1);
    color: var(--primary);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    border: 1px solid rgba(102, 126, 234, 0.2);
}

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

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

.project-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 25px;
    overflow: hidden;
    box-shadow: var(--glass-shadow);
    transition: all 0.3s ease;
}

.project-card:hover {
    transform: translateY(-15px);
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.3);
}

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

.project-3d-icon {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-primary);
    font-size: 80px;
    color: white;
    transition: all 0.3s ease;
}

.project-card:hover .project-3d-icon {
    transform: scale(1.1) rotateY(15deg);
    background: var(--gradient-secondary);
}

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.3s ease;
}

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

.project-link {
    width: 60px;
    height: 60px;
    background: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    font-size: 20px;
    transition: all 0.3s ease;
}

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

.project-content {
    padding: 30px;
}

.project-content h3 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--text-primary);
}

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

.project-tech {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.project-tech span {
    background: rgba(102, 126, 234, 0.2);
    color: var(--primary);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
}

/* Resume Section */
.resume-content {
    display: flex;
    justify-content: center;
}

.resume-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 30px;
    padding: 60px 40px;
    text-align: center;
    box-shadow: var(--glass-shadow);
    max-width: 500px;
    transition: all 0.3s ease;
}

.resume-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 30px 100px rgba(0, 0, 0, 0.3);
}

.resume-icon {
    width: 100px;
    height: 100px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    color: white;
    margin: 0 auto 30px;
}

.resume-card h3 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--text-primary);
}

.resume-card p {
    color: var(--text-secondary);
    margin-bottom: 40px;
    font-size: 16px;
    line-height: 1.6;
}

.resume-actions {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Contact Section */
.contact {
    background: var(--bg-secondary);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
}

.contact-icon {
    width: 60px;
    height: 60px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: white;
}

.contact-details h4 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 5px;
    color: var(--text-primary);
}

.contact-details p {
    color: var(--text-secondary);
}

.social-links {
    display: flex;
    gap: 20px;
    margin-top: 40px;
}

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

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

.contact-form {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 25px;
    padding: 40px;
    box-shadow: var(--glass-shadow);
}

.form-group {
    margin-bottom: 25px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px 20px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 15px;
    color: var(--text-primary);
    font-family: inherit;
    font-size: 16px;
    transition: all 0.3s ease;
    backdrop-filter: blur(20px);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 20px rgba(102, 126, 234, 0.2);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-muted);
}

/* Footer */
.footer {
    padding: 40px 0;
    text-align: center;
    border-top: 1px solid var(--glass-border);
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    color: var(--text-secondary);
}

/* Enhanced glass effects for light mode */
[data-theme="light"] .navbar {
    background: rgba(248, 250, 252, 0.8);
    border-bottom: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 4px 24px rgba(31, 38, 135, 0.1);
}

[data-theme="light"] .skill-card,
[data-theme="light"] .project-card,
[data-theme="light"] .resume-card,
[data-theme="light"] .contact-form {
    background: rgba(255, 255, 255, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 8px 32px rgba(31, 38, 135, 0.12);
}

[data-theme="light"] .float-item {
    background: rgba(255, 255, 255, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.6);
    box-shadow: 0 8px 32px rgba(31, 38, 135, 0.15);
}

[data-theme="light"] .theme-toggle,
[data-theme="light"] .social-link {
    background: rgba(255, 255, 255, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.5);
}

[data-theme="light"] .form-group input,
[data-theme="light"] .form-group textarea {
    background: rgba(255, 255, 255, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.6);
}

[data-theme="light"] .btn-secondary {
    background: rgba(255, 255, 255, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 4px 16px rgba(31, 38, 135, 0.1);
}

[data-theme="light"] .certificate-card {
    background: rgba(255, 255, 255, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 8px 32px rgba(31, 38, 135, 0.12);
}

[data-theme="light"] .certificate-card:hover {
    box-shadow: 0 25px 80px rgba(31, 38, 135, 0.2);
}

[data-theme="light"] .cert-date {
    background: rgba(102, 126, 234, 0.15);
    border: 1px solid rgba(102, 126, 234, 0.3);
}

/* Responsive Design */
@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: flex;
        z-index: 1001;
    }
    
    .nav-menu {
        position: fixed;
        top: 85px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 85px);
        background: var(--glass-bg);
        backdrop-filter: blur(25px);
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        padding-top: 50px;
        transition: left 0.3s ease;
        border-top: 1px solid var(--glass-border);
        z-index: 999;
    }
    
    .nav-menu.active {
        left: 0;
        display: flex;
    }
    
    .nav-menu li {
        margin: 20px 0;
    }
    
    .nav-menu a {
        font-size: 18px;
        font-weight: 600;
    }
    
    .mobile-menu-toggle.active span:nth-child(1) {
        transform: rotate(-45deg) translate(-5px, 6px);
    }
    
    .mobile-menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .mobile-menu-toggle.active span:nth-child(3) {
        transform: rotate(45deg) translate(-5px, -6px);
    }
    
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
    }
    
    .hero-profession {
        justify-content: center;
    }
    
    .hero-name {
        font-size: clamp(2.5rem, 12vw, 4rem);
    }
    
    .hero-visual {
        height: 300px;
    }
    
    /* Hide all floating items except those with mobile-visible class */
    .float-item:not(.mobile-visible) {
        display: none;
    }
    
    /* Reposition the mobile visible items */
    .float-item.mobile-visible {
        position: absolute;
    }
    
    .float-item.item-1 {
        top: 20%;
        left: 20%;
    }
    
    .float-item.item-2 {
        top: 20%;
        right: 20%;
    }
    
    .float-item.item-3 {
        bottom: 30%;
        left: 20%;
    }
    
    .float-item.item-4 {
        bottom: 30%;
        right: 20%;
    }
    
    .about-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
    }
    
    .image-avatar {
        width: 250px;
        height: 250px;
        margin: 0 auto;
    }
    
    .skills-container {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
        gap: 20px;
    }
    
    .certificates-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .resume-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .section-title h2 {
        font-size: 36px;
    }
    
    section {
        padding: 60px 0;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .nav-container {
        padding: 0 15px;
    }
    
    .hero-name {
        font-size: clamp(2rem, 10vw, 3rem);
    }
    
    .hero-profession {
        font-size: 18px;
    }
    

    
    .skills-container {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .certificates-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .certificate-image {
        height: 150px;
    }
    
    .cert-img {
        width: 80px;
        height: 80px;
    }
    
    .resume-card {
        padding: 40px 20px;
    }
    
    .contact-form {
        padding: 30px 20px;
    }
}