:root {
    --primary-color: #2a2a72;
    --secondary-color: #009ffd;
    --text-color: #ffffff;
    --background-color: #0a0a0a;
    --nav-height: 8vh;
    --section-padding: 5rem 2rem;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

body {
    background-color: var(--background-color);
    color: var(--text-color);
    line-height: 1.6;
}

/* Navigation styles */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1rem 2rem;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
}

.logo {
    color: white;
    font-size: 1.5rem;
    font-weight: bold;
    text-decoration: none;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    color: white;
    text-decoration: none;
    font-size: 1.1rem;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: #00ff88;
}

.toggle-btn {
    display: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Mobile Navigation */
@media screen and (max-width: 768px) {
    .toggle-btn {
        display: block;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background: rgba(0, 0, 0, 0.9);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: 0.5s ease;
    }

    .nav-menu.active {
        right: 0;
    }

    .nav-link {
        font-size: 1.5rem;
        margin: 1rem 0;
    }
}

/* Glow Effect */
.glow {
    text-shadow: 0 0 10px var(--secondary-color),
                 0 0 20px var(--secondary-color),
                 0 0 30px var(--secondary-color);
}

/* Hero Section with Background Image */
.hero {
    position: relative;
    height: 100vh;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
}

.hero h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.highlight {
    color: var(--secondary-color);
}

.cta-button {
    display: inline-block;
    padding: 1rem 2rem;
    background: var(--secondary-color);
    color: var(--text-color);
    text-decoration: none;
    border-radius: 5px;
    transition: 0.3s;
    margin-top: 2rem;
}

.cta-button:hover {
    transform: scale(1.05);
    box-shadow: 0 0 20px var(--secondary-color);
}

/* Sections */
section {
    padding: 5rem 2rem;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
}

/* Skills Section */
.skills-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.skill-card {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.1);
    transition: transform 0.3s ease;
}

.skill-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 10px 10px 0 0;
}

.skill-card:hover {
    transform: translateY(-10px);
}

.skill-card i {
    font-size: 3rem;
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

/* Projects Section */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.project-card {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.project-image {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16/9;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.3s ease;
}

.project-card:hover .project-overlay {
    opacity: 1;
}

.project-card:hover .project-image img {
    transform: scale(1.1);
}

.project-link {
    color: var(--text-color);
    text-decoration: none;
    padding: 1rem 2rem;
    border: 2px solid var(--secondary-color);
    border-radius: 5px;
    transition: all 0.3s ease;
    transform: translateY(20px);
    opacity: 0;
}

.project-card:hover .project-link {
    transform: translateY(0);
    opacity: 1;
}

.project-link:hover {
    background: var(--secondary-color);
    color: var(--text-color);
}

.project-info {
    padding: 1.5rem;
}

.project-tags {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
}

.project-tags span {
    background: rgba(255, 255, 255, 0.1);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
}

/* Contact Section */
.contact-container {
    max-width: 800px;
    margin: 0 auto;
}

#contact-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

#contact-form input,
#contact-form textarea {
    padding: 1rem;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 5px;
    color: var(--text-color);
}

#contact-form textarea {
    height: 150px;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 2rem;
}

.social-links a {
    color: var(--text-color);
    font-size: 1.5rem;
    transition: 0.3s;
}

.social-links a:hover {
    color: var(--secondary-color);
    transform: scale(1.2);
}

/* Footer */
footer {
    text-align: center;
    padding: 2rem;
    background: rgba(10, 10, 10, 0.9);
}

/* Responsive Design */
@media screen and (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    .burger {
        display: block;
    }
}

/* Profile Image Styles */
.profile-container {
    margin-bottom: 2rem;
}

.profile-image {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    border: 4px solid var(--secondary-color);
    object-fit: cover;
    box-shadow: 0 0 20px var(--secondary-color);
    transition: transform 0.3s ease;
}

.profile-image:hover {
    transform: scale(1.05);
}

/* About Section Image */
.about-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 2rem;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.about-image img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
}

/* Skill Cards with Images */
.skill-card {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.1);
    transition: transform 0.3s ease;
}

.skill-card:hover {
    transform: translateY(-10px);
}

/* Project Cards with Images */
.project-card {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.project-card:hover {
    transform: scale(1.05);
    box-shadow: 0 0 20px var(--secondary-color);
}

.project-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.project-card h3, .project-card p {
    padding: 1rem;
}

/* Responsive Design for Images */
@media screen and (max-width: 768px) {
    .about-content {
        grid-template-columns: 1fr;
    }

    .profile-image {
        width: 150px;
        height: 150px;
    }

    .about-image img {
        height: 300px;
    }

    .skill-image {
        height: 150px;
    }
}

@media screen and (max-width: 480px) {
    .profile-image {
        width: 120px;
        height: 120px;
    }

    .about-image img {
        height: 250px;
    }

    .skill-image {
        height: 120px;
    }
}

/* Image Optimization */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Image Loading Animation */
@keyframes imageLoad {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

img {
    animation: imageLoad 0.5s ease-out;
}

/* Audio Player Styles */
.audio-player {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: rgba(0, 0, 0, 0.8);
    padding: 15px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 15px;
    z-index: 1000;
    backdrop-filter: blur(10px);
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.music-toggle {
    background: var(--secondary-color);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: all 0.3s ease;
}

.music-toggle:hover {
    transform: scale(1.1);
    box-shadow: 0 0 10px var(--secondary-color);
}

.music-toggle i {
    font-size: 1.2rem;
}

.music-controls {
    display: flex;
    flex-direction: column;
    gap: 5px;
    color: white;
}

.music-title {
    font-size: 0.9rem;
    white-space: nowrap;
}

.volume-control {
    display: flex;
    align-items: center;
    gap: 10px;
}

.volume-control i {
    color: var(--secondary-color);
}

#volumeSlider {
    width: 80px;
    height: 4px;
    -webkit-appearance: none;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
    outline: none;
}

#volumeSlider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 12px;
    height: 12px;
    background: var(--secondary-color);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
}

#volumeSlider::-webkit-slider-thumb:hover {
    transform: scale(1.2);
}

/* Animation for music icon */
@keyframes musicPulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
    }
}

.music-toggle.playing i {
    animation: musicPulse 2s infinite;
}

/* Responsive styles for audio player */
@media screen and (max-width: 768px) {
    .audio-player {
        bottom: 10px;
        right: 10px;
        padding: 10px;
    }

    .music-toggle {
        width: 35px;
        height: 35px;
    }

    .music-title {
        font-size: 0.8rem;
    }

    #volumeSlider {
        width: 60px;
    }
}

/* Responsive Typography */
html {
    font-size: 16px;
}

/* Responsive Container */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Enhanced Media Queries */
/* Large Screens (1200px and up) */
@media screen and (min-width: 1200px) {
    .hero h1 {
        font-size: 4rem;
    }
    
    .hero h2 {
        font-size: 2.5rem;
    }
    
    .section-title {
        font-size: 3rem;
    }
}

/* Medium Screens (992px to 1199px) */
@media screen and (max-width: 1199px) {
    .hero h1 {
        font-size: 3.5rem;
    }
    
    .hero h2 {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 2.5rem;
    }
    
    .skills-container {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Tablets (768px to 991px) */
@media screen and (max-width: 991px) {
    :root {
        --section-padding: 4rem 1.5rem;
    }

    .hero h1 {
        font-size: 3rem;
    }
    
    .hero h2 {
        font-size: 1.8rem;
    }
    
    .section-title {
        font-size: 2.2rem;
    }
    
    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .about-image {
        max-width: 500px;
        margin: 0 auto;
    }
    
    .skills-container {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Mobile Landscape (576px to 767px) */
@media screen and (max-width: 767px) {
    :root {
        --section-padding: 3rem 1rem;
    }

    .nav-links {
        position: fixed;
        right: -100%;
        top: var(--nav-height);
        height: calc(100vh - var(--nav-height));
        background: rgba(10, 10, 10, 0.95);
        backdrop-filter: blur(10px);
        flex-direction: column;
        width: 100%;
        transition: right 0.5s ease;
    }

    .nav-links.active {
        right: 0;
    }

    .burger {
        display: block;
    }

    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero h2 {
        font-size: 1.5rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .profile-image {
        width: 150px;
        height: 150px;
    }
    
    .skills-container {
        grid-template-columns: 1fr;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-container {
        padding: 0 1rem;
    }
}

/* Mobile Portrait (up to 575px) */
@media screen and (max-width: 575px) {
    :root {
        --section-padding: 2rem 1rem;
    }

    .hero h1 {
        font-size: 2rem;
    }
    
    .hero h2 {
        font-size: 1.2rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .profile-image {
        width: 120px;
        height: 120px;
    }
    
    .about-image img {
        height: 250px;
    }
    
    .skill-image {
        height: 120px;
    }
    
    .project-image img {
        height: 180px;
    }
    
    .cta-button {
        padding: 0.8rem 1.5rem;
        font-size: 0.9rem;
    }
}

/* Small Mobile Devices (up to 360px) */
@media screen and (max-width: 360px) {
    .hero h1 {
        font-size: 1.8rem;
    }
    
    .hero h2 {
        font-size: 1rem;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .profile-image {
        width: 100px;
        height: 100px;
    }
}

/* Responsive Images */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Responsive Navigation */
.nav-links li {
    opacity: 0;
    transform: translateX(50px);
    transition: all 0.5s ease;
}

.nav-links li.fade {
    opacity: 1;
    transform: translateX(0);
}

/* Responsive Form Elements */
input, textarea {
    width: 100%;
    padding: 1rem;
    margin-bottom: 1rem;
    border: none;
    border-radius: 5px;
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-color);
}

/* Responsive Audio Player */
@media screen and (max-width: 767px) {
    .audio-player {
        bottom: 10px;
        right: 10px;
        padding: 8px;
    }

    .music-toggle {
        width: 30px;
        height: 30px;
    }

    .music-title {
        font-size: 0.7rem;
    }

    #volumeSlider {
        width: 50px;
    }
}

/* Responsive Project Cards */
.project-card {
    transition: transform 0.3s ease;
}

@media (hover: hover) {
    .project-card:hover {
        transform: translateY(-10px);
    }
}

/* Touch Device Optimizations */
@media (hover: none) {
    .project-card:active {
        transform: scale(0.98);
    }
    
    .nav-links a {
        padding: 1rem;
    }
}

/* Print Styles */
@media print {
    .audio-player,
    .nav-links,
    .burger {
        display: none;
    }
    
    body {
        background: white;
        color: black;
    }
    
    section {
        page-break-inside: avoid;
    }
}

/* Enhanced Image Styles */
.image-container {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.image-container:hover img {
    transform: scale(1.1);
}

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.image-container:hover .image-overlay {
    opacity: 1;
}

/* Project Card Enhancements */
.project-card {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.project-image {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16/9;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.3s ease;
}

.project-card:hover .project-overlay {
    opacity: 1;
}

.project-card:hover .project-image img {
    transform: scale(1.1);
}

.project-link {
    color: var(--text-color);
    text-decoration: none;
    padding: 1rem 2rem;
    border: 2px solid var(--secondary-color);
    border-radius: 5px;
    transition: all 0.3s ease;
    transform: translateY(20px);
    opacity: 0;
}

.project-card:hover .project-link {
    transform: translateY(0);
    opacity: 1;
}

.project-link:hover {
    background: var(--secondary-color);
    color: var(--text-color);
}

/* Responsive Navigation */
@media screen and (max-width: 768px) {
    .project-image {
        aspect-ratio: 16/9;
    }

    .project-card {
        margin: 0 1rem;
    }
}

@media screen and (max-width: 480px) {
    .project-image {
        aspect-ratio: 4/3;
    }
}

/* Burger Menu Animation */
.burger {
    display: none;
    cursor: pointer;
}

.burger div {
    width: 25px;
    height: 3px;
    background-color: var(--text-color);
    margin: 5px;
    transition: all 0.3s ease;
    border-radius: 3px;
}

.toggle .line1 {
    transform: rotate(-45deg) translate(-5px, 6px);
}

.toggle .line2 {
    opacity: 0;
}

.toggle .line3 {
    transform: rotate(45deg) translate(-5px, -6px);
}

/* Image Loading Animation */
@keyframes imageLoad {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.image-container img {
    animation: imageLoad 0.5s ease-out;
}

/* Responsive Image Adjustments */
@media screen and (max-width: 768px) {
    .project-image {
        aspect-ratio: 16/9;
    }

    .project-card {
        margin: 0 1rem;
    }
}

@media screen and (max-width: 480px) {
    .project-image {
        aspect-ratio: 4/3;
    }
}