/* Variables */
:root {
    --bg-color: #0b0014;
    --primary-color: #a855f7;
    --secondary-color: #3a0ca3;
    --text-color: #ffffff;
    --text-muted: rgba(255, 255, 255, 0.7);
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --font-family: 'Poppins', sans-serif;
}

/* Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: var(--font-family);
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-color);
    background-image: radial-gradient(circle at top, var(--secondary-color), var(--bg-color));
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Glassmorphism utility */
.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
}

.hover-lift {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(168, 85, 247, 0.3);
}

/* Navbar */
.navbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 8%;
    background: rgba(11, 0, 20, 0.8);
    backdrop-filter: blur(15px);
    border-bottom: 1px solid var(--glass-border);
}

.logo {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-color);
}

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

.nav-links a {
    color: var(--text-color);
    text-decoration: none;
    font-size: 16px;
    font-weight: 600;
    transition: color 0.3s ease, text-shadow 0.3s ease;
}

.nav-links a:hover {
    color: var(--primary-color);
    text-shadow: 0px 0px 10px var(--primary-color);
}

/* Sections */
section {
    padding: 100px 8%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.section-title {
    font-size: 40px;
    margin-bottom: 60px;
    text-align: center;
}

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

/* Hero Section */
.hero-section {
    min-height: calc(100vh - 80px);
}

.hero-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 50px;
}

.hero-content {
    flex: 1;
}

.hero-content h4 {
    font-size: 24px;
    font-weight: 400;
    margin-bottom: 10px;
}

.hero-content h1 {
    font-size: 64px;
    line-height: 1.2;
    margin-bottom: 20px;
}

.hero-content span {
    color: var(--primary-color);
}

.subtitle {
    font-size: 28px;
    margin-bottom: 20px;
    font-weight: 600;
}

.desc {
    color: var(--text-muted);
    font-size: 18px;
    max-width: 600px;
}

.hero-image-wrapper {
    flex: 1;
    display: flex;
    justify-content: center;
}

.hero-image {
    max-width: 100%;
    height: auto;
    border-radius: 20px;
    filter: drop-shadow(0 0 20px rgba(168, 85, 247, 0.5));
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
    100% { transform: translateY(0px); }
}

.floating {
    animation: float 6s ease-in-out infinite;
}

/* Experience Section */
.experience-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 40px;
}

.experience-card {
    display: flex;
    align-items: flex-start;
    gap: 25px;
    padding: 40px;
}

.experience-card .icon {
    font-size: 48px;
    background: rgba(168, 85, 247, 0.2);
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.experience-card h3 {
    font-size: 24px;
    margin-bottom: 10px;
}

.experience-card p {
    color: var(--text-muted);
}

/* Projects Section */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
}

.project-card {
    height: 350px;
    border-radius: 20px;
    background-size: cover;
    background-position: center;
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.project-info {
    position: absolute;
    bottom: -100%;
    left: 0;
    width: 100%;
    padding: 30px 20px;
    border-radius: 0 0 20px 20px;
    transition: bottom 0.4s ease;
    background: rgba(11, 0, 20, 0.9);
}

.project-card:hover .project-info {
    bottom: 0;
}

.project-info p {
    font-size: 16px;
    font-weight: 600;
}

/* Contact Section */
.contact-content {
    display: flex;
    gap: 50px;
    justify-content: space-between;
}

.contact-form-container, .contact-details {
    flex: 1;
    padding: 50px;
}

.greet-heading {
    font-size: 28px;
    margin-bottom: 30px;
    color: var(--primary-color);
}

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

.input-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text-muted);
}

.form-controls {
    width: 100%;
    padding: 15px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    border-radius: 10px;
    color: var(--text-color);
    outline: none;
    transition: border-color 0.3s;
}

.form-controls:focus {
    border-color: var(--primary-color);
    background: rgba(255, 255, 255, 0.1);
}

.btn {
    width: 100%;
    padding: 15px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    margin-top: 10px;
}

.details {
    margin-bottom: 25px;
}

.contact-heading {
    font-size: 18px;
    color: var(--text-muted);
    margin-bottom: 5px;
}

.contact-text {
    font-size: 16px;
    font-weight: 600;
}

/* Footer */
.footer {
    background: #000;
    padding: 40px 8%;
    text-align: center;
}

.footer-content p {
    color: var(--text-muted);
    margin-bottom: 20px;
}

.footer-menu-list {
    display: flex;
    justify-content: center;
    list-style: none;
    gap: 20px;
}

.footer-list-items {
    width: 50px;
    height: 50px;
    background: var(--glass-bg);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s;
}

.footer-list-items:hover {
    background: var(--primary-color);
}

.footer-links {
    color: white;
    font-size: 20px;
    text-decoration: none;
}

/* Animations Triggered by JS */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Hero Section Animations */
.slide-in-left {
    opacity: 0;
    transform: translateX(-50px);
    animation: slideInLeft 1s ease-out forwards;
}

.slide-in-right {
    opacity: 0;
    transform: translateX(50px);
    animation: slideInRight 1s ease-out 0.3s forwards;
}

.fade-in-up {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 1s ease-out 1s forwards;
}

@keyframes slideInLeft {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.typing-container {
    display: inline-block;
    min-height: 42px; /* Prevent layout shift */
}

.cursor {
    display: inline-block;
    width: 3px;
    background-color: var(--primary-color);
    margin-left: 2px;
    animation: blink 1s step-end infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

/* Responsive Design */
@media (max-width: 1024px) {
    .hero-container, .contact-content {
        flex-direction: column;
        text-align: center;
    }
    
    .hero-content h1 {
        font-size: 48px;
    }
    
    .hero-image {
        max-width: 80%;
    }
    
    .nav-links {
        display: none; /* In a real app, add a hamburger menu here */
    }
}

@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 36px;
    }
    
    .section-title {
        font-size: 32px;
    }
    
    .experience-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-form-container, .contact-details {
        padding: 30px 20px;
    }
}
