/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #1a1a1a;
    color: #f0f0f0;
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

/* Navbar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 5%;
    background-color: rgba(26, 26, 26, 0.95);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: #64ffda;
    letter-spacing: 1px;
}

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

.nav-links a {
    font-size: 1rem;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: #64ffda;
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 1rem;
    background-color: #0a192f;
    position: relative;
    overflow: hidden;
}

/* Background Shapes */
.hero-shapes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
}

.shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
    animation: float 20s infinite alternate;
}

.shape-1 {
    top: -10%;
    left: -10%;
    width: 500px;
    height: 500px;
    background: #64ffda;
    animation-delay: 0s;
}

.shape-2 {
    bottom: -10%;
    right: -10%;
    width: 400px;
    height: 400px;
    background: #00bfa5;
    animation-delay: -5s;
}

.shape-3 {
    top: 30%;
    right: 20%;
    width: 300px;
    height: 300px;
    background: #112240;
    animation-delay: -10s;
}

@keyframes float {
    0% { transform: translate(0, 0) rotate(0deg); }
    100% { transform: translate(50px, 50px) rotate(20deg); }
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero h1 {
    font-size: 4.5rem;
    margin-bottom: 0.5rem;
    font-weight: 800;
}

.typing-text {
    font-size: 1.8rem;
    color: #8892b0;
    margin-bottom: 1.5rem;
    font-weight: 400;
    border-right: 2px solid #64ffda;
    white-space: nowrap;
    overflow: hidden;
    display: inline-block;
    animation: typing 3.5s steps(30, end), blink-caret 0.75s step-end infinite;
}

/* Typing Animation */
@keyframes typing {
    from { width: 0 }
    to { width: 100% }
}

@keyframes blink-caret {
    from, to { border-color: transparent }
    50% { border-color: #64ffda }
}

.hero p {
    font-size: 1.2rem;
    color: #8892b0;
    margin-bottom: 2.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.highlight {
    color: #64ffda;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    border: 2px solid #64ffda;
    color: #64ffda;
    border-radius: 5px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn:hover {
    background-color: rgba(100, 255, 218, 0.1);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(100, 255, 218, 0.2);
}

.btn-small {
    display: inline-block;
    padding: 0.5rem 1rem;
    background-color: transparent;
    border: 1px solid #64ffda;
    color: #64ffda;
    border-radius: 4px;
    font-size: 0.9rem;
    margin-top: 1rem;
    transition: all 0.3s ease;
}

.btn-small:hover {
    background-color: #64ffda;
    color: #1a1a1a;
}

/* Sections General */
section {
    padding: 5rem 10%;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

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

.section-title {
    font-size: 2.5rem;
    margin-bottom: 3rem;
    text-align: center;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background-color: #64ffda;
    margin: 10px auto 0;
    border-radius: 2px;
}

/* About Section */
.about-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 2rem;
}

.about-text {
    max-width: 700px;
    font-size: 1.1rem;
    color: #a8b2d1;
}

.skills {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
}

.skill-tag {
    background-color: #233554;
    color: #64ffda;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.9rem;
    transition: transform 0.3s ease;
}

.skill-tag:hover {
    transform: translateY(-5px);
}

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

.project-card {
    background-color: #112240;
    padding: 2rem;
    border-radius: 10px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid transparent;
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px -15px rgba(2, 12, 27, 0.7);
    border-color: #64ffda;
}

.project-info h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #e6f1ff;
}

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

/* Contact Section */
.contact {
    text-align: center;
    padding-bottom: 5rem;
}

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

.social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: #112240;
    color: #8892b0;
    font-size: 1.5rem;
    transition: all 0.3s cubic-bezier(0.645, 0.045, 0.355, 1);
    border: 1px solid transparent;
    box-shadow: 0 10px 30px -10px rgba(2, 12, 27, 0.7);
}

.social-btn:hover {
    color: #64ffda;
    background-color: #1a1a1a;
    transform: translateY(-5px);
    border-color: #64ffda;
    box-shadow: 0 20px 30px -15px rgba(100, 255, 218, 0.2);
}

/* Footer */
footer {
    text-align: center;
    padding: 2rem;
    background-color: #0a192f;
    color: #8892b0;
    font-size: 0.9rem;
}

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

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

.animate-fade-down {
    animation: fadeDown 1s ease-out forwards;
}

.animate-fade-up {
    animation: fadeUp 1s ease-out forwards;
}

.delay-1 {
    animation-delay: 0.2s;
    opacity: 0; /* Initially hidden for delay */
    animation-fill-mode: forwards;
}

/* Responsive */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .navbar {
        padding: 1rem 5%;
    }
    
    .nav-links {
        display: none; /* For simplicity, hiding nav links on mobile for now */
    }
}
