:root {
    --primary-color: #2563eb;
    --secondary-color: #1e40af;
    --text-color: #f8fafc;
    --background: #0f172a;
    --card-background: rgba(255, 255, 255, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background: var(--background);
    color: var(--text-color);
    line-height: 1.6;
}

section {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 2rem;
}

.container {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(
        135deg,
        var(--primary-color),
        var(--secondary-color)
    );
}

.content-wrapper {
    text-align: center;
    padding: 2rem;
    max-width: 800px;
}

.name {
    font-size: 4.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    letter-spacing: -1px;
    animation: fadeInUp 1s ease;
}

.tagline {
    font-size: 1.5rem;
    opacity: 0.9;
    margin-bottom: 2rem;
    animation: fadeInUp 1s ease 0.2s backwards;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 4rem;
    color: var(--text-color);
    font-weight: 600;
}

.social-links {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    margin-bottom: 3rem;
    animation: fadeInUp 1s ease 0.4s backwards;
}

.social-icon {
    color: var(--text-color);
    font-size: 1.5rem;
    transition: transform 0.3s ease;
}

.social-icon:hover {
    transform: translateY(-3px);
}

.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 2rem;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    animation: fadeInUp 1s ease 0.6s backwards;
}

.cta-button:hover {
    background: var(--text-color);
    color: var(--primary-color);
    transform: translateY(-3px);
}

/* Navigation */
.side-nav {
    position: fixed;
    right: 2rem;
    top: 50%;
    transform: translateY(-50%);
    z-index: 100;
}

.side-nav ul {
    list-style: none;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 3rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.nav-link {
    width: 3rem;
    height: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: var(--text-color);
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    background: rgba(255, 255, 255, 0.05);
}

.nav-link.active {
    background: var(--primary-color);
    color: white;
}

.nav-link:hover {
    background: var(--primary-color);
}

.tooltip {
    position: absolute;
    right: calc(100% + 1rem);
    background: rgba(0, 0, 0, 0.8);
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.nav-link:hover .tooltip {
    opacity: 1;
    visibility: visible;
}

/* Projects Section */
#projects {
    margin-top: -3px;
    padding: 6rem 2rem;
    background: var(--background);
}

.project-grid {
    display: flex;
    justify-content: center;
    gap: 2rem;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.project-card {
    flex: 1;
    max-width: 350px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 1rem;
    overflow: hidden;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.project-content {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.project-content h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-color);
}

.project-content p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.technologies {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.tech-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 2rem;
    font-size: 0.875rem;
}

.tech-item i {
    font-size: 1rem;
    color: var(--text-color);
}

.project-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: var(--primary-color);
    color: var(--text-color);
    text-decoration: none;
    border-radius: 2rem;
    font-size: 0.875rem;
    transition: background 0.3s ease;
    margin-top: auto;
    align-self: flex-start;
}

.project-link:hover {
    background: var(--secondary-color);
}

/* Contact Section */
#contact {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
}

.contact-container {
    width: 90%;
    max-width: 800px;
    margin: 0 auto;
    padding: 3rem;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border-radius: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.form-group {
    margin-bottom: 1.5rem;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-color);
}

input, textarea {
    width: 100%;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 0.5rem;
    color: var(--text-color);
    font-family: inherit;
    font-size: 1rem;
}

textarea {
    min-height: 150px;
    resize: vertical;
}

input::placeholder, textarea::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

input:focus, textarea:focus {
    outline: none;
    border-color: rgba(255, 255, 255, 0.5);
}

#contact-form {
    display: flex;
    flex-direction: column;
}

.submit-btn {
    align-self: flex-end;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    background: var(--text-color);
    color: var(--primary-color);
    border: none;
    border-radius: 50px;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.submit-btn:hover {
    transform: translateY(-3px);
}

.success-message {
    display: none;
    text-align: center;
    padding: 1rem;
    margin-top: 1rem;
    background: rgba(72, 187, 120, 0.2);
    border-radius: 0.5rem;
    color: #48bb78;
}

.success-message.show {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.success-message i {
    font-size: 1.5rem;
}

/* Footer */
footer {
    padding: 2rem;
    background: var(--background);
    text-align: center;
}

.legal-links {
    margin-top: 1rem;
}

.legal-links a {
    color: var(--text-color);
    text-decoration: none;
    margin: 0 1rem;
    opacity: 0.8;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 1024px) {
    .name {
        font-size: 3.5rem;
    }
    
    .side-nav {
        right: 1rem;
    }
    
    .project-grid {
        flex-wrap: wrap;
        padding: 0 1rem;
    }
    
    .project-card {
        flex: 1 1 calc(50% - 1rem);
        max-width: none;
    }
}

@media (max-width: 768px) {
    body {
        padding-bottom: 4rem;
    }
    
    .name {
        font-size: 2.5rem;
    }
    
    .tagline {
        font-size: 1.2rem;
    }
    
    .content-wrapper {
        padding: 1rem;
    }
    
    .side-nav {
        position: fixed;
        bottom: 0;
        right: 0;
        left: 0;
        top: auto;
        transform: none;
    }
    
    .side-nav ul {
        flex-direction: row;
        justify-content: space-around;
        width: 100%;
        border-radius: 1rem 1rem 0 0;
        padding: 0.5rem;
    }
    
    .tooltip {
        display: none;
    }
    
    section {
        padding: 4rem 1rem;
    }
    
    .section-title {
        font-size: 2rem;
        margin-bottom: 2rem;
    }
    
    .contact-container {
        width: 95%;
        padding: 1.5rem;
    }
    
    .submit-btn {
        width: 100%;
        justify-content: center;
    }
    
    .project-grid {
        flex-direction: column;
    }
    
    .project-card {
        flex: 1;
        width: 100%;
        margin-bottom: 1.5rem;
    }
    
    footer {
        margin-bottom: 3.5rem;
    }
}

@media (max-width: 480px) {
    .name {
        font-size: 2rem;
    }
    
    .social-links {
        gap: 1rem;
    }
    
    .cta-button {
        padding: 0.75rem 1.5rem;
        font-size: 0.9rem;
    }
    
    .tech-item {
        font-size: 0.75rem;
        padding: 0.25rem 0.75rem;
    }
}