:root {
    --primary-color: #0ea5e9;
    --secondary-color: #06b6d4;
    --accent-color: #f97316;
    --success-color: #10b981;
    --bg-color: #0a0a0a;
    --surface-color: #111111;
    --surface-light: #1a1a1a;
    --text-primary: #ffffff;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    --border-color: #1e293b;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1);
    --gradient-1: linear-gradient(135deg, #0ea5e9 0%, #06b6d4 100%);
    --gradient-2: linear-gradient(135deg, #f97316 0%, #fb923c 100%);
    --gradient-3: linear-gradient(135deg, #0ea5e9 0%, #10b981 100%);
    --gradient-dark: linear-gradient(180deg, rgba(10, 10, 10, 0) 0%, rgba(10, 10, 10, 0.8) 100%);
}

[data-theme="light"] {
    --bg-color: #ffffff;
    --surface-color: #f8fafc;
    --surface-light: #ffffff;
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #94a3b8;
    --border-color: #e2e8f0;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.2);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.25);
    --gradient-dark: linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, rgba(248, 250, 252, 0.8) 100%);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-primary);
    overflow-x: hidden;
    line-height: 1.6;
    font-weight: 400;
    cursor: auto;
}

/* Ensure proper cursors for interactive elements */
a,
button,
.skill-tag,
.client-card,
.tech-badge,
.nav-link,
.social-links a,
.cert-link {
    cursor: pointer;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(10, 10, 10, 0.8);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 1rem 0;
    transition: all 0.3s ease;
}

[data-theme="light"] .navbar {
    background: rgba(255, 255, 255, 0.8);
}

.navbar.scrolled {
    background: rgba(10, 10, 10, 0.95);
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .navbar.scrolled {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.1);
}

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

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

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

.nav-link:hover {
    color: var(--text-primary);
}

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

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.theme-toggle {
    background: var(--surface-light);
    border: 1px solid var(--border-color);
    border-radius: 50px;
    width: 60px;
    height: 30px;
    cursor: pointer !important;
    padding: 3px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.theme-toggle:hover {
    border-color: var(--primary-color);
}

.theme-toggle-inner {
    display: block;
    width: 24px;
    height: 24px;
    background: var(--accent-color);
    border-radius: 50%;
    transition: transform 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

[data-theme="light"] .theme-toggle-inner {
    transform: translateX(30px);
    background: var(--primary-color);
}

.toggle-icon {
    font-size: 14px;
    line-height: 1;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer !important;
}

.hamburger 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;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.hero-background::before {
    content: '';
    position: absolute;
    top: 20%;
    right: 20%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(14, 165, 233, 0.12) 0%, transparent 65%);
    border-radius: 50%;
    pointer-events: none;
}

.hero-background::after {
    content: '';
    position: absolute;
    bottom: 20%;
    left: 5%;
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, rgba(6, 182, 212, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.animated-bg {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    opacity: 0.05;
}

.hero-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-text h1 {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 700;
    margin-bottom: 1rem;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: fadeInUp 1s ease;
    letter-spacing: -0.02em;
}

.glitch {
    position: relative;
    text-shadow: 0.05em 0 0 var(--primary-color), -0.025em -0.05em 0 var(--secondary-color), 0.025em 0.05em 0 var(--accent-color);
    animation: glitch 500ms infinite;
}

@keyframes glitch {

    0%,
    14%,
    16%,
    49%,
    51%,
    100% {
        text-shadow: 0.05em 0 0 var(--primary-color), -0.025em -0.05em 0 var(--secondary-color), 0.025em 0.05em 0 var(--accent-color);
    }

    15% {
        text-shadow: 0.05em 0 0 var(--primary-color), -0.025em -0.05em 0 var(--secondary-color), 0.025em 0.05em 0 var(--accent-color);
    }

    50% {
        text-shadow: -0.05em -0.025em 0 var(--primary-color), 0.025em 0.025em 0 var(--secondary-color), -0.05em -0.05em 0 var(--accent-color);
    }
}

.hero-subtitle {
    font-size: clamp(1.25rem, 2.5vw, 1.75rem);
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    animation: fadeInUp 1s ease 0.2s both;
    font-weight: 500;
}

.hero-description {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    animation: fadeInUp 1s ease 0.4s both;
}

.current-position {
    margin-bottom: 1rem;
    animation: fadeInUp 1s ease 0.3s both;
}

.position-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(14, 165, 233, 0.1);
    color: var(--primary-color);
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    border: 1px solid rgba(14, 165, 233, 0.2);
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.position-badge::before {
    content: '';
    position: absolute;
    top: 50%;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.position-badge:hover::before {
    left: 100%;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    animation: fadeInUp 1s ease 0.6s both;
}

.btn {
    padding: 0.875rem 2rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.95rem;
}

.btn-primary {
    background: var(--gradient-1);
    color: white;
    box-shadow: 0 0 20px rgba(14, 165, 233, 0.35), var(--shadow-md);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 30px rgba(14, 165, 233, 0.5), var(--shadow-lg);
    opacity: 0.92;
}

.btn-secondary {
    background: rgba(14, 165, 233, 0.08);
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

.hero-image {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2rem;
}

.hero-photo-wrapper {
    width: 220px;
    height: 220px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid var(--primary-color);
    box-shadow: 0 0 40px rgba(14, 165, 233, 0.4), 0 0 80px rgba(14, 165, 233, 0.15);
    flex-shrink: 0;
    animation: fadeInUp 1s ease 0.3s both;
}

.hero-profile-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 10%;
    transition: transform 0.4s ease;
}

.hero-photo-wrapper:hover .hero-profile-img {
    transform: scale(1.05);
}

.tech-stack-visual {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    padding: 2rem;
}

.tech-badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    padding: 2rem;
    background: var(--surface-light);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
}

.tech-badge i {
    font-size: 2.5rem;
    color: var(--primary-color);
}

.go-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    font-weight: bold;
}

.tech-badge span {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.tech-badge:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.tech-badge:hover i {
    color: var(--secondary-color);
    transform: scale(1.1);
}

.tech-badge:hover .go-icon {
    color: var(--secondary-color);
    transform: scale(1.1);
}

.tech-badge:hover span {
    color: var(--text-primary);
}

/* Scroll indicator removed for cleaner design */

/* Sections */
section {
    padding: 6rem 0;
    position: relative;
}

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

.section-title {
    font-size: clamp(2rem, 4vw, 2.5rem);
    font-weight: 700;
    text-align: center;
    margin-bottom: 4rem;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.02em;
}

/* About Section */
.about {
    background: var(--surface-color);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-text .lead {
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.about-text p {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 2rem;
}

.about-stats {
    display: flex;
    gap: 2rem;
}

.stat {
    text-align: center;
}

.stat h3 {
    font-size: 2.5rem;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

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

.image-card {
    width: 100%;
    height: 500px;
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.profile-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 10%;
    transition: transform 0.3s ease;
}

.image-card:hover .profile-img {
    transform: scale(1.05);
}

/* Skills Section */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.skill-category {
    background: var(--surface-light);
    padding: 2.5rem;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
}

.skill-category:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.skill-category h3 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.skill-tag {
    background: rgba(14, 165, 233, 0.08);
    color: var(--primary-color);
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.2s ease;
    border: 1px solid transparent;
    position: relative;
    overflow: hidden;
}

.skill-tag::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;
}

.skill-tag:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 5px 15px rgba(14, 165, 233, 0.3);
}

.skill-tag:hover::before {
    left: 100%;
}

/* Touch state for mobile */
.skill-tag.touched {
    background: var(--primary-color) !important;
    color: white !important;
    transform: translateY(-3px) scale(1.05) !important;
    box-shadow: 0 5px 15px rgba(14, 165, 233, 0.3) !important;
}

.tech-badge.touched {
    transform: translateY(-5px) !important;
    box-shadow: var(--shadow-lg) !important;
    border-color: var(--primary-color) !important;
}

.tech-badge.touched i,
.tech-badge.touched .go-icon {
    color: var(--secondary-color) !important;
    transform: scale(1.1) !important;
}

.tech-badge.touched span {
    color: var(--text-primary) !important;
}

/* Experience Section */
.experience {
    background: var(--surface-color);
}

.timeline {
    position: relative;
    padding-left: 2rem;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 2px;
    height: 100%;
    background: var(--gradient-1);
}

.timeline-item {
    position: relative;
    padding-bottom: 3rem;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -2.5rem;
    top: 0;
    width: 12px;
    height: 12px;
    background: var(--primary-color);
    border-radius: 50%;
    box-shadow: 0 0 0 4px var(--bg-color);
}

.timeline-date {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.timeline-content {
    background: var(--surface-light);
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}

.timeline-content:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--primary-color);
}

.timeline-content h3 {
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.timeline-content h4 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.timeline-content p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tech-stack span {
    background: rgba(14, 165, 233, 0.08);
    color: var(--primary-color);
    padding: 0.4rem 0.8rem;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 500;
}

/* Education Section */
.education {
    background: var(--bg-color);
    padding: 5rem 0;
}

.education-content {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 3rem;
}

.education-item {
    display: flex;
    align-items: center;
    gap: 2rem;
    background: var(--surface-light);
    padding: 2rem 3rem;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
}

.education-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.education-icon {
    font-size: 3rem;
    color: var(--primary-color);
}

.education-details h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.education-details h4 {
    font-size: 1.2rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

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

/* Clients Section */
.clients-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.client-card {
    background: var(--surface-light);
    padding: 2.5rem;
    border-radius: 12px;
    text-align: center;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
}

.client-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.client-logo {
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.client-logo img,
.client-logo svg {
    max-height: 80px;
    max-width: 250px;
    width: 100%;
    height: auto;
    filter: grayscale(100%) opacity(0.7);
    transition: all 0.3s ease;
}

.client-card:hover .client-logo img,
.client-card:hover .client-logo svg {
    filter: grayscale(0%) opacity(1);
    transform: scale(1.05);
}

.viewrail-logo svg {
    max-width: 300px;
}

.client-card h3 {
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.client-card p {
    color: var(--text-secondary);
}

/* Contact Section */
.contact {
    background: var(--surface-color);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.contact-info h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.contact-info p {
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.contact-item i {
    color: var(--primary-color);
    font-size: 1.2rem;
}

.contact-item a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-item a:hover {
    color: var(--primary-color);
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.social-links a {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-color);
    border-radius: 50%;
    color: var(--primary-color);
    font-size: 1.3rem;
    transition: all 0.3s ease;
}

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

/* Contact Form */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    background: var(--bg-color);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    color: var(--text-primary);
    font-family: inherit;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

/* Footer */
.footer {
    background: var(--bg-color);
    padding: 2rem 0;
    text-align: center;
    border-top: 1px solid var(--border-color);
}

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

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

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media (max-width: 768px) {

    /* Mobile Navigation */
    .navbar {
        padding: 0.75rem 0;
    }

    .nav-container {
        padding: 0 1rem;
    }

    .logo {
        font-size: 1.25rem;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 56px;
        flex-direction: column;
        background-color: var(--bg-color);
        width: 100%;
        height: calc(100vh - 56px);
        text-align: center;
        transition: 0.3s ease;
        box-shadow: var(--shadow-xl);
        padding: 2rem 1rem;
        display: flex;
        gap: 0;
        z-index: 999;
        backdrop-filter: blur(20px);
        overflow-y: auto;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-link {
        font-size: 1.125rem;
        padding: 1.25rem;
        display: block;
        width: 100%;
        border-radius: 8px;
        margin: 0.25rem 0;
        font-weight: 500;
    }

    .nav-link:hover,
    .nav-link:active {
        background: var(--surface-light);
        color: var(--primary-color);
    }

    .nav-link::after {
        display: none;
    }

    .hamburger {
        display: flex;
    }

    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .hamburger.active span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    /* Hero Section Mobile */
    .hero {
        min-height: 100vh;
        padding-top: 60px;
    }

    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
        padding: 2rem 1rem;
    }

    .hero-text h1 {
        font-size: clamp(1.75rem, 7vw, 2.5rem);
        line-height: 1.2;
        margin-bottom: 0.75rem;
    }

    .hero-subtitle {
        font-size: clamp(1rem, 3vw, 1.25rem);
        margin-bottom: 1rem;
    }

    .hero-description {
        font-size: 0.95rem;
        line-height: 1.6;
        margin-bottom: 1.5rem;
    }

    .current-position {
        margin-bottom: 1.5rem;
    }

    .position-badge {
        font-size: 0.85rem;
        padding: 0.6rem 1rem;
    }

    .hero-cta {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 0.75rem;
        width: 100%;
        justify-content: center;
    }

    .hero-cta .btn {
        width: auto;
        text-align: center;
        padding: 0.75rem 1.25rem;
        font-size: 0.9rem;
    }

    .hero-cta .btn-primary {
        flex: 1 1 100%;
        width: 100%;
        padding: 0.9rem 1.5rem;
        font-size: 1rem;
        justify-content: center;
    }

    .hero-cta .btn-secondary,
    .hero-cta .btn-outline {
        flex: 1;
        justify-content: center;
    }

    .hero-image {
        order: -1;
        margin-top: 0;
        gap: 1.25rem;
    }

    .hero-photo-wrapper {
        width: 140px;
        height: 140px;
    }

    .tech-stack-visual {
        padding: 0;
        gap: 1rem;
    }

    .tech-badge {
        padding: 1.5rem 1rem;
        -webkit-tap-highlight-color: transparent;
    }

    .tech-badge i {
        font-size: 2rem;
    }

    .go-logo {
        width: 2rem;
        height: 2rem;
    }

    .tech-badge span {
        font-size: 0.8rem;
    }

    /* About Section Mobile */
    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .about-text .lead {
        font-size: 1.1rem;
    }

    .about-stats {
        justify-content: space-between;
        gap: 0.5rem;
        padding: 1.5rem;
        background: var(--surface-light);
        border-radius: 12px;
        margin-top: 2rem;
    }

    .stat {
        flex: 1;
    }

    .stat h3 {
        font-size: 1.75rem;
        margin-bottom: 0.25rem;
    }

    .stat p {
        font-size: 0.8rem;
    }

    .image-card {
        height: 350px;
        border-radius: 12px;
        margin: 0 auto;
        max-width: 400px;
    }

    /* Skills Mobile */
    .skills-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .skill-category {
        padding: 1.75rem;
    }

    .skill-category h3 {
        font-size: 1.1rem;
        margin-bottom: 1rem;
    }

    .skill-tags {
        gap: 0.4rem;
    }

    .skill-tag {
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
        -webkit-tap-highlight-color: transparent;
    }

    /* Remove hover on mobile - use JS instead */
    .skill-tag:hover {
        background: rgba(14, 165, 233, 0.08);
        color: var(--primary-color);
        transform: none;
        box-shadow: none;
    }

    /* Timeline Mobile */
    .timeline {
        padding-left: 1.5rem;
    }

    .timeline::before {
        left: 0.5rem;
    }

    .timeline-item {
        padding-bottom: 2rem;
    }

    .timeline-item::before {
        left: -1rem;
        width: 10px;
        height: 10px;
    }

    .timeline-content {
        padding: 1.5rem;
    }

    .timeline-content h3 {
        font-size: 1.1rem;
    }

    .timeline-content h4 {
        font-size: 0.95rem;
    }

    .timeline-content p {
        font-size: 0.9rem;
        line-height: 1.6;
    }

    .tech-stack {
        gap: 0.4rem;
    }

    .tech-stack span {
        font-size: 0.75rem;
        padding: 0.3rem 0.6rem;
    }

    /* Contact Mobile */
    .contact-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .contact-info {
        text-align: center;
    }

    .contact-info h3 {
        font-size: 1.5rem;
    }

    .contact-details {
        margin: 2rem 0;
    }

    .contact-item {
        justify-content: center;
        padding: 0.5rem 0;
    }

    .contact-item i {
        font-size: 1rem;
    }

    .contact-item a {
        font-size: 0.95rem;
    }

    .social-links {
        justify-content: center;
        gap: 1.5rem;
    }

    .social-links a {
        width: 45px;
        height: 45px;
        font-size: 1.2rem;
    }

    .contact-form {
        padding: 0 1rem;
    }

    .form-group input,
    .form-group textarea {
        font-size: 16px;
        /* Prevents zoom on iOS */
    }

    /* General Mobile Adjustments */
    section {
        padding: 4rem 0;
    }

    .section-title {
        font-size: clamp(1.75rem, 5vw, 2rem);
        margin-bottom: 2.5rem;
    }

    .container {
        padding: 0 1rem;
    }

    /* Education Mobile */
    .education-item {
        flex-direction: column;
        text-align: center;
        padding: 2rem 1.5rem;
    }

    .education-icon {
        font-size: 2.5rem;
        margin-bottom: 1rem;
    }

    .education-details h3 {
        font-size: 1.25rem;
    }

    .education-details h4 {
        font-size: 1rem;
    }

    /* Certifications Mobile */
    .certifications-grid {
        grid-template-columns: 1fr;
    }

    .certification-card {
        padding: 2rem;
    }

    .cert-icon {
        font-size: 2.5rem;
    }

    .certification-card h3 {
        font-size: 1.1rem;
    }

    /* Clients Mobile */
    .clients-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .client-card {
        padding: 2rem 1.5rem;
    }

    .client-logo {
        height: 80px;
    }

    /* Theme Toggle Mobile */
    .theme-toggle {
        width: 50px;
        height: 26px;
        padding: 2px;
    }

    .theme-toggle-inner {
        width: 22px;
        height: 22px;
    }

    [data-theme="light"] .theme-toggle-inner {
        transform: translateX(24px);
    }

    .toggle-icon {
        font-size: 12px;
    }

}

/* Fix horizontal scrolling on mobile */
@media (max-width: 768px) {

    html,
    body {
        overflow-x: hidden;
    }
}

/* Smaller Mobile Devices */
@media (max-width: 480px) {
    .hero-text h1 {
        font-size: clamp(1.5rem, 8vw, 2rem);
        word-break: break-word;
        hyphens: auto;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .hero-description {
        font-size: 0.875rem;
    }

    .position-badge {
        font-size: 0.75rem;
        padding: 0.5rem 0.75rem;
    }

    .nav-container {
        padding: 0 0.75rem;
    }

    .logo {
        font-size: 1.1rem;
    }

    .skill-tag {
        font-size: 0.75rem;
        padding: 0.35rem 0.7rem;
    }

    .skill-tag:hover {
        background: rgba(14, 165, 233, 0.08);
        color: var(--primary-color);
        transform: none;
    }

    .timeline-date {
        font-size: 0.75rem;
    }

    .timeline-content h3 {
        font-size: 1rem;
    }

    .timeline-content h4 {
        font-size: 0.875rem;
    }

    .timeline-content p {
        font-size: 0.85rem;
    }

    .tech-stack span {
        font-size: 0.7rem;
        padding: 0.25rem 0.5rem;
    }

    .tech-badge {
        padding: 1.25rem 0.75rem;
        -webkit-tap-highlight-color: transparent;
    }

    .tech-badge i {
        font-size: 1.75rem;
    }

    .go-logo {
        width: 1.75rem;
        height: 1.75rem;
    }

    .tech-badge span {
        font-size: 0.75rem;
    }

    /* Adjust buttons */
    .btn {
        padding: 0.875rem 1.25rem;
        font-size: 0.9rem;
    }

    /* Stats on small screens */
    .stat h3 {
        font-size: 1.5rem;
    }

    .stat p {
        font-size: 0.7rem;
    }

    /* Section spacing */
    section {
        padding: 3rem 0;
    }

    .section-title {
        font-size: 1.5rem;
    }
}

/* Landscape Mobile */
@media (max-width: 768px) and (orientation: landscape) {
    .hero {
        min-height: auto;
        padding: 5rem 0 3rem;
    }

    .hero-text h1 {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1.2rem;
    }
}

/* Tablet Styles */
@media (min-width: 769px) and (max-width: 1024px) {
    .hero-content {
        gap: 2rem;
    }

    .hero-text h1 {
        font-size: 3rem;
    }

    .image-container {
        width: 300px;
        height: 300px;
    }

    .float-icon {
        font-size: 2rem;
    }

    .skills-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .clients-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Scroll Progress Bar - Removed for cleaner design */

/* Loading Animation */
.loader-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-color);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 99999;
    transition: opacity 0.3s ease;
}

.loader {
    text-align: center;
}

.loader-text {
    font-size: 3rem;
    font-weight: 800;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 2rem;
    animation: pulse 2s ease infinite;
}

.loader-bar {
    width: 200px;
    height: 4px;
    background: var(--surface-color);
    border-radius: 2px;
    overflow: hidden;
    position: relative;
}

.loader-bar::after {
    content: "";
    position: absolute;
    left: -200px;
    width: 200px;
    height: 100%;
    background: var(--gradient-1);
    animation: loading 2s ease infinite;
}

@keyframes loading {
    to {
        left: 200px;
    }
}

/* Button Outline Style */
.btn-outline {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
}

.btn-outline:hover {
    background: var(--surface-light);
    color: var(--text-primary);
    border-color: var(--primary-color);
}

/* Projects Section */
.projects {
    background: var(--surface-color);
    padding: 5rem 0;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.project-card {
    background: var(--bg-color);
    padding: 2rem;
    border-radius: 15px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 40px rgba(99, 102, 241, 0.1);
}

.project-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.project-header h3 {
    font-size: 1.3rem;
    color: var(--text-primary);
}

.project-links {
    display: flex;
    gap: 1rem;
}

.project-link {
    color: var(--text-secondary);
    font-size: 1.2rem;
    transition: color 0.3s ease;
}

.project-link:hover {
    color: var(--primary-color);
}

.project-card p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.project-tech span {
    background: rgba(99, 102, 241, 0.1);
    color: var(--primary-color);
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.85rem;
}

/* Certifications Section */
.certifications {
    background: var(--bg-color);
    padding: 5rem 0;
}

.certifications-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.certification-card {
    background: var(--surface-light);
    padding: 2.5rem;
    border-radius: 12px;
    text-align: center;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
}

.certification-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.cert-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.certification-card h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.certification-card p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.cert-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.cert-link:hover {
    transform: translateX(5px);
}

/* Testimonials Section */
.testimonials {
    background: var(--surface-color);
    padding: 5rem 0;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.testimonial-card {
    background: var(--bg-color);
    padding: 2rem;
    border-radius: 20px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 40px rgba(99, 102, 241, 0.1);
}

.testimonial-content {
    margin-bottom: 1.5rem;
}

.testimonial-content p {
    color: var(--text-secondary);
    line-height: 1.8;
    font-style: italic;
    position: relative;
}

.testimonial-content p::before {
    content: "" ";
 position: absolute;
    left: -20px;
    top: -10px;
    font-size: 3rem;
    color: var(--primary-color);
    opacity: 0.3;
}

.testimonial-author h4 {
    color: var(--text-primary);
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
}

.testimonial-author p {
    color: var(--primary-color);
    font-size: 0.9rem;
}

/* Mobile Responsive Updates */
@media (max-width: 768px) {

    .projects-grid,
    .testimonials-grid {
        grid-template-columns: 1fr;
    }

    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--surface-color);
        flex-direction: column;
        padding: 1rem 0;
    }

    .nav-menu.active {
        display: flex;
    }

    .hero-cta {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 0.75rem;
        justify-content: center;
    }

    .hero-cta .btn {
        width: auto;
    }

    .hero-cta .btn-primary {
        flex: 1 1 100%;
        width: 100%;
        justify-content: center;
    }

    .hero-cta .btn-secondary,
    .hero-cta .btn-outline {
        flex: 1;
        justify-content: center;
    }

    /* Additional mobile improvements */
    .section-title {
        font-size: 2rem;
    }

    .hero-text h1 {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .hero-description {
        font-size: 0.9rem;
    }

    /* Fix timeline for mobile */
    .timeline-content h3 {
        font-size: 1.1rem;
    }

    .timeline-content h4 {
        font-size: 1rem;
    }

    .timeline-content p {
        font-size: 0.9rem;
    }

    /* Better spacing on mobile */
    section {
        padding: 3rem 0;
    }

    .container {
        padding: 0 1rem;
    }

    /* Certifications mobile */
    .certifications-grid {
        grid-template-columns: 1fr;
    }

    /* Position badge mobile */
    .position-badge {
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
    }

    /* Education mobile */
    .education-item {
        flex-direction: column;
        text-align: center;
    }

    /* Contact form mobile */
    .contact-content {
        flex-direction: column;
    }

    .contact-form {
        width: 100%;
    }

}

/* Beyond Code Section */
.beyond-code {
    padding: 5rem 0;
    background: var(--surface-color);
}

.section-subtitle {
    text-align: center;
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.movies-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.movie-card {
    background: transparent;
    border-radius: 0;
    overflow: hidden;
    transition: all 0.3s ease;
    border: none;
    position: relative;
    cursor: pointer;
    display: block;
    width: 100%;
    height: fit-content;
    padding: 0;
    margin: 0;
}

.movie-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-color);
}

.movie-poster {
    position: relative;
    width: 100%;
    height: 400px;
    overflow: hidden;
    border-radius: 0;
    padding: 0;
    margin: 0;
}

.movie-poster img {
    width: 100%;
    height: 400px;
    object-fit: contain;
    object-position: center;
    display: block;
    transition: transform 0.3s ease;
    padding: 0;
    margin: 0;
    border-radius: 0;
}

.movie-card:hover .movie-poster img {
    transform: scale(1.05);
}

.movie-info {
    padding: 1.5rem;
    background: var(--gradient-dark);
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    backdrop-filter: blur(10px);
    opacity: 0;
    transform: translateY(100%);
    transition: all 0.3s ease;
    pointer-events: none;
}

.movie-info h3 {
    color: var(--text-primary);
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.movie-year {
    color: var(--primary-color);
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 0.75rem;
}

.movie-quote {
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-style: italic;
    line-height: 1.4;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
}

.movie-card:hover .movie-info {
    opacity: 1;
    transform: translateY(0);
}

.movie-card:hover .movie-quote {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 768px) {
    .movies-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .movie-poster {
        height: 300px;
    }

    .movie-poster img {
        height: 300px;
    }

    .movie-info {
        padding: 1rem;
    }

    .movie-quote {
        opacity: 1;
        transform: translateY(0);
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .movies-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .movie-poster {
        height: 400px;
    }

    .movie-poster img {
        height: 400px;
    }

    .movie-info {
        padding: 0.8rem;
    }

    .movie-info h3 {
        font-size: 1.1rem;
    }

    .movie-year {
        font-size: 0.8rem;
    }

    .movie-quote {
        font-size: 0.8rem;
        opacity: 1;
        transform: translateY(0);
    }
}