/* 
    Hafsa Rani Portfolio - Style 
    Modern, Dark Theme, Machine Learning Vibe
*/

:root {
    --bg-main: #0a0a0f;
    --bg-secondary: #12121c;
    --bg-glass: rgba(255, 255, 255, 0.03);
    --bg-glass-hover: rgba(255, 255, 255, 0.08);
    --border-glass: rgba(255, 255, 255, 0.05);

    --text-main: #f0f0f5;
    --text-muted: #9494a3;

    --accent-1: #6366f1;
    /* Indigo */
    --accent-2: #a855f7;
    /* Purple */
    --accent-3: #ec4899;
    /* Pink */

    --gradient-text: linear-gradient(to right, var(--accent-1), var(--accent-2), var(--accent-3));
    --gradient-bg: linear-gradient(135deg, var(--accent-1) 0%, var(--accent-2) 100%);

    --font-sans: 'Outfit', sans-serif;
    --font-mono: 'Fira Code', monospace;

    --transition-fast: 0.2s ease;
    --transition-smooth: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-main);
    color: var(--text-main);
    font-family: var(--font-sans);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Base Utility Classes */
.gradient-text {
    background: var(--gradient-text);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    display: inline-block;
}

.glass-panel {
    background: var(--bg-glass);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-glass);
    border-radius: 16px;
    padding: 2rem;
    transition: var(--transition-smooth);
}

.glass-panel:hover {
    background: var(--bg-glass-hover);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section {
    padding: 6rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.section-header {
    margin-bottom: 3rem;
    position: relative;
    display: inline-block;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 800;
}

.header-line {
    width: 60px;
    height: 4px;
    background: var(--gradient-text);
    margin-top: 0.5rem;
    border-radius: 2px;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition-fast);
    cursor: pointer;
    font-family: var(--font-sans);
    font-size: 1rem;
    border: none;
}

.primary-btn {
    background: var(--gradient-bg);
    color: white;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
}

.primary-btn:hover {
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.5);
    transform: translateY(-2px);
}

.secondary-btn {
    background: transparent;
    color: var(--text-main);
    border: 1px solid var(--border-glass);
}

.secondary-btn:hover {
    background: var(--bg-glass);
    border-color: var(--accent-1);
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 1.5rem 0;
    transition: var(--transition-smooth);
}

.navbar.scrolled {
    padding: 1rem 0;
    background: rgba(10, 10, 15, 0.8);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-glass);
}

.nav-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.logo span {
    color: var(--accent-1);
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 2rem;
}

.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: var(--transition-fast);
}

.nav-links a:hover {
    color: var(--text-main);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding: 0 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.hero-content {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 4rem;
    align-items: center;
    width: 100%;
}

.badge {
    display: inline-block;
    padding: 0.4rem 1rem;
    background: rgba(99, 102, 241, 0.1);
    color: var(--accent-1);
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.hero-text h1 {
    font-size: 4rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1rem;
}

.hero-text h2 {
    font-size: 1.8rem;
    color: var(--text-muted);
    font-weight: 400;
    margin-bottom: 1.5rem;
    line-height: 1.3;
}

.hero-text p {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    max-width: 500px;
}

.hero-actions {
    display: flex;
    gap: 1rem;
}

/* Hero Visual / Neural Network Animation */
.hero-visual {
    position: relative;
    height: 400px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.tech-sphere {
    width: 350px;
    height: 350px;
    position: relative;
    animation: float 6s ease-in-out infinite;
}

.profile-img-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 200px;
    height: 200px;
    border-radius: 50%;
    padding: 6px;
    background: var(--gradient-bg);
    box-shadow: 0 0 40px rgba(168, 85, 247, 0.4);
    z-index: 2;
    animation: pulse-glow 4s ease-in-out infinite;
}

.profile-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    border: 4px solid var(--bg-main);
}

@keyframes pulse-glow {

    0%,
    100% {
        box-shadow: 0 0 30px rgba(99, 102, 241, 0.4), inset 0 0 10px rgba(99, 102, 241, 0.2);
    }

    50% {
        box-shadow: 0 0 60px rgba(168, 85, 247, 0.7), inset 0 0 20px rgba(168, 85, 247, 0.4);
    }
}

.node {
    position: absolute;
    width: 60px;
    height: 60px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-glass);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
    color: var(--text-main);
    z-index: 3;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.python {
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    color: #3776AB;
}

.ml {
    bottom: 20%;
    right: 0;
    color: #FF6F00;
}

.data {
    bottom: 20%;
    left: 0;
    color: #00ACC1;
}

.math {
    bottom: -10%;
    left: 50%;
    transform: translateX(-50%);
    color: var(--accent-3);
}

/* connecting lines simulated in CSS */
.tech-sphere::before {
    content: '';
    position: absolute;
    top: 30px;
    left: 30px;
    right: 30px;
    bottom: 30px;
    border: 1px dashed var(--border-glass);
    border-radius: 50%;
    animation: spin 20s linear infinite;
}

/* Scroll indicator */
.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
}

.mouse {
    width: 26px;
    height: 42px;
    border: 2px solid var(--text-muted);
    border-radius: 14px;
    position: relative;
}

.wheel {
    width: 4px;
    height: 8px;
    background: var(--text-muted);
    border-radius: 2px;
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    animation: scroll 1.5s infinite;
}

/* About Section */
.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.terminal-header {
    display: flex;
    align-items: center;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-glass);
    margin-bottom: 1rem;
}

.dots {
    display: flex;
    gap: 6px;
}

.dots span {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.dots span:nth-child(1) {
    background: #ff5f56;
}

.dots span:nth-child(2) {
    background: #ffbd2e;
}

.dots span:nth-child(3) {
    background: #27c93f;
}

.terminal-header .title {
    margin-left: auto;
    margin-right: auto;
    font-family: var(--font-mono);
    font-size: 0.9rem;
    color: var(--text-muted);
}

.terminal-body {
    font-family: var(--font-mono);
    font-size: 0.95rem;
    overflow-x: auto;
}

.terminal-body pre {
    margin: 0;
}

.keyword {
    color: var(--accent-3);
}

.class-name {
    color: #facc15;
}

.function {
    color: var(--accent-1);
}

.string {
    color: #22c55e;
}

.built-in {
    color: #38bdf8;
}

.comment {
    color: #64748b;
    font-style: italic;
}

.about-text h3 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
}

.about-text p {
    color: var(--text-muted);
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

/* Skills Section */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.skill-category h3 {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
}

.skill-category h3 i {
    color: var(--accent-2);
}

.skill-bar {
    margin-bottom: 1.25rem;
}

.skill-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
    font-weight: 500;
}

.progress-line {
    width: 100%;
    height: 6px;
    background: var(--bg-secondary);
    border-radius: 3px;
    overflow: hidden;
}

.progress-line span {
    display: block;
    height: 100%;
    background: var(--gradient-bg);
    border-radius: 3px;
    transform-origin: left;
    animation: growWidth 1.5s ease-out forwards;
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.tag {
    background: rgba(168, 85, 247, 0.1);
    color: #e9d5ff;
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    border: 1px solid rgba(168, 85, 247, 0.2);
}

.tag.small {
    padding: 0.25rem 0.75rem;
    font-size: 0.8rem;
}

/* Projects Section */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.project-card {
    padding: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.project-image {
    height: 200px;
    background-size: cover;
    background-position: center;
    position: relative;
    background-color: var(--bg-secondary);
    /* Placeholder Gradients for projects */
}

.project-1 {
    background: linear-gradient(45deg, #1e1e2f, #2d2d44);
}

.project-2 {
    background: linear-gradient(45deg, #201a2f, #3b2844);
}

.project-3 {
    background: linear-gradient(45deg, #1a252f, #283944);
}

.project-image .overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: var(--transition-fast);
}

.project-card:hover .overlay {
    opacity: 1;
}

.project-info {
    padding: 1.5rem;
}

.project-tags {
    margin-bottom: 1rem;
    display: flex;
    gap: 0.5rem;
}

.project-info h3 {
    font-size: 1.3rem;
    margin-bottom: 0.75rem;
}

.project-info p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Contact Section */
.contact-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    padding: 3rem;
}

.contact-content h2 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
}

.contact-content p {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-icon {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: var(--bg-secondary);
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--text-main);
    text-decoration: none;
    font-size: 1.2rem;
    transition: var(--transition-fast);
    border: 1px solid var(--border-glass);
}

.social-icon:hover {
    background: var(--gradient-bg);
    transform: translateY(-3px);
    color: white;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.input-group input,
.input-group textarea {
    width: 100%;
    padding: 1rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border-glass);
    border-radius: 8px;
    color: var(--text-main);
    font-family: var(--font-sans);
    font-size: 1rem;
    transition: var(--transition-fast);
}

.input-group input:focus,
.input-group textarea:focus {
    outline: none;
    border-color: var(--accent-1);
    box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.2);
}

.submit-btn {
    width: 100%;
    justify-content: center;
    padding: 1rem;
}

/* Footer */
footer {
    text-align: center;
    padding: 2rem;
    color: var(--text-muted);
    border-top: 1px solid var(--border-glass);
    background: var(--bg-secondary);
}

/* Animations */
@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-20px);
    }
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes scroll {
    0% {
        top: 6px;
        opacity: 1;
    }

    100% {
        top: 20px;
        opacity: 0;
    }
}

@keyframes growWidth {
    from {
        width: 0;
    }
}

.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.appear {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive */
@media (max-width: 992px) {

    .hero-content,
    .about-content,
    .contact-card {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .hero {
        text-align: center;
        padding-top: 6rem;
    }

    .hero-actions {
        justify-content: center;
    }

    .hero-text h1 {
        font-size: 3rem;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        /* simple mobile menu hidden for now */
    }

    .section {
        padding: 4rem 1.5rem;
    }

    .contact-card {
        padding: 1.5rem;
    }
}