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

:root {
    --primary-color: #3b82f6;
    --secondary-color: #60a5fa;
    --text-dark: #f8fafc;
    --text-light: #cbd5e1;
    --bg-light: rgba(255, 255, 255, 0.05);
    --white: #ffffff;
    --accent: #3b82f6;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch; /* Smooth scrolling on iOS */
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    touch-action: pan-y; /* Optimize touch scrolling */
}

/* Mobile optimization */
@media (max-width: 768px) {
    html {
        scroll-behavior: auto; /* Disable smooth scroll on mobile for better performance */
    }
}

/* Navigation */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 1000;
    padding: 1rem 0;
    will-change: transform;
    transform: translateZ(0);
    backface-visibility: hidden;
}

/* Mobile optimization - remove backdrop-filter */
@media (max-width: 768px) {
    nav {
        backdrop-filter: none;
        background: rgba(15, 23, 42, 0.98);
    }
}

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

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color);
    text-decoration: none;
}

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

.nav-menu a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    transition: color 0.3s;
}

.nav-menu a:hover {
    color: var(--primary-color);
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--text-dark);
    border-radius: 3px;
    transition: 0.3s;
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 85vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 4rem 2rem 2rem 2rem;
    padding-top: max(4rem, 80px);
}

/* Hero container for desktop layout */
.hero-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3rem;
    max-width: 1200px;
    width: 100%;
    z-index: 1;
}

/* Hero image section */
.hero-image {
    flex-shrink: 0;
}

.hero-content {
    text-align: left;
    color: var(--white);
    max-width: 600px;
    z-index: 1;
}

/* Desktop: Image on left, content on right */
@media (min-width: 769px) {
    .hero-container {
        flex-direction: row;
        justify-content: flex-start;
        align-items: center;
    }
    
    .profile-image {
        width: 200px;
        height: 200px;
    }
    
    .hero-content {
        text-align: left;
        flex: 1;
    }
    
    .hero-content h1,
    .hero-content h2,
    .hero-content p {
        text-align: left;
    }
    
    .hero-buttons {
        margin-left: 0 !important;
        margin-right: auto !important;
    }
}

/* Mobile: Centered layout */
@media (max-width: 768px) {
    .hero-container {
        flex-direction: column;
        gap: 1rem;
    }
    
    .hero-content {
        text-align: center;
    }
    
    .hero-buttons {
        margin-left: auto;
        margin-right: auto;
    }
}

/* Global Video Background */
.global-video-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -100;
    overflow: hidden;
    will-change: transform;
    transform: translateZ(0);
}

.global-video-bg video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: translateZ(0);
    backface-visibility: hidden;
}

.global-video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.65);
    z-index: 1;
    pointer-events: none;
    will-change: transform;
    transform: translateZ(0);
}

/* Mobile optimization - disable video on mobile */
@media (max-width: 768px) {
    .global-video-bg video {
        display: none;
    }
    
    .global-video-bg {
        background-image: url('images/ai-character-mobile-bg.jpg');
        background-size: cover;
        background-position: center top;
        background-repeat: no-repeat;
    }
    
    .global-video-overlay {
        background: rgba(0, 0, 0, 0.4); /* Lighter overlay to show the image better */
    }
}

.profile-image {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--white);
    margin-bottom: 0.5rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.hero-content h1 {
    font-size: 2rem;
    margin-bottom: 0.4rem;
}

.hero-content h2 {
    font-size: 1.1rem;
    font-weight: 400;
    margin-bottom: 0.4rem;
}

.hero-content p {
    font-size: 0.9rem;
    margin-bottom: 1rem;
    line-height: 1.4;
}

/* Hero buttons container for proper 2x2 grid */
.hero-buttons {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: auto auto;
    gap: 0.75rem;
    margin-top: 1.5rem;
    max-width: 400px;
    margin-left: 0;
    margin-right: 0;
}

/* Social links in first row */
.social-links {
    grid-column: 1 / 3;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
}

.social-links a {
    color: var(--white);
    text-decoration: none;
    padding: 0.65rem 1rem;
    border: 2px solid var(--white);
    border-radius: 5px;
    transition: all 0.3s;
    font-size: 0.9rem;
    text-align: center;
}

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

/* CTA buttons in second row */
.cta-buttons {
    grid-column: 1 / 3;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
}

.btn {
    padding: 0.65rem 1rem;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    display: inline-block;
    font-size: 0.9rem;
    text-align: center;
}

.btn-primary {
    background: var(--primary-color);
    color: var(--white);
}

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

.btn-secondary {
    background: transparent;
    color: var(--white);
    border: 2px solid var(--white);
}

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

/* Tech Stack Marquee */
.tech-stack {
    background: rgba(0, 0, 0, 0.2);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding: 1.5rem 0;
    overflow: hidden;
    position: relative;
    width: 100%;
}

.marquee {
    display: flex;
    width: fit-content;
    /* user-select: none; */
    animation: scroll 25s linear infinite;
    gap: 1rem;
    /* min-width: 100%; */
}

.tech-item {
    display: inline-block;
    flex-shrink: 0;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(5px);
    border-radius: 20px;
    font-weight: 500;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
}

.tech-item:hover {
    transform: translateY(-5px) scale(1.05);
    background: rgba(255, 255, 255, 0.2);
}

@keyframes scroll {

    /* from { transform: translateX(0); }
    to { transform: translateX(-33.333%); } */
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* Section Styles */
section {
    padding: 5rem 2rem;
}

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

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: rgb(116, 238, 59);
}

/* Animated Backgrounds */
.animated-bg {
    position: relative;
    overflow: hidden;
}

.animated-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.05;
    z-index: 0;
}

/* Gradient Animation */
.gradient-bg {
    background: linear-gradient(-45deg, #ee7752, #e73c7e, #23a6d5, #23d5ab);
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
}

@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

/* Particles Animation */
.particles-bg::before {
    background-image:
        radial-gradient(circle at 20% 50%, rgba(37, 99, 235, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(59, 130, 246, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 20%, rgba(96, 165, 250, 0.1) 0%, transparent 50%);
    animation: particleFloat 20s ease-in-out infinite;
}

@keyframes particleFloat {

    0%,
    100% {
        transform: translate(0, 0);
    }

    33% {
        transform: translate(30px, -30px);
    }

    66% {
        transform: translate(-20px, 20px);
    }
}

/* Geometric Shapes Animation */
.geometric-bg::before {
    background-image:
        linear-gradient(45deg, transparent 30%, rgba(37, 99, 235, 0.05) 30%, rgba(37, 99, 235, 0.05) 70%, transparent 70%),
        linear-gradient(-45deg, transparent 30%, rgba(59, 130, 246, 0.05) 30%, rgba(59, 130, 246, 0.05) 70%, transparent 70%);
    background-size: 100px 100px;
    animation: geometricMove 15s linear infinite;
}

@keyframes geometricMove {
    0% {
        background-position: 0 0, 50px 50px;
    }

    100% {
        background-position: 100px 100px, 150px 150px;
    }
}


@media (max-width: 768px) {
    .video-bg {
        display: none;
    }
}

/* ===== Scroll Scale + Fade ===== */
.reveal-section {
    opacity: 0;
    transform: scale(0.95) translateY(40px);
    transition:
        opacity 0.8s ease,
        transform 0.8s ease;
}

.reveal-section.active {
    opacity: 1;
    transform: scale(1) translateY(0);
}

#about {
    transition-delay: 0.1s;
}

#skills {
    transition-delay: 0.15s;
}

#projects {
    transition-delay: 0.2s;
}

#certificates {
    transition-delay: 0.25s;
}

#contact {
    transition-delay: 0.3s;
}

/* ===== About RGB Background (Safe Version) ===== */
#about {
    position: relative;
    overflow: hidden;
}

/* RGB layer */
/* .about-rgb-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        120deg,
        rgba(255, 0, 150, 0.22),
        rgba(0, 120, 255, 0.22),
        rgba(0, 255, 180, 0.22)
    );
    background-size: 300% 300%;
    animation: aboutRGB 14s ease infinite;
    z-index: 0;
} */

/* Keep content above RGB */
#about .container {
    position: relative;
    z-index: 2;
}

/* Smooth animation */
@keyframes aboutRGB {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

#about .container {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 40px;
}

@media (max-width: 768px) {
    .about-rgb-bg {
        animation-duration: 20s;
    }
}


/* Wave Animation */
.wave-bg::before {
    background:
        linear-gradient(90deg, transparent, rgba(37, 99, 235, 0.03), transparent),
        linear-gradient(180deg, transparent, rgba(59, 130, 246, 0.03), transparent);
    background-size: 50% 50%;
    animation: wave 10s ease-in-out infinite;
}

@keyframes wave {

    0%,
    100% {
        background-position: 0% 0%, 100% 100%;
    }

    50% {
        background-position: 100% 100%, 0% 0%;
    }
}

/* Grid Animation */
.grid-bg::before {
    background-image:
        linear-gradient(rgba(37, 99, 235, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(37, 99, 235, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: gridScroll 20s linear infinite;
}

@keyframes gridScroll {
    0% {
        background-position: 0 0;
    }

    100% {
        background-position: 50px 50px;
    }
}

/* About Section */
/* #about {
    position: relative;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    position: relative;
    z-index: 1;
}

.about-text p {
    margin-bottom: 1.5rem;
    color: rgb(255, 47, 0);
    line-height: 1.8;
}

.ethics-section {
    background: var(--bg-light);
    padding: 2rem;
    border-radius: 10px;
    margin-top: 2rem;
}

.ethics-section h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.ethics-section ul {
    list-style: none;
    padding-left: 0;
}

.ethics-section li {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
    position: relative;
}

.ethics-section li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
}

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

.stat-card {
    text-align: center;
    padding: 2rem;
    background: var(--white);
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.stat-label {
    color: var(--text-light);
    font-size: 0.9rem;
} */

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

.skill-category {
    background: var(--white);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.skill-category h3 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
}

.skill-category ul {
    list-style: none;
}

.skill-category li {
    padding: 0.5rem 0;
    color: var(--text-light);
}

/* Projects Section */
/* #projects {
    background: var(--bg-light);
}

.project-filters {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 0.5rem 1.5rem;
    border: 2px solid var(--primary-color);
    background: transparent;
    color: var(--primary-color);
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: 500;
}

.filter-btn.active,
.filter-btn:hover {
    background: var(--primary-color);
    color: var(--white);
}

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

/* .project-card {
    background: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
}

.project-card:hover {
    transform: translateY(-5px);
}

.project-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.project-content {
    padding: 1.5rem;
}

.project-content h3 {
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 1rem 0;
}

.tag {
    padding: 0.25rem 0.75rem;
    background: var(--bg-light);
    border-radius: 15px;
    font-size: 0.85rem;
    color: var(--text-light);
}

.project-links {
    display: flex !important;
    gap: 0.75rem !important;
    margin-top: auto !important;
    padding-top: 1.5rem !important;
    flex-wrap: wrap !important;
    flex-shrink: 0 !important;
}

.project-links a {
    padding: 0.6rem 1.5rem !important;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
    color: #ffffff !important;
    text-decoration: none !important;
    font-weight: 600 !important;
    font-size: 0.95rem !important;
    border-radius: 16px !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 3px 15px rgba(16, 185, 129, 0.4) !important;
    border: none !important;
    text-transform: capitalize !important;
    letter-spacing: 0.3px !important;
    flex: 0 1 calc(50% - 0.375rem) !important;
    text-align: center !important;
    display: inline-block !important;
}

.project-links a:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 5px 20px rgba(16, 185, 129, 0.6) !important;
    background: linear-gradient(135deg, #059669 0%, #047857 100%) !important;
}

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

.certificate-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-left: 4px solid var(--primary-color);
}

.certificate-card h3 {
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.certificate-issuer {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.certificate-date {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.certificate-card a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
}

/* Contact Section */
#contact {
    color: var(--white);
    position: relative;
    overflow: hidden;
}

#contact::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.05) 0%, transparent 50%);
    z-index: -1;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.project-card {
    transition: all 0.3s ease;
}

@keyframes contactFloat {

    0%,
    100% {
        transform: translate(0, 0) rotate(0deg);
    }

    50% {
        transform: translate(20px, 20px) rotate(5deg);
    }
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    position: relative;
    z-index: 1;
}

.contact-info-section {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-info-section h2 {
    color: var(--white);
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.contact-info-section p {
    font-size: 1.1rem;
    line-height: 1.8;
    opacity: 0.95;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-top: 2rem;
}

.contact-detail-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    backdrop-filter: blur(10px);
    transition: all 0.3s;
}

.contact-detail-item:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateX(10px);
}

.contact-icon {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    font-size: 1.5rem;
}

.contact-detail-content h4 {
    margin-bottom: 0.25rem;
    font-size: 0.9rem;
    opacity: 0.8;
}

.contact-detail-content a,
.contact-detail-content p {
    color: var(--white);
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 500;
    transition: opacity 0.3s;
}

.contact-detail-content a:hover {
    opacity: 0.8;
}

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

.social-link-btn {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    color: var(--white);
    text-decoration: none;
    font-size: 1.2rem;
    transition: all 0.3s;
    backdrop-filter: blur(10px);
}

.social-link-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-3px);
}

/* Contact Form */
.contact-form-section {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--white);
    padding: 1.5rem;
    /* Reduced from 2.5rem */
    border-radius: 12px;
    /* Slightly smaller radius */
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    /* Softer shadow for compact size */
}

.contact-form-section h3 {
    color: var(--white);
    font-size: 1.5rem;
    /* Reduced from 1.8rem */
    margin-bottom: 1rem;
    /* Reduced from 1.5rem */
}

.form-group {
    margin-bottom: 1rem;
    /* Reduced from 1.5rem */
}

.form-group label {
    display: block;
    color: var(--white);
    font-weight: 500;
    font-size: 0.9rem;
    /* Slightly smaller label */
    margin-bottom: 0.3rem;
    /* Reduced from 0.5rem */
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.6rem 0.8rem;
    /* Reduced padding from 0.9rem */
    border: 1px solid rgba(0, 0, 0, 0.2);
    border-radius: 6px;
    /* Slightly smaller radius */
    font-size: 0.95rem;
    /* Slightly smaller font */
    font-family: inherit;
    transition: all 0.3s;
    background: transparent;
    color: #000000;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.3);
    background: transparent;
}

.form-group input:-webkit-autofill,
.form-group input:-webkit-autofill:hover,
.form-group input:-webkit-autofill:focus,
.form-group textarea:-webkit-autofill,
.form-group textarea:-webkit-autofill:hover,
.form-group textarea:-webkit-autofill:focus {
    -webkit-text-fill-color: #000000;
    /* Dark text for the light autofill background */
    -webkit-box-shadow: 0 0 0px 1000px #e8f0fe inset;
    /* Force the default Chrome light blue autofill background just to make it consistent */
    transition: background-color 5000s ease-in-out 0s;
}

.form-group textarea {
    min-height: 100px;
    /* Reduced from 150px */
    resize: vertical;
}

.form-submit-btn {
    width: 100%;
    padding: 0.75rem 1.5rem;
    /* Reduced from 1rem 2rem */
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: var(--white);
    border: none;
    border-radius: 6px;
    /* Match input radius */
    font-size: 1rem;
    /* Reduced from 1.1rem */
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.form-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.6);
}

.form-submit-btn:active {
    transform: translateY(0);
}

.form-message {
    margin-top: 1rem;
    padding: 0.75rem;
    border-radius: 8px;
    text-align: center;
    font-weight: 500;
    display: none;
}

.form-message.success {
    background: #d1fae5;
    color: #065f46;
    border: 1px solid #6ee7b7;
}

.form-message.error {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fca5a5;
}

/* ===== Video Background Section ===== */
.video-section {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.video-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -2;
}

.video-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: -1;
}

/* Keep existing container readable */
.video-section .container {
    position: relative;
    z-index: 1;
}


/* Footer */
footer {
    background: var(--text-dark);
    color: var(--white);
    text-align: center;
    padding: 2rem;
}

footer p {
    margin-bottom: 0.5rem;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: var(--white);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        padding: 2rem 0;
        gap: 0;
    }

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

    .nav-menu li {
        padding: 1rem 0;
    }

    .hamburger {
        display: flex;
    }

    .hamburger.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

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

    .hamburger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }

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

    .hero-content h2 {
        font-size: 1.2rem;
    }

    .hero-content p {
        font-size: 1rem;
    }

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

    section {
        padding: 3rem 1rem;
    }

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

    .cta-buttons {
        flex-direction: column;
    }

    .btn {
        width: 100%;
        text-align: center;
    }

    .projects-grid,
    .certificates-grid,
    .skills-container {
        grid-template-columns: 1fr;
    }

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

    /* Contact Section Mobile */
    .contact-wrapper {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }

    .contact-info-section h2 {
        font-size: 2rem;
    }

    .contact-form-section {
        padding: 0.5rem;
    }

    .contact-detail-item:hover {
        transform: none;
    }
}

@media (max-width: 480px) {
    .profile-image {
        width: 120px;
        height: 120px;
    }

    .hero-content h1 {
        font-size: 1.75rem;
    }

    .social-links a {
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .stat-number {
        font-size: 2rem;
    }

    .contact-info-section h2 {
        font-size: 1.75rem;
    }

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

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

:root {
    --primary-color: #2563eb;
    --secondary-color: #1e40af;
    --text-dark: #1f2937;
    --text-light: #6b7280;
    --bg-light: #f9fafb;
    --white: #ffffff;
    --accent: #3b82f6;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    overflow-x: hidden;
}

/* Navigation */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    padding: 1rem 0;
}

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

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color);
    text-decoration: none;
}

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

.nav-menu a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    transition: color 0.3s;
}

.nav-menu a:hover {
    color: var(--primary-color);
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--text-dark);
    border-radius: 3px;
    transition: 0.3s;
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 85vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 4rem 2rem 2rem 2rem;
    padding-top: max(4rem, 80px);
}

.video-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -2;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: -1;
}

.hero-content {
    text-align: center;
    color: var(--white);
    max-width: 800px;
    z-index: 1;
}

.profile-image {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--white);
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.hero-content h2 {
    font-size: 1.5rem;
    font-weight: 400;
    margin-bottom: 1rem;
}

.hero-content p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    line-height: 1.8;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.social-links a {
    color: var(--white);
    text-decoration: none;
    padding: 0.5rem 1rem;
    border: 2px solid var(--white);
    border-radius: 5px;
    transition: all 0.3s;
    font-size: 0.9rem;
}

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

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    padding: 0.8rem 2rem;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    display: inline-block;
}

.btn-primary {
    background: var(--primary-color);
    color: var(--white);
}

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

.btn-secondary {
    background: transparent;
    color: var(--white);
    border: 2px solid var(--white);
}

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

/* Tech Stack Marquee */
/* .tech-stack {
    background: var(--bg-light);
    padding: 2rem 0;
    overflow: hidden;
}

.marquee {
    display: flex;
    animation: scroll 30s linear infinite;
    gap: 3rem;
}

.tech-item {
    flex-shrink: 0;
    padding: 0.5rem 1.5rem;
    background: var(--white);
    border-radius: 20px;
    font-weight: 500;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
} */

/* Section Styles */
section {
    padding: 5rem 2rem;
}

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

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--text-dark);
}

/* Animated Backgrounds */
.animated-bg {
    position: relative;
    overflow: hidden;
}

.animated-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.05;
    z-index: 0;
    pointer-events: none;
    /* Allow clicks through the animation layer */
}

/* Gradient Animation */
.gradient-bg {
    background: linear-gradient(-45deg, #ee7752, #e73c7e, #23a6d5, #23d5ab);
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
}

@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

/* Particles Animation */
.particles-bg::before {
    background-image:
        radial-gradient(circle at 20% 50%, rgba(37, 99, 235, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(59, 130, 246, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 20%, rgba(96, 165, 250, 0.1) 0%, transparent 50%);
    animation: particleFloat 20s ease-in-out infinite;
}

@keyframes particleFloat {

    0%,
    100% {
        transform: translate(0, 0);
    }

    33% {
        transform: translate(30px, -30px);
    }

    66% {
        transform: translate(-20px, 20px);
    }
}

/* Geometric Shapes Animation */
.geometric-bg::before {
    background-image:
        linear-gradient(45deg, transparent 30%, rgba(37, 99, 235, 0.05) 30%, rgba(37, 99, 235, 0.05) 70%, transparent 70%),
        linear-gradient(-45deg, transparent 30%, rgba(59, 130, 246, 0.05) 30%, rgba(59, 130, 246, 0.05) 70%, transparent 70%);
    background-size: 100px 100px;
    animation: geometricMove 15s linear infinite;
}

@keyframes geometricMove {
    0% {
        background-position: 0 0, 50px 50px;
    }

    100% {
        background-position: 100px 100px, 150px 150px;
    }
}

/* Wave Animation */
.wave-bg::before {
    background:
        linear-gradient(90deg, transparent, rgba(37, 99, 235, 0.03), transparent),
        linear-gradient(180deg, transparent, rgba(59, 130, 246, 0.03), transparent);
    background-size: 50% 50%;
    animation: wave 10s ease-in-out infinite;
}

@keyframes wave {

    0%,
    100% {
        background-position: 0% 0%, 100% 100%;
    }

    50% {
        background-position: 100% 100%, 0% 0%;
    }
}

/* Grid Animation */
.grid-bg::before {
    background-image:
        linear-gradient(rgba(37, 99, 235, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(37, 99, 235, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: gridScroll 20s linear infinite;
}

@keyframes gridScroll {
    0% {
        background-position: 0 0;
    }

    100% {
        background-position: 50px 50px;
    }
}

/* About Section */
#about {
    position: relative;
}

#about .section-title {
    color: #5fef37;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    position: relative;
    z-index: 1;
}

.about-text p {
    margin-bottom: 1.5rem;
    color: rgb(226, 230, 230);
    line-height: 1.8;
}

.ethics-section {
    background: rgba(181, 132, 219, 0.281);
    padding: 2rem;
    border-radius: 10px;
    margin-top: 2rem;
}

.ethics-section h3 {
    color: cyan;
    margin-bottom: 1rem;
}

.ethics-section ul {
    list-style: none;
    padding-left: 0;
    color: #59ef37;
}

.ethics-section li {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
    position: relative;
}

.ethics-section li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
}

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

.stat-card {
    text-align: center;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.stat-label {
    color: var(--text-light);
    font-size: 0.9rem;
}

/* Skills Section */

#skills .section-title {
    color: #7cf5ff;
    /* cyan */
    text-shadow:
        0 0 8px rgba(124, 245, 255, 0.6),
        0 0 16px rgba(124, 245, 255, 0.4);
}

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

.skill-category {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.skill-category h3 {
    color: rgb(182, 237, 93);
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
}

.skill-category ul {
    list-style: none;
}

.skill-category li {
    padding: 0.5rem 0;
    color: rgb(251, 250, 250);
}

/* Projects Section */

#projects .section-title {
    color: #7cf5ff;
    /* cyan */
    text-shadow:
        0 0 8px rgba(124, 245, 255, 0.6),
        0 0 16px rgba(124, 245, 255, 0.4);
}

/* #projects {

} */

.project-filters {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
    position: relative;
    z-index: 10;
    /* Ensure buttons are above background animations */
}

.filter-btn {
    padding: 0.5rem 1.5rem;
    border: 2px solid rgb(255, 179, 0);
    background: transparent;
    color: rgb(246, 247, 246);
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: 500;
    position: relative;
    z-index: 10;
    /* Ensure buttons are clickable */
}

.filter-btn.active,
.filter-btn:hover {
    /* background: rgb(210, 214, 231); */
    color: rgb(228, 41, 41);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    position: relative;
    z-index: 1;
    grid-auto-rows: minmax(400px, auto);
    /* Ensure grid is above background animations */
}

.project-card {
    background: rgba(98, 167, 167, 0.422);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
    position: relative;
    z-index: 1;
    display: flex !important;
    flex-direction: column !important;
    height: 100% !important;
    /* Ensure cards are above background animations */
}

.project-card:hover {
    transform: translateY(-5px);
}

.project-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.project-content {
    padding: 1.5rem;
    color: #fafafa;
    display: flex !important;
    flex-direction: column !important;
    flex: 1 !important;
    min-height: 0 !important;
}

.project-content h3 {
    color: rgb(201, 126, 47);
    margin-bottom: 1rem;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.1rem;
    margin: 0.1rem 0;
    flex-shrink: 0;
}

.tag {
    padding: 0.1rem 0.5rem;
    /* background: rgb(227, 220, 204); */
    border-radius: 15px;
    font-size: 0.85rem;
    color: rgb(230, 147, 38);
}



/* Certificates Section */
#certificates .section-title {
    color: #59ef37;
    /* cyan */
    text-shadow:
        0 0 8px rgba(124, 245, 255, 0.6),
        0 0 16px rgba(124, 245, 255, 0.4);
}

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

.certificate-card {
    background: rgba(194, 215, 215, 0.299);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border-left: 4px solid var(--primary-color);
    position: relative;
    z-index: 1;
    /* Ensure cards are above background animations */
}

.certificate-card h3 {
    color: rgb(75, 233, 17);
    margin-bottom: 1rem;
}

.certificate-issuer {
    color: rgb(255, 0, 0);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.certificate-date {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.certificate-card a {
    color: cyan;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s;
    position: relative;
    z-index: 2;
    /* Ensure links are clickable */
}

.certificate-card a:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}

/* Contact Section */
#contact {
    /* background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); */
    color: var(--white);
    position: relative;
    overflow: hidden;
}

#contact::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* background-image: 
        radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.1) 0%, transparent 50%); */
    /* animation: contactFloat 15s ease-in-out infinite; */
}

@keyframes contactFloat {

    0%,
    100% {
        transform: translate(0, 0) rotate(0deg);
    }

    50% {
        transform: translate(20px, 20px) rotate(5deg);
    }
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    position: relative;
    z-index: 1;
}

.contact-info-section {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-info-section h2 {
    color: var(--white);
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.contact-info-section p {
    font-size: 1.1rem;
    line-height: 1.8;
    opacity: 0.95;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-top: 2rem;
}

.contact-detail-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    backdrop-filter: blur(10px);
    transition: all 0.3s;
}

.contact-detail-item:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateX(10px);
}

.contact-icon {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    font-size: 1.5rem;
}

.contact-detail-content h4 {
    margin-bottom: 0.25rem;
    font-size: 0.9rem;
    opacity: 0.8;
}

.contact-detail-content a,
.contact-detail-content p {
    color: var(--white);
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 500;
    transition: opacity 0.3s;
}

.contact-detail-content a:hover {
    opacity: 0.8;
}

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

.social-link-btn {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    color: var(--white);
    text-decoration: none;
    font-size: 1.2rem;
    transition: all 0.3s;
    backdrop-filter: blur(10px);
}

.social-link-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-3px);
}

/* Contact Form */
.contact-form-section {
    background: rgba(255, 255, 255, 0.95);
    padding: 2.5rem;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.contact-form-section h3 {
    color: var(--text-dark);
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    color: var(--text-dark);
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.9rem;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s;
    background: var(--white);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.form-group textarea {
    min-height: 150px;
    resize: vertical;
}

.form-submit-btn {
    width: 100%;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: var(--white);
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.form-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.6);
}

.form-submit-btn:active {
    transform: translateY(0);
}

.form-message {
    margin-top: 1rem;
    padding: 0.75rem;
    border-radius: 8px;
    text-align: center;
    font-weight: 500;
    display: none;
}

.form-message.success {
    background: #d1fae5;
    color: #065f46;
    border: 1px solid #6ee7b7;
}

.form-message.error {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fca5a5;
}

/* Footer */
footer {
    background: var(--text-dark);
    color: var(--white);
    text-align: center;
    padding: 2rem;
}

footer p {
    margin-bottom: 0.5rem;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: var(--white);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        padding: 2rem 0;
        gap: 0;
    }

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

    .nav-menu li {
        padding: 1rem 0;
    }

    .hamburger {
        display: flex;
    }

    .hamburger.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

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

    .hamburger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }

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

    .hero-content h2 {
        font-size: 1.2rem;
    }

    .hero-content p {
        font-size: 1rem;
    }

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

    section {
        padding: 3rem 1rem;
    }

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

    .cta-buttons {
        flex-direction: column;
    }

    .btn {
        width: 100%;
        text-align: center;
    }

    .projects-grid,
    .certificates-grid,
    .skills-container {
        grid-template-columns: 1fr;
    }

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

    /* Contact Section Mobile */
    .contact-wrapper {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .contact-info-section h2 {
        font-size: 2rem;
    }

    .contact-form-section {
        padding: 1.5rem;
    }

    .contact-detail-item:hover {
        transform: none;
    }
}

@media (max-width: 480px) {
    .profile-image {
        width: 120px;
        height: 120px;
    }

    .hero-content h1 {
        font-size: 1.75rem;
    }

    .social-links a {
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .stat-number {
        font-size: 2rem;
    }

    .contact-info-section h2 {
        font-size: 1.75rem;
    }

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


/* Rotating Text Animation */
#rotating-text {
    display: inline-block;
}

.hero-content h2 {
    min-height: 2.5rem;
}

/* Blinking Cursor */
.cursor {
    display: inline-block;
    margin-left: 3px;
    animation: blink 1s infinite;
    font-weight: 300;
    color: #10b981;
}

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


/* Mobile Performance Optimizations */
@media (max-width: 768px) {
    /* Disable expensive effects on mobile */
    .project-card,
    .certificate-card,
    .stat-card,
    .skill-category {
        backdrop-filter: none !important;
        will-change: auto !important;
    }
    
    /* Hide profile image on mobile to show AI background */
    .profile-image {
        display: none !important;
    }
    
    /* Make project cards darker on mobile like skills section */
    .project-card {
        background: rgba(0, 0, 0, 0.5) !important;
        border: 1px solid rgba(255, 255, 255, 0.15) !important;
    }
    
    /* Make certificate cards darker on mobile */
    .certificate-card {
        background: rgba(0, 0, 0, 0.5) !important;
        border: 1px solid rgba(255, 255, 255, 0.15) !important;
    }
    
    /* Make about section lighter/faded on mobile */
    .about-content {
        background: rgba(0, 0, 0, 0.5) !important;
        padding: 1.5rem !important;
        border-radius: 12px !important;
        border: 1px solid rgba(255, 255, 255, 0.15) !important;
    }
    
    .ethics-section {
        background: rgba(0, 0, 0, 0.4) !important;
        padding: 1.5rem !important;
        border-radius: 10px !important;
        border: 1px solid rgba(255, 255, 255, 0.1) !important;
    }
    
    .stat-card {
        background: rgba(0, 0, 0, 0.5) !important;
        border: 1px solid rgba(255, 255, 255, 0.15) !important;
    }
    
    /* Make stat card text white and visible on mobile */
    .stat-number {
        color: #ffffff !important;
    }
    
    .stat-label {
        color: #f0f0f0 !important;
    }
    
    /* Simplify transitions on mobile */
    * {
        transition-duration: 0.2s !important;
    }
    
    /* Optimize animations */
    .marquee {
        animation-duration: 40s !important; /* Slower = less CPU */
    }
}
