@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@400;600;700&display=swap');

:root {
    --primary-color: #2c3e50;
    --secondary-color: #3498db;
    --accent-color: #e74c3c;
    --text-color: #ecf0f1;
    --background-color: #05101f;
    --card-bg: rgba(255, 255, 255, 0.1);
    --gradient-start: #05101f;
    --gradient-end: #0f2444;
}

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

body {
    font-family: 'Cairo', sans-serif;
    background: linear-gradient(135deg, var(--background-color) 0%, #0a1a2f 50%, #152a4a 100%);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
}

/* Starry Night Background */
.stars, .twinkling, .shooting-stars {
    display: none; /* Hide by default */
}

/* Show starry night only in about section */
#about {
    position: relative;
    overflow: hidden;
    background: rgba(5, 16, 31, 0.85);
    isolation: isolate;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

/* Starry Night Background */
.starry-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.stars-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.starry-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.15;
    transform: scale(1.1);
    animation: starryZoom 30s ease-in-out infinite alternate;
}

.stars-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, transparent 0%, rgba(5, 16, 31, 0.8) 100%);
}

#starsCanvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.twinkling-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.twinkling-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.1;
    animation: twinkle 200s linear infinite;
}

@keyframes starryZoom {
    0% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1.2);
    }
}

@keyframes twinkle {
    0% {
        transform: translateY(0) scale(1);
    }
    50% {
        transform: translateY(-20px) scale(1.1);
    }
    100% {
        transform: translateY(0) scale(1);
    }
}

/* Update main background */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, 
        rgba(52, 152, 219, 0.05) 0%,
        rgba(41, 128, 185, 0.05) 25%,
        rgba(44, 62, 80, 0.05) 50%,
        rgba(52, 152, 219, 0.05) 100%
    );
    background-size: 400% 400%;
    animation: gradient 15s ease infinite;
    z-index: -1;
    backdrop-filter: blur(10px);
}

/* Navigation */
header {
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    background: rgba(5, 16, 31, 0.95);
    backdrop-filter: blur(15px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.4);
}

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

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--secondary-color);
    text-shadow: 0 0 10px rgba(52, 152, 219, 0.5);
}

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

.nav-links a {
    color: var(--text-color);
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    padding: 0.5rem 0;
}

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

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

.nav-links a:hover {
    color: var(--secondary-color);
}

.menu-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Main Content */
main {
    padding-top: 80px;
    position: relative;
    overflow-x: hidden;
}

section {
    padding: 5rem 5%;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background: rgba(5, 16, 31, 0.7);
    backdrop-filter: blur(15px);
    transition: all 0.5s ease;
    border-bottom: 1px solid rgba(52, 152, 219, 0.1);
}

section:last-child {
    border-bottom: none;
}

section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg,
        rgba(5, 16, 31, 0) 0%,
        rgba(5, 16, 31, 0.3) 50%,
        rgba(5, 16, 31, 0) 100%);
    pointer-events: none;
}

section:hover {
    background: rgba(5, 16, 31, 0.8);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    position: relative;
    z-index: 1;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease-out;
}

.container.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Smooth Scroll Behavior */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

/* Section Transitions */
.section-title {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    text-align: center;
    color: var(--secondary-color);
    position: relative;
    display: inline-block;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease-out 0.2s;
}

.section-title.visible {
    opacity: 1;
    transform: translateY(0);
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background-color: var(--secondary-color);
    transition: width 0.3s ease;
}

.section-title:hover::after {
    width: 100px;
}

/* Content Transitions */
.about-content, .skills-grid, .projects-grid, .contact-content {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease-out 0.4s;
}

.about-content.visible, .skills-grid.visible, .projects-grid.visible, .contact-content.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Navigation Highlight */
.nav-links a {
    position: relative;
    transition: color 0.3s ease;
}

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

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

.nav-links a.active {
    color: var(--secondary-color);
}

.nav-links a.active::after {
    width: 100%;
}

/* Hero Section */
#hero {
    text-align: center;
    background: linear-gradient(135deg, rgba(5, 16, 31, 0.95) 0%, rgba(15, 36, 68, 0.9) 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    padding: 2rem;
    position: relative;
    z-index: 1;
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 0.5rem;
    color: var(--secondary-color);
    text-shadow: 0 0 10px rgba(52, 152, 219, 0.5);
    animation: glow 2s ease-in-out infinite alternate;
}

@keyframes glow {
    from {
        text-shadow: 0 0 5px rgba(52, 152, 219, 0.5);
    }
    to {
        text-shadow: 0 0 20px rgba(52, 152, 219, 0.8);
    }
}

.hero-content h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 2rem;
}

.cta-button {
    padding: 0.8rem 1.5rem;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.1);
    transition: width 0.3s ease;
    z-index: -1;
}

.cta-button:hover::before {
    width: 100%;
}

.cta-button.primary {
    background-color: var(--secondary-color);
    color: white;
}

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

/* Hero Logo */
.hero-logo {
    margin: 0rem 0 2rem;
    animation: fadeInDown 1s ease-out;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.hero-logo::before {
    content: '';
    position: absolute;
    width: 320px;
    height: 320px;
    border-radius: 50%;
    background: linear-gradient(45deg, var(--secondary-color), var(--accent-color));
    opacity: 0.1;
    animation: pulse 3s ease-in-out infinite;
    z-index: -1;
}

.hero-logo .logo-image {
    height: 300px;
    width: 300px;
    object-fit: cover;
    border-radius: 50%;
    border: 3px solid var(--secondary-color);
    box-shadow: 0 0 30px rgba(52, 152, 219, 0.3),
                inset 0 0 30px rgba(52, 152, 219, 0.2);
    padding: 5px;
    background: rgba(5, 16, 31, 0.5);
    backdrop-filter: blur(5px);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    animation: float 6s ease-in-out infinite;
}

.hero-logo .logo-image:hover {
    transform: scale(1.02);
    border-color: var(--secondary-color);
    box-shadow: 0 0 40px rgba(52, 152, 219, 0.5),
                inset 0 0 40px rgba(52, 152, 219, 0.3);
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.1;
    }
    50% {
        transform: scale(1.05);
        opacity: 0.2;
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* About Section */
.about-content {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 4rem;
}

.about-text {
    flex: 1;
    color: var(--text-color);
    line-height: 1.8;
}

.about-intro {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    line-height: 1.8;
}

.about-skills, .about-art, .about-goals {
    margin-bottom: 2rem;
}

.about-skills h3, .about-art h3, .about-goals h3 {
    color: var(--secondary-color);
    margin-bottom: 1rem;
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.about-image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.image-placeholder {
    width: 300px;
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    border-radius: 50%;
    background: radial-gradient(circle at center,
        rgba(52, 152, 219, 0.05) 0%,
        rgba(41, 128, 185, 0.03) 50%,
        transparent 100%);
}

.icon-container {
    position: relative;
    width: 280px;
    height: 280px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: linear-gradient(145deg, rgba(52, 152, 219, 0.1), rgba(41, 128, 185, 0.05));
    border: 2px solid rgba(52, 152, 219, 0.3);
    box-shadow: 
        0 0 30px rgba(52, 152, 219, 0.2),
        inset 0 0 30px rgba(52, 152, 219, 0.1);
    backdrop-filter: blur(5px);
    animation: containerPulse 4s ease-in-out infinite;
}

.icon-container::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: radial-gradient(circle at center,
        rgba(52, 152, 219, 0.2) 0%,
        rgba(52, 152, 219, 0.1) 50%,
        transparent 100%);
    animation: glowPulse 4s ease-in-out infinite;
}

.icon-container::after {
    content: '';
    position: absolute;
    width: calc(100% + 4px);
    height: calc(100% + 4px);
    border-radius: 50%;
    background: linear-gradient(45deg, 
        rgba(52, 152, 219, 0.5),
        rgba(41, 128, 185, 0.3),
        rgba(52, 152, 219, 0.5));
    z-index: -1;
    animation: borderRotate 8s linear infinite;
}

@keyframes containerPulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 
            0 0 30px rgba(52, 152, 219, 0.2),
            inset 0 0 30px rgba(52, 152, 219, 0.1);
    }
    50% {
        transform: scale(1.02);
        box-shadow: 
            0 0 40px rgba(52, 152, 219, 0.3),
            inset 0 0 40px rgba(52, 152, 219, 0.2);
    }
}

@keyframes borderRotate {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

.icon {
    position: absolute;
    font-size: 4rem;
    color: var(--secondary-color);
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    text-shadow: 0 0 20px rgba(52, 152, 219, 0.3);
    z-index: 1;
}

.icon:nth-child(1) {
    animation: iconAnimation 16s infinite;
}

.icon:nth-child(2) {
    animation: iconAnimation 16s infinite 4s;
}

.icon:nth-child(3) {
    animation: iconAnimation 16s infinite 8s;
}

.icon:nth-child(4) {
    animation: iconAnimation 16s infinite 12s;
}

@keyframes iconAnimation {
    0%, 100% {
        opacity: 0;
        transform: translateY(20px) scale(0.8);
    }
    3%, 22% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
    25% {
        opacity: 0;
        transform: translateY(-20px) scale(0.8);
    }
}

.image-placeholder::before {
    content: '';
    position: absolute;
    width: 100%;
    border-radius: 50%;
    height: 100%;
    background: radial-gradient(circle at center, 
        rgba(52, 152, 219, 0.3) 0%,
        rgba(52, 152, 219, 0.15) 50%,
        transparent 100%);
    animation: glowPulse 4s infinite;
}

@keyframes glowPulse {
    0%, 100% {
        opacity: 0.3;
        transform: scale(1);
    }
    50% {
        opacity: 0.6;
        transform: scale(1.1);
    }
}

@media (max-width: 992px) {
    .about-content {
        flex-direction: column;
        gap: 2rem;
    }
    
    .about-text {
        order: 2;
    }
    
    .about-image {
        order: 1;
    }
}

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

.skill-card {
    background: rgba(5, 16, 31, 0.8);
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.skill-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
    border-color: var(--secondary-color);
}

.skill-card i {
    font-size: 3rem;
    color: var(--secondary-color);
    margin-bottom: 1rem;
    transition: transform 0.3s ease;
}

.skill-card:hover i {
    transform: scale(1.2);
}

/* Projects Section */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
    min-height: 300px;
}

.project-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 300px;
    width: 100%;
    grid-column: 1 / -1;
}

.project-loading i {
    font-size: 3rem;
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

.projects-note {
    text-align: center;
    margin-top: 2rem;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
}

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

.projects-note a:hover {
    color: var(--accent-color);
    text-decoration: underline;
}

.project-card {
    background: rgba(5, 16, 31, 0.8);
    border-radius: 10px;
    overflow: hidden;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
    border-color: var(--secondary-color);
}

.project-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.project-card:hover .project-image img {
    transform: scale(1.1);
}

.project-content {
    padding: 1.5rem;
}

.project-content h3 {
    color: var(--secondary-color);
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.project-content p {
    color: var(--text-color);
    margin-bottom: 1rem;
    font-size: 0.9rem;
    line-height: 1.6;
}

.project-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.project-badge {
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}

.project-badge.new {
    background-color: rgba(46, 204, 113, 0.2);
    color: #2ecc71;
}

.project-badge.new::before {
    content: '✨';
}

.project-badge.time {
    background-color: rgba(52, 152, 219, 0.2);
    color: #3498db;
}

.project-badge.time::before {
    content: '🕒';
}

.project-languages {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.language-badge {
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    transition: all 0.3s ease;
}

.language-badge i {
    font-size: 0.6rem;
    margin: 0;
}

.language-badge:hover {
    transform: translateY(-2px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

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

.project-link {
    color: var(--text-color);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    background: rgba(52, 152, 219, 0.1);
}

.project-link:hover {
    color: var(--secondary-color);
    background: rgba(52, 152, 219, 0.2);
    transform: translateY(-2px);
}

.project-link i {
    font-size: 1.1rem;
}

/* Contact Section */
.contact-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    max-width: 600px;
    margin: 0 auto;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.contact-form {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    position: relative;
}

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

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: var(--text-color);
    font-size: 1rem;
    transition: all 0.3s ease;
    font-family: 'Cairo', sans-serif;
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
    line-height: 1.6;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--secondary-color);
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 0 15px rgba(52, 152, 219, 0.3);
}

.submit-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    background: var(--secondary-color);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    font-family: 'Cairo', sans-serif;
    transition: all 0.3s ease;
    margin-top: 1rem;
}

.submit-button:hover {
    background: #2980b9;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(52, 152, 219, 0.4);
}

.submit-button i {
    font-size: 1.1rem;
    transition: transform 0.3s ease;
}

.submit-button:hover i {
    transform: translateX(5px);
}

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

.social-link {
    color: var(--text-color);
    font-size: 2rem;
    transition: all 0.3s ease;
    padding: 0.5rem;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 3.5rem;
    height: 3.5rem;
    text-decoration: none;
}

.social-link:hover {
    color: var(--secondary-color);
    transform: translateY(-3px);
    background: rgba(52, 152, 219, 0.2);
    box-shadow: 0 5px 15px rgba(52, 152, 219, 0.3);
}

/* Specific social media colors on hover */
.social-link:hover .fa-github {
    color: #0077b5;
}

.social-link:hover .fa-linkedin {
    color: #0077b5;
}

.social-link:hover .fa-x-twitter {
    color: #000;
}

.social-link:hover .fa-instagram {
    color: #e4405f;
}

.social-link:hover .fa-npm {
    color: #cb3837;
}

.social-link:hover .fa-discord {
    color: #7289da;
}

/* Notification Styles */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 1rem 2rem;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    color: var(--text-color);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transform: translateX(150%);
    transition: transform 0.3s ease;
    z-index: 1000;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.notification.show {
    transform: translateX(0);
}

.notification.success {
    border-right: 4px solid #2ecc71;
}

.notification.error {
    border-right: 4px solid #e74c3c;
}

.notification i {
    font-size: 1.2rem;
}

.notification.success i {
    color: #2ecc71;
}

.notification.error i {
    color: #e74c3c;
}

/* Footer */
footer {
    text-align: center;
    padding: 2rem;
    background: rgba(5, 16, 31, 0.95);
    backdrop-filter: blur(15px);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: rgba(10, 25, 47, 0.95);
        padding: 1rem;
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
    
    .nav-links.active {
        display: flex;
    }
    
    .menu-toggle {
        display: block;
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .hero-content h2 {
        font-size: 1.5rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        gap: 1rem;
    }
    
    section {
        padding: 3rem 5%;
    }
    
    .section-title {
        font-size: 2rem;
    }
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.hero-content, .skill-card, .container, .project-card {
    animation: fadeIn 1s ease-out;
}

/* Add subtle animated gradient background */
@keyframes gradient {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

@keyframes move-twink-back {
    from {background-position: 0 0;}
    to {background-position: -10000px 5000px;}
}

.project-error {
    text-align: center;
    padding: 2rem;
    background: rgba(231, 76, 60, 0.1);
    border-radius: 10px;
    margin: 2rem auto;
    max-width: 500px;
    border: 1px solid rgba(231, 76, 60, 0.2);
}

.project-error i {
    font-size: 3rem;
    color: var(--accent-color);
    margin-bottom: 1rem;
    animation: pulse 2s infinite;
}

.project-error p {
    margin: 0.5rem 0;
    color: var(--text-color);
    font-size: 1.1rem;
}

.error-details {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    margin-top: 1rem;
}

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

.error-details a:hover {
    color: var(--accent-color);
    text-decoration: underline;
}

.retry-button {
    margin-top: 1.5rem;
    padding: 0.8rem 1.5rem;
    background: var(--accent-color);
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.retry-button:hover {
    background: #c0392b;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(231, 76, 60, 0.3);
}

.retry-button i {
    font-size: 1rem;
    margin: 0;
    animation: none;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
    }
}

.project-loading {
    text-align: center;
    padding: 3rem;
    color: var(--secondary-color);
}

.project-loading i {
    font-size: 2rem;
    margin-bottom: 1rem;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
} 
