/* =========================================
   1. GLOBAL VARIABLES & RESET
========================================= */
:root {
    --primary-color: #a855f7; /* Soft Purple */
    --secondary-color: #ec4899; /* Soft Pink */
    --accent-color: #3b82f6; /* Soft Blue */
    --bg-dark: #0f172a;
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --transition-fast: 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

h1, h2, h3, h4 {
    font-weight: 600;
}

a {
    text-decoration: none;
    color: var(--text-main);
}

/* =========================================
   2. GLASSMORPHISM UTILITIES
========================================= */
.glass-nav {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(15, 23, 42, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--glass-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 5%;
    transition: var(--transition-fast);
}

.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 30px;
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.glass-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(168, 85, 247, 0.15);
    border-color: rgba(168, 85, 247, 0.3);
}

.glass-img {
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    border: 1px solid var(--glass-border);
    width: 100%;
    height: auto;
    display: block;
}

/* =========================================
   3. BUTTONS & TYPOGRAPHY
========================================= */
.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 30px;
    font-weight: 500;
    transition: var(--transition-fast);
    cursor: pointer;
    border: none;
    text-align: center;
}

.btn-primary {
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    color: white;
    box-shadow: 0 4px 15px rgba(236, 72, 153, 0.3);
}

.btn-primary:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(236, 72, 153, 0.5);
    color: white;
}

.btn-secondary {
    background: transparent;
    border: 1px solid var(--text-main);
    color: var(--text-main);
}

.btn-secondary:hover {
    background: var(--text-main);
    color: var(--bg-dark);
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 40px;
    text-align: center;
    background: linear-gradient(45deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* =========================================
   4. HEADER & NAVIGATION
========================================= */
.logo a {
    font-size: 1.5rem;
    font-weight: 700;
}

.logo span {
    color: var(--secondary-color);
}

nav ul {
    display: flex;
    list-style: none;
    gap: 30px;
    align-items: center;
}

nav ul li a {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: var(--transition-fast);
}

nav ul li a:hover {
    color: var(--primary-color);
}

.btn-nav {
    background: var(--glass-bg);
    padding: 8px 20px;
    border-radius: 20px;
    border: 1px solid var(--glass-border);
}

/* =========================================
   5. HERO SECTION
========================================= */
.hero-section {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    overflow: hidden;
}

/* Animated Gradient Background */
.hero-bg-overlay {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 50% 50%, rgba(168, 85, 247, 0.15), transparent 60%),
                radial-gradient(circle at 80% 20%, rgba(236, 72, 153, 0.15), transparent 50%),
                radial-gradient(circle at 20% 80%, rgba(59, 130, 246, 0.15), transparent 50%);
    animation: rotateGradient 20s linear infinite;
    z-index: -1;
}

@keyframes rotateGradient {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.hero-content {
    z-index: 1;
    padding: 0 20px;
}

.hero-content h1 {
    font-size: 4.5rem;
    line-height: 1.1;
    margin-bottom: 10px;
}

.hero-content .subtitle {
    font-size: 1.8rem;
    color: var(--text-muted);
    margin-bottom: 20px;
    font-weight: 300;
}

.hero-buttons {
    margin-top: 30px;
    display: flex;
    gap: 20px;
    justify-content: center;
}

/* =========================================
   6. SECTIONS (About, Skills, Portfolio)
========================================= */
section {
    padding: 100px 0;
}

/* About Grid */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-image {
    display: flex;
    justify-content: center;
}

.about-image img {
    max-width: 350px; /* Controls the size of the profile picture */
}

.about-text h2 {
    font-size: 2.2rem;
    margin-bottom: 20px;
}

.about-text p {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 20px;
}

/* Skills Grid */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
    text-align: center;
}

.skill-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 15px;
    text-decoration: none;
    color: var(--text-main);
    padding: 40px 20px;
}

.icon-placeholder {
    font-size: 3rem;
    margin-bottom: 10px;
}

.skill-card h3 {
    font-size: 1.1rem;
    font-weight: 500;
}

/* Portfolio Grid */
.portfolio-filters {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.filter-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 1rem;
    cursor: pointer;
    padding: 5px 15px;
    transition: var(--transition-fast);
}

.filter-btn.active, .filter-btn:hover {
    color: var(--primary-color);
    border-bottom: 2px solid var(--primary-color);
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.portfolio-item {
    position: relative;
    height: 300px;
    overflow: hidden;
    padding: 0;
    cursor: pointer;
    border-radius: 16px;
}

.img-placeholder {
    width: 100%;
    height: 100%;
    background: #1e293b;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    background-size: cover !important;
    background-position: center !important;
    transition: transform 0.5s ease;
}

.portfolio-item:hover .img-placeholder {
    transform: scale(1.05);
}

.item-overlay {
    position: absolute;
    bottom: -100%;
    left: 0;
    width: 100%;
    padding: 30px 20px;
    background: linear-gradient(transparent, rgba(15, 23, 42, 0.95) 40%);
    transition: var(--transition-fast);
}

.portfolio-item:hover .item-overlay {
    bottom: 0;
}

.item-overlay h3 {
    font-size: 1.2rem;
    margin-bottom: 5px;
    color: var(--text-main);
}

.item-overlay p {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* =========================================
   7. TIMELINE (Education)
========================================= */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    padding-left: 30px;
    border-left: 2px solid var(--glass-border);
}

.timeline-item {
    position: relative;
    margin-bottom: 40px;
}

.timeline-dot {
    position: absolute;
    left: -43px;
    top: 20px;
    width: 16px;
    height: 16px;
    background: var(--primary-color);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--primary-color);
}

.timeline-item h3 {
    font-size: 1.3rem;
}

.timeline-item h4 {
    color: var(--secondary-color);
    margin-bottom: 10px;
    font-size: 1rem;
    font-weight: 500;
}

/* =========================================
   8. CONTACT FORM
========================================= */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.contact-info h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.contact-info p {
    color: var(--text-muted);
    font-size: 1.1rem;
}

.input-group {
    margin-bottom: 20px;
}

.input-group input, .input-group textarea {
    width: 100%;
    padding: 15px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    color: var(--text-main);
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition-fast);
}

.input-group input:focus, .input-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    background: rgba(255, 255, 255, 0.08);
}

.contact-form button {
    width: 100%;
}

/* =========================================
   9. FOOTER
========================================= */
.site-footer {
    text-align: center;
    padding: 60px 20px 40px;
    border-top: 1px solid var(--glass-border);
    background: rgba(15, 23, 42, 0.5);
}

.site-footer h2 {
    font-size: 2rem;
    margin-bottom: 20px;
}

.social-links {
    margin: 20px 0 40px;
    display: flex;
    justify-content: center;
    gap: 30px;
}

.social-links a {
    color: var(--text-muted);
    transition: var(--transition-fast);
    font-size: 1.1rem;
}

.social-links a:hover {
    color: var(--secondary-color);
}

/* =========================================
   10. MOBILE RESPONSIVENESS
========================================= */
@media (max-width: 900px) {
    .about-grid, .contact-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .about-image img {
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 3rem;
    }
    
    .hero-content .subtitle {
        font-size: 1.2rem;
    }

    nav ul {
        display: none; /* Can be replaced with a hamburger menu later */
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 15px;
    }

    .timeline {
        padding-left: 20px;
    }

    .timeline-dot {
        left: -33px;
    }
    
    .section-title {
        font-size: 2rem;
    }
}