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

:root {
    --black: #000000;
    --dark-gray: #1a1a1a;
    --white: #FFFFFF;
    --orange: #FFA500;
    --orange-hover: #ff8c00;
    --text-gray: #b0b0b0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    background: var(--black);
    color: var(--white);
    overflow-x: hidden;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 80%, rgba(255, 165, 0, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 140, 0, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(255, 69, 0, 0.05) 0%, transparent 50%);
    animation: backgroundPulse 6s ease-in-out infinite alternate;
    pointer-events: none;
    z-index: -1;
}

.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--black);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
  }
  
  .spinner {
    width: 50px;
    height: 50px;
    border: 6px solid #f3f3f3;
    border-top: 6px solid #FFA500;
    border-radius: 50%;
    animation: spin 1s linear infinite;
  }
  
  @keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
  }
  
  /* Optional: fade out effect */
  .fade-out {
    opacity: 0;
    transition: opacity 0.8s ease;
  }

/* Navigation */
header {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 20px 0;
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

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

.logo {
    font-family: 'proxima nova', sans-serif;
    font-size: 24px;
    font-weight: 700;
    background: linear-gradient(135deg, var(--white), var(--orange));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: fadeInLeft 1s ease;
}

.nav-links {
    display: flex;
    gap: 30px;
    list-style: none;
}

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

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

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

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

.social-icons {
    display: flex;
    gap: 20px;
}

.social-icons a {
    color: var(--white);
    font-size: 18px;
    transition: all 0.3s ease;
}

.social-icons a:hover {
    color: var(--orange);
    transform: translateY(-3px);
}

/* Home Section */
#home {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(180deg, var(--black) 0%, var(--dark-gray) 100%);
    position: relative;
    overflow: hidden;
}

#home::before {
    content: '';
    position: absolute;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, var(--orange) 0%, transparent 70%);
    opacity: 0.1;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: pulse 4s ease-in-out infinite;
}

.hero-content {
    text-align: center;
    z-index: 1;
    padding: 0 20px;
    animation: fadeInUp 1s ease;
}

.hero-content h1 {
    /*font-family: 'Space Grotesk', sans-serif;*/
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-content h2 {
    font-size: clamp(1.2rem, 3vw, 1.5rem);
    font-weight: 400;
    color: var(--text-gray);
    margin-bottom: 40px;
}

.cta-button {
    display: inline-block;
    padding: 15px 40px;
    background: var(--orange);
    color: var(--black);
    text-decoration: none;
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.cta-button:hover::before {
    width: 300px;
    height: 300px;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(255, 165, 0, 0.3);
}

/* Sections */
section {
    padding: 100px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

section h2 {
    font-family: 'Poppins', sans-serif;
    font-size: 3rem;
    margin-bottom: 10px;
    text-align: center;
    position: relative;
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards;
}

/*section h2::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 2px;
    background: var(--orange);
}*/

.hero-content h3 {
    margin-bottom: 50px;
    text-align: center;
    position: relative;
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards;
}

.hero-content h3::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--orange);
}

/* About Section */
#about {
    background: linear-gradient(135deg, var(--dark-gray) 0%, var(--black) 100%);
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    line-height: 1.8;
    font-size: 1.1rem;
    color: var(--text-gray);
    opacity: 0;
    animation: fadeIn 1s ease 0.3s forwards;
}

.about-content strong {
    color: var(--orange);
    font-weight: 600;
}

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

.skill-card {
    background: linear-gradient(135deg, rgba(255, 165, 0, 0.1), rgba(255, 165, 0, 0.05));
    border: 1px solid rgba(255, 165, 0, 0.2);
    border-radius: 15px;
    padding: 30px;
    text-align: center;
    transition: all 0.3s ease;
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards;
    animation-delay: calc(var(--i) * 0.1s);
}

.skill-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(255, 165, 0, 0.2);
    border-color: var(--orange);
}

.skill-icon {
    font-size: 3rem;
    color: var(--orange);
    margin-bottom: 20px;
}

.skill-card h3 {
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.skill-card p {
    color: var(--text-gray);
    line-height: 1.6;
}

/* Languages Section*/
#languages {
    display: grid;
    padding: 80px 20px;
    max-width: 1200px;
    margin: 0 auto;
    gap: 30px;
    margin-top: 50px;
    position: relative;
    z-index: 1;
    overflow: hidden;
}

#languages h2 {
    text-align: center;
    font-size: 3.5rem;
    color: white;
    margin-bottom: 60px;
    text-shadow: 0 0 20px rgba(255, 165, 0, 0.5);
    position: relative;
    overflow: hidden;
}

#languages h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    width: 100px;
    height: 4px;
    background: linear-gradient(90deg, transparent, #ff8c00, transparent);
    transform: translateX(-50%);
    animation: glow 2s ease-in-out infinite alternate;
}

@keyframes glow {
    0% { box-shadow: 0 0 5px #ff8c00; }
    100% { box-shadow: 0 0 20px #ff8c00, 0 0 30px #ff8c00; }
}

.languages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 40px;
    perspective: 1000px;
    position: relative;
}

.language-card {
    background: linear-gradient(145deg, rgba(255, 165, 0, 0.1), rgba(0, 0, 0, 0.9));
    border: 2px solid transparent;
    border-radius: 20px;
    padding: 30px;
    text-align: center;
    position: relative;
    transform-style: preserve-3d;
    transition: all 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
    overflow: hidden;
    backdrop-filter: blur(10px);
    animation: float 4s ease-in-out infinite;
    animation-delay: calc(var(--i) * 0.2s);
    box-shadow: 
        0 8px 25px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 165, 0, 0.2);
}

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

.language-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 165, 0, 0.3), transparent);
    transition: left 0.6s ease;
}

.language-card:hover::before {
    left: 100%;
}

.language-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 20px;
    padding: 2px;
    background: linear-gradient(45deg, #ff8c00, #ff4500, #ff8c00);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.language-card:hover {
    transform: translateY(-20px) scale(1.05) rotateX(10deg) rotateY(5deg);
    box-shadow: 
        0 25px 50px rgba(0, 0, 0, 0.5),
        0 0 30px rgba(255, 165, 0, 0.3),
        inset 0 1px 0 rgba(255, 165, 0, 0.4);
    border-color: #ff8c00;
    background: linear-gradient(145deg, rgba(255, 165, 0, 0.2), rgba(0, 0, 0, 0.95));
}

.language-card:hover::after {
    opacity: 1;
}

.language-icon {
    font-size: 3.5rem;
    color: #ff8c00;
    margin-bottom: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 80px;
    position: relative;
    transition: all 0.4s ease;
}

.language-icon i {
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    filter: drop-shadow(0 0 10px rgba(255, 165, 0, 0.5));
}

.language-card:hover .language-icon {
    transform: scale(1.3) rotateY(360deg);
}

.language-card:hover .language-icon i {
    color: white;
    filter: drop-shadow(0 0 20px rgba(255, 165, 0, 0.8));
}

.language-card h3 {
    font-size: 1.5rem;
    color: white;
    margin-bottom: 15px;
    transition: all 0.3s ease;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    position: relative;
}

.language-card:hover h3 {
    color: #ff8c00;
    text-shadow: 0 0 10px rgba(255, 165, 0, 0.5);
    transform: scale(1.1);
}

.language-card p {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
    transition: all 0.3s ease;
    opacity: 0.7;
}

.language-card:hover p {
    color: white;
    opacity: 1;
    transform: scale(1.05);
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

/* 3D wave effect on grid */
.languages-grid:hover .language-card:not(:hover) {
    transform: translateZ(-50px) scale(0.9);
    opacity: 0.7;
}

/* Responsive design */
@media (max-width: 768px) {
    #languages h2 {
        font-size: 2.5rem;
    }
    
    .languages-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .language-card {
        padding: 50px;
    }
    
    .language-icon {
        font-size: 3rem;
    }
}

/* Additional wave particles */
.wave-particle {
    position: absolute;
    top: 100%;
    left: 50%;
    width: 6px;      /* small size */
    height: 6px;     /* small size */
    pointer-events: none;
    border-radius: 50%;
    background: #ff8c00;
    opacity: 0;
    animation: particleFloat 8s linear infinite;
    z-index: 1;
    box-shadow: 0 0 4px rgba(255,165,0,0.7); /* optional glow */
}

/*.wave-particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: #ff8c00;
    border-radius: 50%;
    opacity: 0;
    animation: particleFloat linear infinite;
}*/

@keyframes particleFloat {
    0% {
        transform: translateX(0) translateY(0) scale(1);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translate(var(--x-drift, 50px), -20%) scale(var(--size, 1));
        opacity: 0;
    }
}

/* Dynamic particle generation */
.wave-particle:nth-child(odd) {
    animation-delay: -2s;
    left: 20%;
}

.wave-particle:nth-child(even) {
    animation-delay: -4s;
    left: 80%;
}

/* Ripple animation for interactive effects */
@keyframes ripple {
    to {
        transform: scale(4);
        opacity: 0;
    }
}
section, .footer {
    position: relative;
    z-index: 2;
}


/* Floating Particles Container */
#particles-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

/* Individual particle styles */
.particle {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    opacity: 0;
}

/* Different particle sizes */
.particle.small {
    width: 3px;
    height: 3px;
    background: radial-gradient(circle, #ff8c00, #ff4500);
    box-shadow: 0 0 6px rgba(255, 140, 0, 0.8);
}

.particle.medium {
    width: 6px;
    height: 6px;
    background: radial-gradient(circle, #ffa500, #ff6347);
    box-shadow: 0 0 12px rgba(255, 165, 0, 0.6);
}

.particle.large {
    width: 10px;
    height: 10px;
    background: radial-gradient(circle, #ff7f00, #ff4500);
    box-shadow: 0 0 20px rgba(255, 127, 0, 0.4);
}

.particle.extra-large {
    width: 15px;
    height: 15px;
    background: radial-gradient(circle, #ff8c00, #ff2500);
    box-shadow: 0 0 30px rgba(255, 140, 0, 0.3);
}

/* Floating animations */
@keyframes floatUp {
    0% {
        transform: translateY(100vh) translateX(0px) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(-100px) translateX(var(--drift)) rotate(360deg);
        opacity: 0;
    }
}

@keyframes floatSideways {
    0% {
        transform: translateX(-100px) translateY(var(--start-y)) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateX(100vw) translateY(calc(var(--start-y) + var(--drift-y))) rotate(720deg);
        opacity: 0;
    }
}

@keyframes floatDiagonal {
    0% {
        transform: translateX(100vw) translateY(100vh) rotate(0deg) scale(0);
        opacity: 0;
    }
    10% {
        opacity: 1;
        transform: translateX(100vw) translateY(100vh) rotate(45deg) scale(1);
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateX(-100px) translateY(-100px) rotate(405deg) scale(0.5);
        opacity: 0;
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.6;
    }
    50% {
        transform: scale(1.5);
        opacity: 1;
    }
}

@keyframes orbit {
    0% {
        transform: translateX(var(--orbit-x)) translateY(var(--orbit-y)) rotate(0deg) translateX(var(--orbit-radius)) rotate(0deg);
    }
    100% {
        transform: translateX(var(--orbit-x)) translateY(var(--orbit-y)) rotate(360deg) translateX(var(--orbit-radius)) rotate(-360deg);
    }
}
/* Work Section */
#work {
    background: linear-gradient(135deg, var(--black) 0%, var(--dark-gray) 100%);
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
    margin-top: 50px;
}

.project-card {
    background: rgba(255, 255, 255, 0.02);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.3s ease;
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards;
    animation-delay: calc(var(--i) * 0.15s);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.project-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 30px 60px rgba(255, 165, 0, 0.15);
}

.project-image {
    width: 100%;
    height: 250px;
    background: linear-gradient(135deg, var(--orange), #ff6b6b);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    color: white;
    position: relative;
    overflow: hidden;
}

.project-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.6s ease;
}

.project-card:hover .project-image::after {
    left: 100%;
}

.project-info {
    padding: 30px;
}

.project-info h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.project-info p {
    color: var(--text-gray);
    line-height: 1.6;
    margin-bottom: 20px;
}

.project-link {
    display: inline-block;
    padding: 10px 25px;
    background: var(--orange);
    color: var(--black);
    text-decoration: none;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.project-link:hover {
    background: var(--orange-hover);
    transform: translateX(5px);
}

/* Contact Section */
.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    max-width: 1000px;
    margin: 0 auto;
}

.contact-info {
    opacity: 0;
    animation: fadeInLeft 0.8s ease forwards;
}

.contact-info p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    color: var(--text-gray);
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    transition: transform 0.3s ease;
}

.contact-item:hover {
    transform: translateX(10px);
}

.contact-item i {
    color: var(--orange);
    font-size: 1.2rem;
    width: 30px;
}

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

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

.contact-form {
    opacity: 0;
    animation: fadeInRight 0.8s ease forwards;
}

.form-group {
    margin-bottom: 20px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    color: var(--white);
    font-family: 'Inter', sans-serif;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--orange);
    background: rgba(255, 165, 0, 0.05);
}

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

.submit-btn {
    width: 100%;
    padding: 15px;
    background: var(--orange);
    color: var(--black);
    border: none;
    border-radius: 10px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.submit-btn:hover {
    background: var(--orange-hover);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(255, 165, 0, 0.3);
}

.footer {
    background: linear-gradient(
        to right,
        black,                 /* fade in from black */
        rgba(255, 165, 0, 0.8) 20%,  /* semi-transparent orange */
        rgba(255, 165, 0, 0.8) 80%,/* solid orange area */
        black                  /* fade out to black */
    );
    color: var(--black);
    padding: 10px 20px;
    margin-bottom: 0;
    overflow: hidden;
}

.footer-bottom {
    text-align: center;
}

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

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

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

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

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

/* Mobile Menu */
.mobile-menu-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--white);
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        height: 100vh;
        background: rgba(0, 0, 0, 0.98);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: right 0.3s ease;
    }
    
    .nav-links.active {
        right: 0;
    }
    
    .mobile-menu-toggle {
        display: block;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
    }
    
    .project-grid {
        grid-template-columns: 1fr;
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
    
    section h2 {
        font-size: 2rem;
    }
    
    .social-icons {
        display: none;
    }
}

/* Scroll animations trigger */
.fade-in-section {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.8s ease;
}

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