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

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    background: #0a192f;
    color: #fff;
    overflow-x: hidden;
    width: 100%;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: rgba(10, 25, 47, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 1.5rem 0;
    display: flex;
    justify-content: center;
}

.nav-links {
    display: flex;
    justify-content: center;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 3rem;
    max-width: 1200px;
    width: 100%;
}

.nav-links li {
    margin: 0;
    padding: 0;
}

.nav-links a {
    color: white;
    text-decoration: none;
    font-size: 1.1rem;
    padding: 0.5rem 1rem;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: #64ffda;
    transition: width 0.3s ease;
}

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

/* Hero Section */
.hero {
    padding-top: 80px;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-left: 2rem;
    padding-right: 2rem;
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s ease forwards;
    color: #fff;
    font-weight: 600;
}

.hero-subtitle {
    font-size: 1.5rem;
    color: #64ffda;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s ease 0.2s forwards;
}

.second-line {
    font-size: 1.3rem;
    color: #8892b0;
    animation-delay: 0.3s;
    margin-top: 0.5rem;
}

.location {
    color: #8892b0;
    font-size: 1.1rem;
    margin-top: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 1.2s ease 0.6s forwards;
}

.location i {
    color: #64ffda;
    font-size: 1rem;
}

.location:hover {
    color: #64ffda;
    transform: translateY(-2px);
    transition: all 0.3s ease;
}

/* Cards */
.card, .technologies-card, .about-card {
    background: rgba(17, 34, 64, 0.7);
    border-radius: 8px;
    padding: 2rem;
    margin: 2rem;
    box-shadow: 0 10px 30px -15px rgba(2, 12, 27, 0.7);
    border: 1px solid rgba(100, 255, 218, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover, .technologies-card:hover, .about-card:hover {
    box-shadow: 0 20px 40px -15px rgba(2, 12, 27, 0.9);
    transform: translateY(-5px);
}

/* Projects Section */
.projects-card {
    margin: 2rem;
    background: rgba(17, 34, 64, 0.7);
    padding: 2rem;
    width: auto;
}

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

.project-card {
    background: rgba(17, 34, 64, 0.9);
    border-radius: 8px;
    padding: 2rem;
    transition: transform 0.3s ease, background-color 0.3s ease;
    border: 1px solid rgba(100, 255, 218, 0.1);
    width: 100%;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    cursor: pointer;
}

.project-card:hover {
    transform: translateY(-5px);
    background-color: rgba(100, 255, 218, 0.1);
}

.project-card h3 {
    color: #64ffda;
    margin-bottom: 1rem;
}

.project-card p {
    color: #8892b0;
    margin-bottom: 1.5rem;
}

.project-link {
    color: #64ffda;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: gap 0.3s ease;
}

.project-link:hover {
    gap: 0.8rem;
}

.project-link::after {
    content: '→';
    transition: transform 0.3s ease;
}

.project-link:hover::after {
    transform: translateX(5px);
}

/* Animations */
@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    50% {
        opacity: 0.5;
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Section Titles */
.section-title {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: #64ffda;
    text-align: center;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(100, 255, 218, 0.1);
    opacity: 0;
    transform: translateY(-20px);
    animation: fadeInDown 0.8s ease forwards;
}

/* Add this animation */
@keyframes fadeInDown {
    0% {
        opacity: 0;
        transform: translateY(-20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* CTA Button */
.cta-button {
    display: inline-block;
    padding: 1rem 2rem;
    margin-top: 2rem;
    background: transparent;
    border: 2px solid #64ffda;
    color: #64ffda;
    text-decoration: none;
    border-radius: 5px;
    transition: background 0.3s ease, color 0.3s ease;
}

.cta-button:hover {
    background: rgba(100, 255, 218, 0.1);
}

/* Optional: Hide navbar on scroll down, show on scroll up */
.navbar.hidden {
    transform: translateY(-100%);
}

/* Add at the top of your CSS file */
html {
    scroll-behavior: smooth;
}

/* Technologies Section */
.technologies-card {
    margin-top: 2rem;
}

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

.tech-item {
    background: rgba(17, 34, 64, 0.9);
    border-radius: 8px;
    padding: 1.5rem;
    transition: all 0.3s ease;
    cursor: pointer;
    box-shadow: 0 4px 20px -10px rgba(2, 12, 27, 0.5);
    border: 1px solid rgba(100, 255, 218, 0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.tech-item img {
    width: 50px;
    height: 50px;
    object-fit: contain;
    margin-bottom: 1rem;
}

.tech-item span {
    color: #8892b0;
    font-size: 0.9rem;
    margin-top: 0.5rem;
    text-align: center;
}

.tech-description {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: rgba(17, 34, 64, 0.95);
    padding: 1rem;
    border-radius: 8px;
    width: 200px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    text-align: center;
    font-size: 0.9rem;
    color: #8892b0;
    box-shadow: 0 10px 30px -15px rgba(2, 12, 27, 0.7);
    z-index: 100;
    border: 1px solid rgba(100, 255, 218, 0.1);
}

.tech-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px -10px rgba(2, 12, 27, 0.7);
    background-color: rgba(100, 255, 218, 0.1);
}

.tech-item:hover .tech-description {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.tech-item:hover img {
    transform: scale(1.1);
}

/* GitHub Link in Hero Section */
.github-link {
    margin-top: 1rem;
    font-size: 2rem;
    color: #fff;
    transition: color 0.3s ease, transform 0.3s ease;
    display: inline-block;
}

.github-link:hover {
    color: #64ffda;
    transform: translateY(-3px);
}

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

/* Add animation delay for each item */
.tech-item:nth-child(1) { animation-delay: 0.1s; }
.tech-item:nth-child(2) { animation-delay: 0.2s; }
.tech-item:nth-child(3) { animation-delay: 0.3s; }
.tech-item:nth-child(4) { animation-delay: 0.4s; }
.tech-item:nth-child(5) { animation-delay: 0.5s; }
.tech-item:nth-child(6) { animation-delay: 0.6s; }
.tech-item:nth-child(7) { animation-delay: 0.7s; }
.tech-item:nth-child(8) { animation-delay: 0.8s; }
.tech-item:nth-child(9) { animation-delay: 0.9s; }

/* Update section styles */
section {
    background: transparent;
    width: 100%;
    max-width: 100vw;
    padding: 0 1rem;
}

.about-card p {
    background: transparent;
    margin-bottom: 1.2rem;
    line-height: 1.8;
    font-size: 1.1rem;
}

.about-card p:last-child {
    margin-bottom: 0;
}

.project-logo {
    width: 100%;
    max-width: 200px;
    height: auto;
    margin-bottom: 1rem;
    border-radius: 8px;
}

/* Hero Section Responsive */
@media (max-width: 768px) {
    .hero {
        margin-top: 4rem;
    }
    
    .hero-content {
        text-align: center;
        padding: 0 1rem;
    }

    .hero-content h1 {
        font-size: 2.5rem;
        margin-bottom: 1rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
        margin-bottom: 0.5rem;
    }
    
    .second-line {
        font-size: 1.1rem;
    }
}

/* Projects Grid Responsive */
@media (max-width: 768px) {
    .projects-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 0.5rem;
    }

    .project-card {
        padding: 1.5rem;
    }

    .project-logo {
        max-width: 150px;
    }
}

/* Tech Grid Responsive */
@media (max-width: 768px) {
    .tech-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
        padding: 0.5rem;
    }

    .tech-item {
        padding: 1rem;
    }
}

/* Cards Responsive */
@media (max-width: 768px) {
    .card {
        margin: 1rem;
        padding: 1.5rem;
    }

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

/* General spacing and text adjustments */
@media (max-width: 768px) {
    section {
        padding: 0 0.5rem;
    }

    .about-card p {
        font-size: 1rem;
        line-height: 1.6;
    }

    .tech-description {
        width: 180px;
        font-size: 0.8rem;
    }
}

.social-icon {
    font-size: 2rem; /* Makes GitHub icon bigger */
    color: white;
    transition: color 0.3s ease;
}

.social-icon:hover {
    color: #4CAF50; /* Green color on hover */
}

.tech-item {
    transition: transform 0.3s ease;
}

.tech-item:hover {
    transform: scale(1.05); /* Makes tech cards pop out slightly on hover */
}

/* Add this new animation */
@keyframes gradientFlow {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.gradient-text {
    background: linear-gradient(
        120deg,
        #64ffda 0%,
        #63f 25%,
        #ff6b6b 50%,
        #63f 75%,
        #64ffda 100%
    );
    background-size: 300% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: gradientFlow 8s ease infinite;
}