/* 
 * Ayan Hussain - Personal Portfolio
 * Soft Pastel & Glassmorphism Theme
 */

:root {
    /* Color Palette */
    --bg-color: #f8f9fc;
    --text-primary: #2d3436;
    --text-secondary: #636e72;
    --accent-primary: #6c5ce7;
    /* Soft Purple */
    --accent-secondary: #00cec9;
    /* Soft Teal */
    --pastel-pink: #fab1a0;
    --pastel-blue: #74b9ff;
    --pastel-mint: #55efc4;

    /* Glassmorphism */
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(255, 255, 255, 0.5);
    --glass-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.07);
    --blur-amount: 10px;

    /* Typography */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Montserrat', sans-serif;
    /* Changed to Montserrat */

    /* Spacing */
    --container-width: 1100px;
    --spacing-section: 5rem;
}

/* Reset & Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-color);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    background-image:
        radial-gradient(circle at 10% 20%, rgba(250, 177, 160, 0.1) 0%, transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(116, 185, 255, 0.1) 0%, transparent 40%);
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

/* Utility Classes */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: var(--spacing-section) 0;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 3rem;
    text-align: center;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 500;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-primary), var(--pastel-blue));
    color: white;
    box-shadow: 0 4px 15px rgba(108, 92, 231, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(108, 92, 231, 0.4);
}

.btn-outline {
    border: 2px solid var(--accent-primary);
    color: var(--accent-primary);
    margin-left: 1rem;
}

.btn-outline:hover {
    background: var(--accent-primary);
    color: white;
}

/* Animations */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.delay-1 {
    transition-delay: 0.2s;
}

.delay-2 {
    transition-delay: 0.4s;
}

.delay-3 {
    transition-delay: 0.6s;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 1.5rem 0;
    transition: all 0.3s ease;
}

.navbar.scrolled {
    background: var(--glass-bg);
    backdrop-filter: blur(var(--blur-amount));
    -webkit-backdrop-filter: blur(var(--blur-amount));
    border-bottom: 1px solid var(--glass-border);
    padding: 1rem 0;
    box-shadow: var(--glass-shadow);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-primary);
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-links a {
    font-weight: 500;
    color: var(--text-secondary);
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--accent-primary);
}

.btn-nav {
    padding: 8px 20px;
    background: rgba(108, 92, 231, 0.1);
    color: var(--accent-primary) !important;
    border-radius: 20px;
}

.btn-nav:hover {
    background: var(--accent-primary);
    color: white !important;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--text-primary);
    margin: 5px 0;
    transition: 0.3s;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: 80px;
    /* Navbar height */
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: center;
}

.greeting {
    display: block;
    font-size: 1.2rem;
    color: var(--accent-primary);
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.hero-title {
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 1rem;
    background: linear-gradient(to right, var(--text-primary), var(--text-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-tagline {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.hero-visual {
    position: relative;
    height: 400px;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Abstract Blobs */
.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(40px);
    z-index: -1;
    opacity: 0.6;
    animation: float 6s ease-in-out infinite;
}

.blob-1 {
    width: 300px;
    height: 300px;
    background: var(--pastel-pink);
    top: 0;
    right: 0;
}

.blob-2 {
    width: 250px;
    height: 250px;
    background: var(--pastel-blue);
    bottom: 0;
    left: 50px;
    animation-delay: 3s;
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-20px);
    }

    100% {
        transform: translateY(0px);
    }
}

.glass-card {
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.05);
}

.hero-card {
    width: 280px;
    transform: rotate(-5deg);
    transition: transform 0.3s;
}

.hero-card:hover {
    transform: rotate(0deg) scale(1.05);
}

/* About Section */
.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-text p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    color: var(--text-secondary);
}

.skills-container {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.skill-tag {
    padding: 8px 20px;
    background: white;
    border-radius: 50px;
    font-size: 0.9rem;
    color: var(--text-secondary);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.02);
    transition: transform 0.2s;
}

.skill-tag:hover {
    transform: translateY(-3px);
    color: var(--accent-primary);
}

/* Portfolio Section */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.project-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s, box-shadow 0.3s;
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.project-image {
    height: 200px;
    width: 100%;
}

.placeholder-gradient-1 {
    background: linear-gradient(45deg, #ff9a9e 0%, #fad0c4 99%, #fad0c4 100%);
}

.placeholder-gradient-2 {
    background: linear-gradient(120deg, #a1c4fd 0%, #c2e9fb 100%);
}

.placeholder-gradient-3 {
    background: linear-gradient(120deg, #84fab0 0%, #8fd3f4 100%);
}

.project-info {
    padding: 1.5rem;
}

.project-info h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

.project-info p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.link-arrow {
    color: var(--accent-primary);
    font-weight: 500;
    font-size: 0.9rem;
}

/* Services Section */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.service-card {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid white;
    padding: 2rem;
    border-radius: 20px;
    text-align: center;
    transition: transform 0.3s;
}

.service-card:hover {
    transform: translateY(-5px);
    background: white;
}

.icon-box {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    display: inline-block;
    padding: 15px;
    background: rgba(108, 92, 231, 0.05);
    border-radius: 50%;
}

.service-card h3 {
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.service-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* Contact Section */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 4rem;
    background: white;
    border-radius: 30px;
    padding: 4rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.05);
}

.align-left {
    text-align: left;
    margin-bottom: 1.5rem;
}

.contact-info p {
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.contact-details li {
    margin-bottom: 1rem;
}

.contact-details a {
    font-size: 1.1rem;
    font-weight: 500;
}

.glass-form .form-group {
    margin-bottom: 1.5rem;
}

.glass-form label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-primary);
}

.glass-form input,
.glass-form textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #eee;
    border-radius: 10px;
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.3s;
    background: #fafafa;
}

.glass-form input:focus,
.glass-form textarea:focus {
    outline: none;
    border-color: var(--accent-primary);
    background: white;
}

.btn-block {
    width: 100%;
}

/* Footer */
.footer {
    padding: 2rem 0;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    margin-top: 4rem;
}

.footer-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.social-links {
    display: flex;
    gap: 1.5rem;
}

.social-links a {
    font-weight: 600;
    opacity: 0.7;
}

.social-links a:hover {
    opacity: 1;
    color: var(--accent-primary);
}

/* Responsive Design */
@media (max-width: 968px) {
    .hero-title {
        font-size: 3rem;
    }

    .contact-wrapper {
        grid-template-columns: 1fr;
        padding: 2rem;
    }
}

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
        z-index: 1001;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        height: 100vh;
        width: 70%;
        background: white;
        flex-direction: column;
        justify-content: center;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
        transition: right 0.3s ease;
    }

    .nav-links.active {
        right: 0;
    }

    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-visual {
        display: none;
    }

    /* Simplify for mobile */

    .about-content {
        grid-template-columns: 1fr;
    }

    .skills-container {
        justify-content: center;
    }
}