* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #0a0e27;
    color: #fff;
    overflow-x: hidden;
    transition: background 0.5s, color 0.5s;
}

body.light-theme {
    background: #f0f4f8;
    color: #1a1a2e;
}

/* 3D Canvas Background */
#canvas-3d {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

.content-wrapper {
    position: relative;
    z-index: 1;
}

/* Profile Image Styles */
.profile-image {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
    border: 5px solid #00d4ff;
    box-shadow: 0 0 30px rgba(0, 212, 255, 0.5);
    position: fixed;
    top: 35%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 50;
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    animation: profileFloat 3s ease-in-out infinite;
}

body.light-theme .profile-image {
    border-color: #7b2cbf;
    box-shadow: 0 0 30px rgba(123, 44, 191, 0.5);
}

.profile-image.scrolled {
    width: 45px;
    height: 45px;
    top: 20px;
    left: 20px;
    transform: translate(0, 0);
    border-width: 3px;
    box-shadow: 0 0 15px rgba(0, 212, 255, 0.3);
    animation: none;
}

@keyframes profileFloat {
    0%, 100% {
        transform: translate(-50%, -50%) translateY(0px);
    }
    50% {
        transform: translate(-50%, -50%) translateY(-20px);
    }
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 50px;
    background: rgba(10, 14, 39, 0.8);
    backdrop-filter: blur(10px);
    z-index: 100;
    transition: all 0.3s;
}

body.light-theme .navbar {
    background: rgba(255, 255, 255, 0.9);
}

.logo {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    transition: all 0.3s;
}

.navbar .logo.hide {
    opacity: 0;
    pointer-events: none;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-links a {
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
    position: relative;
}

body.light-theme .nav-links a {
    color: #1a1a2e;
}

.nav-links a:after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: #00d4ff;
    transition: width 0.3s;
}

.nav-links a:hover:after {
    width: 100%;
}

.theme-toggle {
    background: none;
    border: 2px solid #00d4ff;
    color: #00d4ff;
    padding: 8px 15px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 18px;
    transition: all 0.3s;
}

.theme-toggle:hover {
    background: #00d4ff;
    color: #0a0e27;
    transform: scale(1.1);
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: #fff;
    font-size: 24px;
    cursor: pointer;
}

body.light-theme .menu-toggle {
    color: #1a1a2e;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 100px 20px 50px;
    position: relative;
}

.hero-content {
    margin-top: 180px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    width: 100%;
}

.hero h1 {
    font-size: 4rem;
    margin-bottom: 20px;
    background: linear-gradient(45deg, #00d4ff, #7b2cbf);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: fadeInUp 1s ease-out;
    text-align: center;
}

.hero code {
    font-size: 1.2rem;
    color: #00d4ff;
    display: block;
    margin-bottom: 20px;
    animation: fadeInUp 1.2s ease-out;
    text-align: center;
}

.hero p {
    max-width: 600px;
    font-size: 1.1rem;
    line-height: 1.8;
    animation: fadeInUp 1.4s ease-out;
    text-align: center;
    margin: 0 auto;
}

/* Section Styling */
section {
    padding: 80px 50px;
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

h2 {
    font-size: 2.5rem;
    margin-bottom: 30px;
    text-align: center;
    background: linear-gradient(45deg, #00d4ff, #7b2cbf);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* About Section */
#about p {
    line-height: 1.8;
    font-size: 1.1rem;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

#about a {
    color: #00d4ff;
    text-decoration: none;
    font-weight: bold;
}

/* Projects Cards */
.card-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 30px;
    transition: all 0.6s ease-out;
    cursor: pointer;
    opacity: 0;
    transform: translateY(60px) scale(0.9);
    text-align: center;
}

body.light-theme .card {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.card:hover {
    transform: translateY(-10px) scale(1);
    box-shadow: 0 10px 30px rgba(0, 212, 255, 0.3);
}

.card h3 {
    color: #00d4ff;
    margin-bottom: 15px;
}

.card p {
    text-align: center;
    margin-bottom: 15px;
}

.card a {
    color: #00d4ff;
    text-decoration: none;
    font-weight: bold;
}

/* Skills Section */
.skills-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.skill-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 30px;
    text-align: center;
    transition: all 0.6s ease-out;
    opacity: 0;
    transform: translateY(60px) scale(0.9);
}

body.light-theme .skill-card {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.skill-card:hover {
    transform: scale(1.05) rotateY(5deg);
    box-shadow: 0 10px 30px rgba(123, 44, 191, 0.3);
}

.skill-icon {
    font-size: 3rem;
    margin-bottom: 15px;
}

.skill-card p {
    text-align: center;
}

.progress-bar {
    width: 100%;
    height: 10px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 5px;
    overflow: hidden;
    margin-top: 15px;
}

.progress {
    height: 100%;
    background: linear-gradient(90deg, #00d4ff, #7b2cbf);
    width: 0;
    transition: width 2s ease-out;
}

/* Card fade animations */
.card.fade-in, .skill-card.fade-in {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.card.fade-out, .skill-card.fade-out {
    opacity: 0;
    transform: translateY(-60px) scale(0.9);
}

/* Staggered animation for cards */
.card:nth-child(1), .skill-card:nth-child(1) {
    transition-delay: 0.1s;
}
.card:nth-child(2), .skill-card:nth-child(2) {
    transition-delay: 0.2s;
}
.card:nth-child(3), .skill-card:nth-child(3) {
    transition-delay: 0.3s;
}
.card:nth-child(4), .skill-card:nth-child(4) {
    transition-delay: 0.4s;
}
.card:nth-child(5), .skill-card:nth-child(5) {
    transition-delay: 0.5s;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hidden {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s ease-out;
}

.show {
    opacity: 1;
    transform: translateY(0);
}

/* Scroll indicator */
.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
    font-size: 2rem;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-20px);
    }
    60% {
        transform: translateX(-50%) translateY(-10px);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .profile-image {
        width: 150px;
        height: 150px;
    }

    .profile-image.scrolled {
        width: 40px;
        height: 40px;
        top: 15px;
        left: 15px;
    }

    .hero-content {
        margin-top: 100px;
    }

    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 70px;
        right: 0;
        background: rgba(10, 14, 39, 0.95);
        width: 100%;
        padding: 20px;
    }

    body.light-theme .nav-links {
        background: rgba(255, 255, 255, 0.95);
    }

    .nav-links.active {
        display: flex;
    }

    .menu-toggle {
        display: block;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .navbar {
        padding: 20px;
    }

    section {
        padding: 60px 20px;
    }
}
/* Location Section */
.map-container {
    margin-top: 40px;
    display: flex;
    justify-content: center;
}

.map-container iframe {
    width: 100%;
    max-width: 600px;
    height: 450px;
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 30px rgba(0, 212, 255, 0.2);
}

body.light-theme .map-container iframe {
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 10px 30px rgba(123, 44, 191, 0.2);
}

@media (max-width: 768px) {
    .map-container iframe {
        height: 300px;
    }
}
