@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Plus+Jakarta+Sans:wght@300;400;500;600;700&display=swap');

:root {
    --bg-dark: #070913;
    --bg-card: rgba(13, 17, 34, 0.65);
    --border-color: rgba(255, 255, 255, 0.08);
    --primary: #00f2fe;
    --primary-glow: rgba(0, 242, 254, 0.15);
    --secondary: #9d4edd;
    --secondary-glow: rgba(157, 78, 221, 0.15);
    --accent: #00ffc6;
    --text-main: #f3f4f6;
    --text-muted: #9ca3af;
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Plus Jakarta Sans', sans-serif;
    --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

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

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    background-image: 
        radial-gradient(circle at 10% 20%, rgba(157, 78, 221, 0.08) 0%, transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(0, 242, 254, 0.08) 0%, transparent 45%);
    background-attachment: fixed;
}

/* Scrollbar styling */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-dark);
}
::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    border: 2px solid var(--bg-dark);
}
::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}

/* Utility Classes */
.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: 3rem;
    background: linear-gradient(135deg, #fff 30%, var(--primary) 70%, var(--secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    border-radius: 2px;
    margin: 0.75rem auto 0 auto;
}

.glass-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
    transition: var(--transition-smooth);
}

.glass-card:hover {
    border-color: rgba(0, 242, 254, 0.25);
    box-shadow: 0 15px 35px -5px rgba(0, 242, 254, 0.1);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.85rem 2rem;
    border-radius: 50px;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition-smooth);
    border: none;
    outline: none;
    gap: 0.5rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), #00b8ff);
    color: #070913;
    box-shadow: 0 4px 15px rgba(0, 242, 254, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 242, 254, 0.5);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-main);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-2px);
}

/* Navigation */
nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(7, 9, 19, 0.75);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    padding: 1rem 0;
}

nav .nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    text-decoration: none;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.5px;
}

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

.nav-links a {
    text-decoration: none;
    color: var(--text-muted);
    font-weight: 500;
    font-size: 0.95rem;
    transition: var(--transition-smooth);
}

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

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

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: 80px;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 4rem;
    align-items: center;
    width: 100%;
}

.hero-content h2 {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 0.5rem;
}

.hero-content h1 {
    font-family: var(--font-heading);
    font-size: 4rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, #fff 40%, var(--text-muted) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-content p {
    font-size: 1.15rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
    max-width: 580px;
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

.social-links {
    display: flex;
    gap: 1.2rem;
}

.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    text-decoration: none;
    transition: var(--transition-smooth);
    font-size: 1.2rem;
}

.social-icon:hover {
    color: var(--primary);
    background: var(--primary-glow);
    border-color: var(--primary);
    transform: translateY(-3px);
}

/* Avatar Side */
.hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.avatar-wrapper {
    position: relative;
    width: 100%;
    max-width: 420px;
    aspect-ratio: 1;
    border-radius: 24px;
    overflow: hidden;
    border: 1px solid rgba(0, 242, 254, 0.2);
    box-shadow: 0 20px 50px rgba(0, 242, 254, 0.15);
}

.avatar-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
}

.visualizer-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 10;
}

.visualizer-canvas {
    width: 100%;
    height: 100%;
}

.avatar-controls {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 20;
}

.btn-play-voice {
    background: rgba(7, 9, 19, 0.85);
    border: 1px solid var(--primary);
    color: var(--primary);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.btn-play-voice:hover {
    background: var(--primary);
    color: #070913;
    box-shadow: 0 4px 20px rgba(0, 242, 254, 0.4);
}

.voice-wave-container {
    display: flex;
    align-items: center;
    gap: 3px;
    height: 15px;
}

.voice-bar {
    width: 3px;
    height: 100%;
    background-color: var(--primary);
    border-radius: 2px;
    animation: bounce 1s ease-in-out infinite alternate;
    animation-play-state: paused;
}

.voice-bar:nth-child(2) { animation-delay: 0.15s; }
.voice-bar:nth-child(3) { animation-delay: 0.3s; }
.voice-bar:nth-child(4) { animation-delay: 0.45s; }
.voice-bar:nth-child(5) { animation-delay: 0.6s; }

.playing .voice-bar {
    animation-play-state: running;
}

@keyframes bounce {
    0% { transform: scaleY(0.2); }
    100% { transform: scaleY(1); }
}

/* About Section */
.about {
    padding: 8rem 0;
    position: relative;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3.5rem;
}

.about-content h3 {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    color: #fff;
}

.about-content p {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    font-size: 1.05rem;
}

.about-highlight {
    border-left: 3px solid var(--primary);
    padding-left: 1.5rem;
    font-style: italic;
    margin: 2rem 0;
}

.goal-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    padding: 2rem;
    border-radius: 16px;
    height: fit-content;
}

.goal-card h4 {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    color: var(--primary);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Skills Section */
.skills-container {
    margin-top: 2rem;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 1.2rem;
}

.skill-tag {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1.5rem 1rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: var(--transition-smooth);
    gap: 0.75rem;
}

.skill-tag i {
    font-size: 1.75rem;
    color: var(--text-muted);
    transition: var(--transition-smooth);
}

.skill-tag:hover {
    border-color: var(--primary);
    background: rgba(0, 242, 254, 0.03);
    transform: translateY(-5px);
    color: var(--primary);
}

.skill-tag:hover i {
    color: var(--primary);
}

/* Projects Section */
.projects {
    padding: 8rem 0;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.project-card {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.project-icon {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.project-card h3 {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #fff;
}

.project-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 2rem;
    flex-grow: 1;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.project-tag {
    padding: 0.25rem 0.75rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50px;
    font-size: 0.8rem;
    color: var(--text-muted);
    border: 1px solid var(--border-color);
}

.project-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    color: var(--primary);
    font-weight: 600;
    font-size: 0.95rem;
    transition: var(--transition-smooth);
}

.project-link:hover {
    color: var(--secondary);
    gap: 0.75rem;
}

/* Experience and Internships Section */
.experience {
    padding: 8rem 0;
    position: relative;
}

.experience-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 4rem;
}

.timeline {
    position: relative;
    border-left: 2px solid var(--border-color);
    padding-left: 2rem;
    margin-left: 1rem;
}

.timeline-item {
    position: relative;
    margin-bottom: 3.5rem;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-dot {
    position: absolute;
    left: -2.55rem;
    top: 5px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background-color: var(--bg-dark);
    border: 3px solid var(--primary);
    box-shadow: 0 0 10px var(--primary);
    z-index: 2;
    transition: var(--transition-smooth);
}

.timeline-item:hover .timeline-dot {
    background-color: var(--primary);
    transform: scale(1.2);
}

.timeline-date {
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--secondary);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 0.5rem;
}

.timeline-title {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.25rem;
}

.timeline-company {
    font-size: 0.95rem;
    color: var(--primary);
    margin-bottom: 0.75rem;
    font-weight: 500;
}

.timeline-desc {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Achievements Grid */
.achievements-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

.achievement-card {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    padding: 1.5rem;
    border-radius: 16px;
    transition: var(--transition-smooth);
}

.achievement-card:hover {
    border-color: var(--secondary);
    transform: translateX(5px);
    background: rgba(157, 78, 221, 0.03);
}

.achievement-badge {
    font-size: 1.8rem;
    color: var(--secondary);
    background: linear-gradient(135deg, var(--secondary), var(--primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.achievement-details h4 {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    color: #fff;
    margin-bottom: 0.25rem;
}

.achievement-details p {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* Contact Section */
.contact {
    padding: 8rem 0;
    position: relative;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr;
    max-width: 480px;
    margin: 0 auto;
    align-items: center;
}

.contact-info-panel {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-methods {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-method-card {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    padding: 1.25rem 1.5rem;
    border-radius: 16px;
    text-decoration: none;
    color: inherit;
    transition: var(--transition-smooth);
}

.contact-method-card:hover {
    border-color: var(--primary);
    background: rgba(0, 242, 254, 0.03);
    transform: translateY(-2px);
}

.contact-method-icon {
    font-size: 1.5rem;
    color: var(--primary);
}

.contact-method-details h4 {
    font-family: var(--font-heading);
    font-size: 0.85rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.contact-method-details p {
    font-weight: 600;
    font-size: 1rem;
    color: #fff;
    margin-top: 0.15rem;
}

/* User Profile Image on Contact Card */
.contact-profile-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
}

.contact-avatar-wrapper {
    width: 220px;
    height: 220px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid var(--secondary);
    box-shadow: 0 10px 30px rgba(157, 78, 221, 0.2);
    margin-bottom: 1.5rem;
}

.contact-avatar-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.contact-profile-card h3 {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    color: #fff;
    margin-bottom: 0.25rem;
}

.contact-profile-card p {
    color: var(--primary);
    font-weight: 500;
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
}

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

/* Footer */
footer {
    border-top: 1px solid var(--border-color);
    padding: 3rem 0;
    text-align: center;
    background: rgba(7, 9, 19, 0.8);
}

footer p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

footer .footer-logo {
    display: inline-block;
    margin-bottom: 1rem;
}

/* Animations */
.fade-in-section {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

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

/* Responsive Design */
@media (max-width: 1024px) {
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }
    
    .hero-content p {
        margin-left: auto;
        margin-right: auto;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .social-links {
        justify-content: center;
    }
    
    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .about-grid,
    .experience-grid,
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 3.5rem;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 1.5rem;
    }
    
    .hero-content h1 {
        font-size: 2.8rem;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
    }
    
    .nav-links {
        display: none; /* In a real project we'd have a mobile menu toggle, keeping it clean for single page */
    }
}
