/* Root Variables */
:root {
    --primary-color: #6366f1;
    --primary-dark: #4f46e5;
    --primary-light: #818cf8;
    --secondary-color: #f59e0b;
    --accent-color: #10b981;
    --text-primary: #1f2937;
    --text-secondary: #6b7280;
    --text-muted: #9ca3af;
    --bg-primary: #ffffff;
    --bg-secondary: #f9fafb;
    --bg-tertiary: #f3f4f6;
    --border-color: #e5e7eb;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    --border-radius: 0.5rem;
    --border-radius-lg: 1rem;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --font-primary: 'Poppins', sans-serif;
    --font-secondary: 'Open Sans', sans-serif;
}

/* Dark Theme Variables */
[data-theme="dark"] {
    --text-primary: #f9fafb;
    --text-secondary: #d1d5db;
    --text-muted: #9ca3af;
    --bg-primary: #0f172a;
    --bg-secondary: #1e293b;
    --bg-tertiary: #334155;
    --border-color: #475569;
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-secondary);
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-primary);
    transition: var(--transition);
    overflow-x: hidden;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-secondary);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-primary);
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 { font-size: clamp(2.5rem, 5vw, 4rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: clamp(1.5rem, 3vw, 2rem); }
h4 { font-size: clamp(1.25rem, 2.5vw, 1.5rem); }

p {
    margin-bottom: 1rem;
    color: var(--text-secondary);
}

/* Utility Classes */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section-title {
    text-align: center;
    margin-bottom: 4rem;
    position: relative;
    color: var(--text-primary);
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 2px;
}

[data-theme="dark"] .section-title::after {
    box-shadow: 0 0 10px rgba(99, 102, 241, 0.5);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    font-weight: 500;
    text-decoration: none;
    border: none;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-10px); }
    60% { transform: translateY(-5px); }
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

@keyframes typing {
    from { width: 0; }
    to { width: 100%; }
}

@keyframes blink {
    50% { border-color: transparent; }
}

/* Animation Classes */
.pulse-animation {
    animation: pulse 2s infinite;
}

.bounce-animation {
    animation: bounce 2s infinite;
}

.floating-animation {
    animation: float 6s ease-in-out infinite;
}

.typing-animation {
    overflow: hidden;
    border-right: 3px solid var(--primary-color);
    white-space: nowrap;
    animation: typing 3.5s steps(40, end), blink 0.75s step-end infinite;
}

.social-bounce {
    transition: var(--transition);
}

.social-bounce:hover {
    transform: translateY(-5px) scale(1.1);
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
    transition: var(--transition);
}

[data-theme="dark"] .navbar {
    background: rgba(26, 32, 44, 0.95) !important;
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.nav-logo {
    font-family: var(--font-primary);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-link {
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.3s;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.theme-toggle {
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    transition: var(--transition);
}

.theme-toggle:hover {
    background: var(--bg-secondary);
    transform: rotate(180deg);
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.bar {
    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;
    padding: 6rem 0 2rem;
    background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000"><polygon fill="%236366f1" fill-opacity="0.05" points="0,1000 1000,0 1000,1000"/></svg>');
    pointer-events: none;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-content {
    z-index: 2;
}

.hero-title {
    margin-bottom: 1rem;
}

.highlight {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    color: var(--text-secondary);
    font-size: 1.5rem;
    margin-bottom: 2rem;
}

.hero-description {
    font-size: 1.1rem;
    margin-bottom: 2.5rem;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: var(--bg-secondary);
    color: var(--primary-color);
    border-radius: 50%;
    text-decoration: none;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

.social-links a:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.social-links a svg {
    transition: var(--transition);
}

.social-links a:hover svg {
    transform: scale(1.1);
}

.hero-image {
    display: flex;
    justify-content: center;
    z-index: 2;
}

.image-placeholder {
    width: 350px;
    height: 350px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 6rem;
    color: white;
    box-shadow: var(--shadow-xl);
    position: relative;
    overflow: hidden;
}

.profile-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    border-radius: 50%;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
    display: block;
}

/* Hide the icon when image is present */
.image-placeholder .fa-user {
    position: absolute;
    z-index: 0;
}

.profile-ring {
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    border: 3px solid var(--primary-light);
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 3s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
}

.scroll-arrow {
    font-size: 1.5rem;
    color: var(--primary-color);
    cursor: pointer;
}

/* About Section */
.about {
    padding: 6rem 0;
    background: var(--bg-primary);
}

.about-intro {
    margin-bottom: 3rem;
}

.intro-text {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.stats-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
    padding: 2rem;
    background: var(--bg-secondary);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-md);
}

.stat-item {
    text-align: center;
    padding: 1rem;
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary-color);
    display: block;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.timeline {
    position: relative;
    padding-left: 2rem;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--primary-color);
}

[data-theme="dark"] .timeline::before {
    background: var(--primary-light);
    opacity: 0.8;
}

.timeline-item {
    position: relative;
    margin-bottom: 2rem;
    padding-left: 2rem;
    transition: var(--transition);
}

.timeline-item:hover {
    transform: translateX(10px);
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -2rem;
    top: 0.5rem;
    width: 12px;
    height: 12px;
    background: var(--primary-color);
    border-radius: 50%;
    transform: translateX(-50%);
    transition: var(--transition);
    box-shadow: 0 0 0 0 rgba(99, 102, 241, 0.4);
    animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
    0% {
        box-shadow: 0 0 0 0 rgba(99, 102, 241, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(99, 102, 241, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(99, 102, 241, 0);
    }
}

.timeline-item:hover::before {
    transform: translateX(-50%) scale(1.3);
    box-shadow: 0 0 15px var(--primary-color);
}

.timeline-content {
    transition: var(--transition);
}

.timeline-item:hover .timeline-content {
    background: var(--bg-secondary);
    padding: 1rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
}

.timeline-date {
    font-size: 0.9rem;
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 0.5rem;
    transition: var(--transition);
}

.timeline-item:hover .timeline-date {
    color: var(--secondary-color);
    transform: translateX(5px);
}

.timeline-content h4 {
    margin-bottom: 0.5rem;
    color: var(--text-primary);
    transition: var(--transition);
}

.timeline-item:hover .timeline-content h4 {
    color: var(--primary-color);
}

/* Education and Experience Section Headers */
.education h3,
.experience h3 {
    position: relative;
    display: inline-block;
    padding-bottom: 0.5rem;
    margin-bottom: 2rem;
}

.education h3::after,
.experience h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    transition: width 0.6s ease;
}

.education h3:hover::after,
.experience h3:hover::after {
    width: 100%;
}

/* Skills Section */
.skills {
    padding: 6rem 0;
    background: var(--bg-secondary);
}

.skills-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
}

.skills-category {
    background: var(--bg-primary);
    padding: 2rem;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

.skills-category:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.skills-category h3 {
    margin-bottom: 2rem;
    color: var(--primary-color);
    text-align: center;
}

.skill-item {
    margin-bottom: 1.5rem;
}

.skill-name {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-primary);
}

.skill-bar {
    height: 8px;
    background: var(--bg-tertiary);
    border-radius: 4px;
    overflow: hidden;
}

[data-theme="dark"] .skill-bar {
    background: var(--bg-tertiary);
    opacity: 0.7;
}

.skill-progress {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    width: 0%;
    transition: width 1.5s ease-in-out;
    border-radius: 4px;
    position: relative;
    overflow: hidden;
}

.skill-progress::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(100%);
    }
}

.skill-progress.animated {
    width: var(--skill-width, 0%);
}

/* Projects Section */
.projects {
    padding: 6rem 0;
    background: var(--bg-primary);
}

.project-filters {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 0.75rem 1.5rem;
    background: transparent;
    color: var(--text-secondary);
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
    font-weight: 500;
}

.filter-btn.active,
.filter-btn:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.project-card {
    background: var(--bg-primary);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    border: 1px solid var(--border-color);
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
}

.project-image {
    height: 200px;
    background: var(--bg-tertiary);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.project-image .image-placeholder {
    font-size: 3rem;
    color: var(--primary-color);
    width: auto;
    height: auto;
    background: none;
    box-shadow: none;
}

.project-content {
    padding: 2rem;
}

.project-title {
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.project-description {
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.tech-tag {
    padding: 0.25rem 0.75rem;
    background: var(--bg-tertiary);
    color: var(--primary-light);
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

.project-links {
    display: flex;
    gap: 1rem;
}

.project-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
}

.project-link:hover {
    color: var(--primary-dark);
    transform: translateX(5px);
}

/* Achievements Section */
.achievements {
    padding: 100px 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    position: relative;
    overflow: hidden;
}

.achievements::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grid" width="40" height="40" patternUnits="userSpaceOnUse"><path d="M 40 0 L 0 0 0 40" fill="none" stroke="rgba(255, 255, 255, 0.05)" stroke-width="1"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
}

.achievements .container {
    position: relative;
    z-index: 1;
}

.achievements .section-title {
    color: #fff;
    text-align: center;
    margin-bottom: 60px;
    font-size: 2.5rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.achievements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.achievement-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 30px;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.achievement-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transform: rotate(45deg);
    transition: all 0.6s ease;
}

.achievement-card:hover::before {
    left: 100%;
}

.achievement-card:hover {
    transform: translateY(-15px) scale(1.03);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.achievement-icon {
    width: 100px;
    height: 100px;
    margin: 0 auto 25px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    position: relative;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

.trophy-gold {
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    color: #fff;
    box-shadow: 0 10px 30px rgba(255, 215, 0, 0.4);
}

.trophy-silver {
    background: linear-gradient(135deg, #C0C0C0 0%, #808080 100%);
    color: #fff;
    box-shadow: 0 10px 30px rgba(192, 192, 192, 0.4);
}

.trophy-bronze {
    background: linear-gradient(135deg, #CD7F32 0%, #8B4513 100%);
    color: #fff;
    box-shadow: 0 10px 30px rgba(205, 127, 50, 0.4);
}

.achievement-icon i {
    animation: rotate 4s linear infinite;
}

@keyframes rotate {
    0% {
        transform: rotate(0deg);
    }
    25% {
        transform: rotate(-10deg);
    }
    50% {
        transform: rotate(0deg);
    }
    75% {
        transform: rotate(10deg);
    }
    100% {
        transform: rotate(0deg);
    }
}

.achievement-content h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 10px;
    line-height: 1.4;
}

.achievement-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #667eea;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.achievement-description {
    font-size: 0.95rem;
    color: #4a5568;
    line-height: 1.6;
    margin-bottom: 20px;
}

.achievement-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    padding: 8px 20px;
    border-radius: 25px;
    font-size: 0.85rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.achievement-badge i {
    font-size: 1rem;
}

.achievement-card:hover .achievement-badge {
    transform: scale(1.1);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

/* Certifications Section */
.certifications {
    padding: 6rem 0;
    background: var(--bg-primary);
}

.certifications-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.certification-card {
    background: var(--bg-secondary);
    padding: 2rem;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.certification-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
}

.certification-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-color);
}

.cert-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2rem;
    color: white;
    transition: var(--transition);
}

.certification-card:hover .cert-icon {
    transform: scale(1.1) rotate(5deg);
}

.cert-content {
    text-align: center;
}

.cert-content h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
    min-height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cert-issuer {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 1rem;
}

.cert-badge {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

.cert-badge i {
    font-size: 1.5rem;
    color: var(--secondary-color);
    animation: pulse 2s infinite;
}

[data-theme="dark"] .cert-badge i {
    color: var(--primary-light);
}

/* ============================================
   Contact Section
============================================ */
.contact {
    padding: 100px 0;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    position: relative;
    overflow: hidden;
}

.contact::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 50%, rgba(120, 119, 198, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 80% 80%, rgba(102, 126, 234, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.contact .container {
    position: relative;
    z-index: 1;
}

.contact .section-title {
    text-align: center;
    margin-bottom: 60px;
    font-size: 2.5rem;
    color: #2d3748;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    max-width: 1200px;
    margin: 0 auto;
}

/* Contact Info Styles */
.contact-info {
    background: #fff;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.contact-info:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.15);
}

.contact-info h3 {
    font-size: 2rem;
    color: #2d3748;
    margin-bottom: 20px;
    font-weight: 700;
}

.contact-info > p {
    font-size: 1.1rem;
    color: #4a5568;
    line-height: 1.8;
    margin-bottom: 30px;
}

.contact-details {
    margin-bottom: 30px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 25px;
    padding: 20px;
    background: #f7fafc;
    border-radius: 15px;
    transition: all 0.3s ease;
    animation: slideInLeft 0.6s ease forwards;
    opacity: 0;
}

.contact-item:nth-child(1) {
    animation-delay: 0.2s;
}

.contact-item:nth-child(2) {
    animation-delay: 0.4s;
}

.contact-item:nth-child(3) {
    animation-delay: 0.6s;
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.contact-item:hover {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    transform: translateX(10px);
}

.contact-item:hover i {
    color: #fff;
    transform: scale(1.2);
}

.contact-item:hover h4,
.contact-item:hover p {
    color: #fff;
}

.contact-item i {
    font-size: 1.8rem;
    color: #667eea;
    min-width: 40px;
    transition: all 0.3s ease;
}

.contact-item div h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 5px;
    transition: all 0.3s ease;
}

.contact-item div p {
    font-size: 1rem;
    color: #4a5568;
    transition: all 0.3s ease;
}

.contact-info .social-links {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 30px;
    padding-top: 30px;
    border-top: 2px solid #e2e8f0;
}

.contact-info .social-links a {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    border-radius: 50%;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.contact-info .social-links a:hover {
    transform: translateY(-5px) rotate(360deg);
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.4);
}

/* Contact Form Styles */
.contact-form {
    background: #fff;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.contact-form:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.15);
}

.form-group {
    margin-bottom: 25px;
    animation: fadeInUp 0.6s ease forwards;
    opacity: 0;
}

.form-group:nth-child(1) {
    animation-delay: 0.2s;
}

.form-group:nth-child(2) {
    animation-delay: 0.3s;
}

.form-group:nth-child(3) {
    animation-delay: 0.4s;
}

.form-group:nth-child(4) {
    animation-delay: 0.5s;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.form-group label {
    display: block;
    font-size: 1rem;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 10px;
    transition: all 0.3s ease;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px 20px;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    font-size: 1rem;
    color: #2d3748;
    background: #f7fafc;
    transition: all 0.3s ease;
    font-family: 'Poppins', sans-serif;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #667eea;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
    transform: translateY(-2px);
}

.form-group input:focus + label,
.form-group textarea:focus + label {
    color: #667eea;
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.contact-form .btn {
    width: 100%;
    padding: 15px 30px;
    font-size: 1.1rem;
    font-weight: 600;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    animation: fadeInUp 0.6s ease 0.6s forwards;
    opacity: 0;
}

.contact-form .btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    position: relative;
    overflow: hidden;
}

.contact-form .btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: all 0.5s ease;
}

.contact-form .btn-primary:hover::before {
    left: 100%;
}

.contact-form .btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.4);
}

.contact-form .btn-primary:active {
    transform: translateY(-1px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

/* ============================================
   Footer Section
============================================ */
.footer {
    background: linear-gradient(135deg, #1a202c 0%, #2d3748 100%);
    color: #fff;
    padding: 60px 0 30px;
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 50%, #667eea 100%);
    background-size: 200% 100%;
    animation: gradientSlide 3s ease infinite;
}

@keyframes gradientSlide {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

.footer .container {
    position: relative;
    z-index: 1;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 2fr 1fr;
    gap: 40px;
    align-items: start;
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
}

.footer-info h3 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 10px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: fadeInUp 0.6s ease;
}

.footer-info p {
    font-size: 1rem;
    color: #cbd5e0;
    line-height: 1.6;
    animation: fadeInUp 0.6s ease 0.2s backwards;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    align-items: center;
}

.footer-links a {
    color: #cbd5e0;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    padding: 5px 0;
    animation: fadeInUp 0.6s ease backwards;
}

.footer-links a:nth-child(1) { animation-delay: 0.1s; }
.footer-links a:nth-child(2) { animation-delay: 0.2s; }
.footer-links a:nth-child(3) { animation-delay: 0.3s; }
.footer-links a:nth-child(4) { animation-delay: 0.4s; }
.footer-links a:nth-child(5) { animation-delay: 0.5s; }
.footer-links a:nth-child(6) { animation-delay: 0.6s; }
.footer-links a:nth-child(7) { animation-delay: 0.7s; }
.footer-links a:nth-child(8) { animation-delay: 0.8s; }

.footer-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    transition: width 0.3s ease;
}

.footer-links a:hover {
    color: #fff;
    transform: translateY(-2px);
}

.footer-links a:hover::after {
    width: 100%;
}

.footer .social-links {
    display: flex;
    gap: 15px;
    justify-content: flex-end;
}

.footer .social-links a {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border-radius: 50%;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    animation: fadeInUp 0.6s ease backwards;
}

.footer .social-links a:nth-child(1) { animation-delay: 0.2s; }
.footer .social-links a:nth-child(2) { animation-delay: 0.3s; }
.footer .social-links a:nth-child(3) { animation-delay: 0.4s; }
.footer .social-links a:nth-child(4) { animation-delay: 0.5s; }
.footer .social-links a:nth-child(5) { animation-delay: 0.6s; }

.footer .social-links a:hover {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.4);
}

.footer .social-links a svg {
    width: 20px;
    height: 20px;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    animation: fadeInUp 0.6s ease 0.8s backwards;
}

.footer-bottom p {
    color: #cbd5e0;
    font-size: 0.95rem;
    margin: 0;
}

/* ============================================
   Resume Section
============================================ */
.resume {
    padding: 100px 0;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    position: relative;
    overflow: hidden;
}

.resume::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 50%, rgba(102, 126, 234, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 70% 80%, rgba(118, 75, 162, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.resume .container {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 0 auto;
}

.resume .section-title {
    text-align: center;
    margin-bottom: 60px;
    font-size: 2.5rem;
    color: #2d3748;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.resume-content {
    max-width: 1100px;
    margin: 0 auto;
}

.resume-options {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    align-items: stretch;
}

.resume-card {
    background: #fff;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.resume-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(102, 126, 234, 0.1), transparent);
    transition: all 0.6s ease;
}

.resume-card:hover::before {
    left: 100%;
}

.resume-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.resume-icon {
    width: 100px;
    height: 100px;
    margin-bottom: 25px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
    transition: all 0.3s ease;
}

.resume-card:hover .resume-icon {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 15px 40px rgba(102, 126, 234, 0.4);
}

.resume-card h3 {
    font-size: 1.8rem;
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 15px;
}

.resume-card p {
    font-size: 1rem;
    color: #4a5568;
    line-height: 1.8;
    margin-bottom: 30px;
    flex-grow: 1;
}

.resume-actions {
    display: flex;
    flex-direction: column;
    gap: 15px;
    width: 100%;
}

.resume-actions .btn {
    width: 100%;
    padding: 15px 30px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 10px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.resume-actions .btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    border: none;
}

.resume-actions .btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: all 0.5s ease;
}

.resume-actions .btn-primary:hover::before {
    left: 100%;
}

.resume-actions .btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.4);
}

.resume-actions .btn-secondary {
    background: transparent;
    color: #667eea;
    border: 2px solid #667eea;
}

.resume-actions .btn-secondary:hover {
    background: #667eea;
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
}

/* ============================================
   Dark Mode Styles
============================================ */

/* Dark Mode Body */
body[data-theme="dark"] {
    background: #1a202c;
    color: #e2e8f0;
}

/* Dark Mode Section Titles */
body[data-theme="dark"] .section-title {
    color: #fff;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

/* Dark Mode Navbar */
body[data-theme="dark"] .navbar {
    background: rgba(26, 32, 44, 0.95) !important;
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

body[data-theme="dark"] .nav-logo,
body[data-theme="dark"] .nav-link {
    color: #fff;
}

body[data-theme="dark"] .nav-link:hover {
    color: #667eea;
}

body[data-theme="dark"] .nav-link.active {
    color: #667eea;
}

body[data-theme="dark"] .theme-toggle {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

/* Dark Mode Hero Section */
body[data-theme="dark"] .hero {
    background: linear-gradient(135deg, #1a202c 0%, #2d3748 100%);
}

body[data-theme="dark"] .hero-title,
body[data-theme="dark"] .hero-subtitle {
    color: #fff;
}

body[data-theme="dark"] .hero-description {
    color: #cbd5e0;
}

/* Dark Mode About Section */
body[data-theme="dark"] .about {
    background: #1a202c;
}

body[data-theme="dark"] .about .section-title {
    color: #fff;
}

body[data-theme="dark"] .intro-text {
    color: #cbd5e0;
}

body[data-theme="dark"] .timeline-content h4,
body[data-theme="dark"] .education h3,
body[data-theme="dark"] .experience h3 {
    color: #fff;
}

body[data-theme="dark"] .timeline-content p {
    color: #a0aec0;
}

body[data-theme="dark"] .timeline-item {
    background: rgba(45, 55, 72, 0.5);
}

body[data-theme="dark"] .stat-number {
    color: #fff;
}

body[data-theme="dark"] .stat-label {
    color: #cbd5e0;
}

/* Dark Mode Skills Section */
body[data-theme="dark"] .skills {
    background: linear-gradient(135deg, #2d3748 0%, #1a202c 100%);
}

body[data-theme="dark"] .skills .section-title {
    color: #fff;
}

body[data-theme="dark"] .skills-category {
    background: rgba(45, 55, 72, 0.8);
}

body[data-theme="dark"] .skills-category h3 {
    color: #fff;
}

body[data-theme="dark"] .skill-name {
    color: #cbd5e0;
}

body[data-theme="dark"] .skill-bar {
    background: rgba(74, 85, 104, 0.5);
}

/* Dark Mode Projects Section */
body[data-theme="dark"] .projects {
    background: #1a202c;
}

body[data-theme="dark"] .projects .section-title {
    color: #fff;
}

body[data-theme="dark"] .filter-btn {
    background: rgba(45, 55, 72, 0.8);
    color: #cbd5e0;
}

body[data-theme="dark"] .filter-btn:hover,
body[data-theme="dark"] .filter-btn.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
}

body[data-theme="dark"] .project-card {
    background: rgba(45, 55, 72, 0.8);
}

body[data-theme="dark"] .project-title {
    color: #fff;
}

body[data-theme="dark"] .project-description {
    color: #cbd5e0;
}

body[data-theme="dark"] .image-placeholder {
    background: rgba(74, 85, 104, 0.5);
    color: #667eea;
}

/* Dark Mode Achievements Section */
body[data-theme="dark"] .achievements {
    background: linear-gradient(135deg, #2d3748 0%, #1a202c 100%);
}

body[data-theme="dark"] .achievements .section-title {
    color: #fff;
}

body[data-theme="dark"] .achievement-card {
    background: rgba(45, 55, 72, 0.95);
    border: 1px solid rgba(102, 126, 234, 0.3);
}

body[data-theme="dark"] .achievement-card:hover {
    background: rgba(45, 55, 72, 1);
    border-color: rgba(102, 126, 234, 0.6);
}

body[data-theme="dark"] .achievement-content h3 {
    color: #fff;
}

body[data-theme="dark"] .achievement-title {
    color: #818cf8;
}

body[data-theme="dark"] .achievement-description {
    color: #cbd5e0;
}

/* Dark Mode Certifications Section */
body[data-theme="dark"] .certifications {
    background: #1a202c;
}

body[data-theme="dark"] .certifications .section-title {
    color: #fff;
}

body[data-theme="dark"] .certification-card {
    background: rgba(45, 55, 72, 0.8);
}

body[data-theme="dark"] .cert-content h3 {
    color: #fff;
}

body[data-theme="dark"] .cert-issuer {
    color: #cbd5e0;
}

/* Dark Mode Resume Section */
body[data-theme="dark"] .resume {
    background: linear-gradient(135deg, #2d3748 0%, #1a202c 100%);
}

body[data-theme="dark"] .resume .section-title {
    color: #fff;
}

body[data-theme="dark"] .resume-card {
    background: rgba(45, 55, 72, 0.8);
}

body[data-theme="dark"] .resume-card h3 {
    color: #fff;
}

body[data-theme="dark"] .resume-card p {
    color: #cbd5e0;
}

/* Dark Mode Contact Section */
body[data-theme="dark"] .contact {
    background: #1a202c;
}

body[data-theme="dark"] .contact .section-title {
    color: #fff;
}

body[data-theme="dark"] .contact-info,
body[data-theme="dark"] .contact-form {
    background: rgba(45, 55, 72, 0.8);
}

body[data-theme="dark"] .contact-info h3 {
    color: #fff;
}

body[data-theme="dark"] .contact-info > p {
    color: #cbd5e0;
}

body[data-theme="dark"] .contact-item {
    background: rgba(74, 85, 104, 0.3);
}

body[data-theme="dark"] .contact-item div h4 {
    color: #fff;
}

body[data-theme="dark"] .contact-item div p {
    color: #cbd5e0;
}

body[data-theme="dark"] .form-group label {
    color: #fff;
}

.form-group input,
.form-group textarea {
    background: rgba(74, 85, 104, 0.3);
    border-color: #4a5568;
    color: #fff;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #a0aec0;
}

.form-group input:focus,
.form-group textarea:focus {
    background: rgba(74, 85, 104, 0.5);
    border-color: #667eea;
}

/* Dark Mode Footer */
body[data-theme="dark"] .footer {
    background: linear-gradient(135deg, #0d1117 0%, #1a202c 100%);
}

body[data-theme="dark"] .footer-info h3 {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Dark Mode Mobile Navigation */
body[data-theme="dark"] .nav-menu {
    background: rgba(26, 32, 44, 0.98);
}

body[data-theme="dark"] .hamburger .bar {
    background: #fff;
}

/* Scroll Progress Bar Dark Mode */
body[data-theme="dark"] .scroll-progress {
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
}

/* ============================================
   Responsive Design - Mobile & Tablet
============================================ */

/* Tablet Landscape (992px - 1199px) */
@media (max-width: 1199px) {
    .container {
        padding: 0 30px;
    }
    
    .hero-container,
    .about-content,
    .contact-content {
        gap: 40px;
    }
}

/* Tablet Portrait (768px - 991px) */
@media (max-width: 991px) {
    /* Navigation */
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background: rgba(255, 255, 255, 0.98);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        backdrop-filter: blur(10px);
        padding: 20px 0;
        max-height: calc(100vh - 70px);
        overflow-y: auto;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-link {
        margin: 15px 0;
    }

    .hamburger {
        display: block;
        cursor: pointer;
    }

    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    /* Hero Section */
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-image {
        order: -1;
        margin-bottom: 30px;
    }

    .hero-content {
        align-items: center;
    }

    .hero-title {
        font-size: 2.2rem;
    }

    .hero-subtitle {
        font-size: 1.3rem;
    }

    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }

    .hero-buttons .btn {
        width: 100%;
    }

    /* About Section */
    .stats-container {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 20px;
    }

    /* Skills Section */
    .skills-container {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }

    /* Projects Section */
    .projects-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }

    /* Achievements Section */
    .achievements {
        padding: 80px 0;
    }

    .achievements-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 25px;
    }

    /* Certifications Section */
    .certifications-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }

    /* Resume Section */
    .resume-options {
        gap: 30px;
    }

    /* Contact Section */
    .contact-content {
        grid-template-columns: 1fr;
    }

    /* Footer */
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 30px;
    }

    .footer-links {
        flex-wrap: wrap;
        justify-content: center;
    }

    .footer .social-links {
        justify-content: center;
    }
}

/* Mobile Large (576px - 767px) */
@media (max-width: 767px) {
    /* General */
    .section-title {
        font-size: 2rem;
        margin-bottom: 40px;
    }

    .container {
        padding: 0 20px;
    }

    /* Navigation */
    .navbar {
        padding: 15px 0;
    }

    .nav-logo {
        font-size: 1.3rem;
    }

    /* Hero Section */
    .hero {
        padding: 100px 0 60px;
    }

    .hero-title {
        font-size: 1.8rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .hero-description {
        font-size: 0.95rem;
    }

    .image-placeholder {
        width: 250px;
        height: 250px;
    }

    .social-links {
        gap: 12px;
        flex-wrap: wrap;
        justify-content: center;
    }

    .social-links a {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    /* About Section */
    .about,
    .skills,
    .projects,
    .achievements,
    .certifications,
    .resume,
    .contact {
        padding: 60px 0;
    }

    .stats-container {
        grid-template-columns: 1fr;
        padding: 1.5rem;
    }

    .stat-number {
        font-size: 2.5rem;
    }

    .timeline-item {
        padding-left: 30px;
    }

    .timeline-item::before {
        left: 0;
    }

    .timeline-date {
        font-size: 0.85rem;
        margin-bottom: 8px;
    }

    /* Skills Section */
    .skills-container {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .skills-category {
        padding: 1.5rem;
    }

    .skills-category h3 {
        font-size: 1.3rem;
    }

    .skill-name {
        font-size: 0.9rem;
    }

    /* Projects Section */
    .project-filters {
        flex-wrap: wrap;
        gap: 10px;
    }

    .filter-btn {
        font-size: 0.85rem;
        padding: 8px 16px;
    }

    .projects-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .project-card {
        padding: 25px;
    }

    .project-title {
        font-size: 1.3rem;
    }

    .project-description {
        font-size: 0.9rem;
    }

    .tech-tag {
        font-size: 0.75rem;
        padding: 5px 12px;
    }

    /* Achievements Section */
    .achievements {
        padding: 60px 0;
    }

    .achievements .section-title {
        font-size: 2rem;
        margin-bottom: 40px;
    }

    .achievements-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .achievement-card {
        padding: 25px;
    }

    .achievement-icon {
        width: 80px;
        height: 80px;
        font-size: 2.5rem;
        margin-bottom: 20px;
    }

    .achievement-content h3 {
        font-size: 1.2rem;
    }

    .achievement-title {
        font-size: 1rem;
    }

    .achievement-description {
        font-size: 0.9rem;
    }

    .achievement-badge {
        font-size: 0.8rem;
        padding: 6px 16px;
    }

    /* Certifications Section */
    .certifications-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .certification-card {
        padding: 30px 20px;
    }

    .cert-icon {
        width: 70px;
        height: 70px;
        font-size: 2rem;
    }

    .cert-content h3 {
        font-size: 1.1rem;
        min-height: auto;
    }

    /* Resume Section */
    .resume-options {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .resume-card {
        padding: 30px 25px;
    }

    .resume-icon {
        width: 80px;
        height: 80px;
        font-size: 2.5rem;
    }

    .resume-card h3 {
        font-size: 1.5rem;
    }

    .resume-card p {
        font-size: 0.95rem;
    }

    .resume-actions .btn {
        padding: 12px 20px;
        font-size: 0.95rem;
    }

    /* Contact Section */
    .contact-info,
    .contact-form {
        padding: 30px 20px;
    }

    .contact-info h3 {
        font-size: 1.6rem;
    }

    .contact-item {
        padding: 15px;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .contact-item i {
        font-size: 1.5rem;
        margin-bottom: 10px;
    }

    .form-group input,
    .form-group textarea {
        font-size: 0.95rem;
    }

    /* Footer */
    .footer {
        padding: 40px 0 20px;
    }

    .footer-info h3 {
        font-size: 1.5rem;
    }

    .footer-links {
        flex-direction: column;
        gap: 12px;
    }

    .footer-links a {
        font-size: 0.95rem;
    }
}

/* Mobile Small (320px - 575px) */
@media (max-width: 575px) {
    .hero-title {
        font-size: 1.5rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .hero-description {
        font-size: 0.9rem;
    }

    .image-placeholder {
        width: 220px;
        height: 220px;
    }

    .btn {
        font-size: 0.9rem;
        padding: 10px 20px;
    }

    .section-title {
        font-size: 1.7rem;
    }

    .achievement-icon,
    .resume-icon {
        width: 70px;
        height: 70px;
        font-size: 2rem;
    }

    .project-card,
    .achievement-card,
    .certification-card,
    .resume-card {
        padding: 20px;
    }

    .achievement-content h3 {
        font-size: 1.1rem;
    }

    .achievement-description {
        font-size: 0.85rem;
        margin-bottom: 15px;
    }

    .achievement-badge {
        font-size: 0.75rem;
        padding: 5px 14px;
    }
}

/* Landscape Mode Fix for Mobile */
@media (max-height: 600px) and (orientation: landscape) {
    .hero {
        padding: 80px 0 40px;
    }

    .image-placeholder {
        width: 180px;
        height: 180px;
    }

    section {
        padding: 50px 0;
    }

    .achievements {
        padding: 50px 0;
    }
}

/* Prevent horizontal scroll */
body {
    overflow-x: hidden;
}

* {
    max-width: 100%;
}

/* Ensure images don't overflow */
img {
    max-width: 100%;
    height: auto;
}

/* Dark theme mobile adjustments */
[data-theme="dark"] .timeline-item:hover .timeline-content {
    background: var(--bg-tertiary);
}

[data-theme="dark"] .project-link {
    background: var(--bg-tertiary);
}

/* Safe area for notched devices (iPhone X+) */
@supports (padding: max(0px)) {
    .navbar {
        padding-left: max(env(safe-area-inset-left), 0);
        padding-right: max(env(safe-area-inset-right), 0);
    }
    
    .container {
        padding-left: max(env(safe-area-inset-left), 1rem);
        padding-right: max(env(safe-area-inset-right), 1rem);
    }
    
    .footer {
        padding-bottom: max(env(safe-area-inset-bottom), 1rem);
    }
}
