/* 
=================================================
PREMIUM PORTFOLIO - USMAN ALAM
=================================================
*/

:root {
    --bg-main: #0B0F19; /* Deep Space Blue */
    --text-primary: #f8fafc;
    --text-muted: #94a3b8;
    
    --primary-color: #3b82f6; /* Modern Blue */
    --secondary-color: #8b5cf6; /* Modern Purple */
    
    --font-heading: 'Poppins', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
}

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

html, body {
    width: 100%;
    overflow-x: hidden;
    background-color: var(--bg-main);
    color: var(--text-primary);
    font-family: var(--font-body);
    scroll-behavior: smooth;
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.3s;
}

ul { list-style: none; }

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 5%;
    position: relative;
    z-index: 2;
}

.container-large { max-width: 1600px; }

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

.section-subtitle {
    color: var(--text-muted);
    font-size: 1.1rem;
    max-width: 600px;
    margin: -2rem auto 3rem auto;
}

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

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 1.8rem;
    border-radius: 50px;
    font-family: var(--font-heading);
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: 0.3s ease;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: #fff;
    box-shadow: 0 10px 20px rgba(59, 130, 246, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 25px rgba(59, 130, 246, 0.5);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--glass-border);
    color: #fff;
    backdrop-filter: blur(10px);
}

.btn-outline:hover {
    border-color: var(--primary-color);
    background: rgba(59, 130, 246, 0.1);
}

/* ================= 3D BACKGROUND ================= */
#canvas-3d {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 0;
    pointer-events: none;
}

/* ================= FLOATING HEADER (GLASS PILL) ================= */
.header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 100;
    padding: 1.5rem 0;
    transition: 0.4s;
    display: flex;
    justify-content: center;
}

.glass-pill {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(11, 15, 25, 0.6);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 0.8rem 2rem;
    border-radius: 50px;
    width: 90%;
    max-width: 1000px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transition: 0.4s;
}

.header.scrolled {
    padding: 1rem 0;
}

.header.scrolled .glass-pill {
    background: rgba(11, 15, 25, 0.9);
    border-color: rgba(255, 255, 255, 0.15);
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
}

.logo span {
    font-weight: 300;
    color: var(--primary-color);
}

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

.nav-link {
    font-size: 0.95rem;
    font-weight: 500;
    letter-spacing: 0.5px;
    position: relative;
    padding: 0.5rem 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0;
    width: 0%; height: 2px;
    background: var(--primary-color);
    transition: 0.3s;
}

.nav-link:hover::after { width: 100%; }

.btn-contact {
    border: 1px solid var(--primary-color);
    padding: 0.5rem 1.2rem;
    border-radius: 50px;
    color: var(--primary-color);
}
.btn-contact::after { display: none; }
.btn-contact:hover {
    background: var(--primary-color);
    color: #fff;
}

.hamburger {
    display: none;
    font-size: 1.8rem;
    cursor: pointer;
    z-index: 101;
    color: #fff;
    transition: 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.hamburger:hover {
    color: var(--primary-color);
    transform: scale(1.1);
}

/* ================= 2-COLUMN HERO ================= */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: 6rem;
}

.hero-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-text {
    max-width: 600px;
}

.greeting {
    font-size: 1.1rem;
    color: var(--primary-color);
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.main-title {
    font-family: var(--font-heading);
    font-size: 4rem;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 1rem;
}

.typewriter-box {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 2rem;
    color: #fff;
    min-height: 45px;
}

.dynamic-text {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.cursor {
    animation: flash 1s infinite;
    color: var(--primary-color);
}

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

.hero-desc {
    font-size: 1.1rem;
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 3rem;
}

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

/* ================= HERO AVATAR ANIMATION ================= */
.hero-image-wrapper {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.image-circle-container {
    position: relative;
    width: 350px;
    height: 350px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2;
}

.profile-img {
    width: 90%;
    height: 90%;
    border-radius: 50%;
    object-fit: cover;
    z-index: 3;
    border: 4px solid var(--bg-main);
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
    position: relative;
}

.glow-ring {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 2px solid var(--primary-color);
    animation: ripple 3s infinite linear;
    z-index: 1;
}

.glow-ring.delay-1 {
    animation-delay: 1.5s;
    border-color: var(--secondary-color);
}

@keyframes ripple {
    0% { transform: scale(0.9); opacity: 1; }
    100% { transform: scale(1.3); opacity: 0; }
}

/* Floating Badges outside Avatar */
.floating-badge {
    position: absolute;
    width: 50px;
    height: 50px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(10px);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    z-index: 4;
    animation: float 4s ease-in-out infinite;
}

.badge-1 { top: 10%; left: 0%; color: #54c5f8; animation-delay: 0s; } /* Flutter */
.badge-2 { bottom: 15%; right: 0%; color: #e34f26; animation-delay: 1s; } /* HTML5 */
.badge-3 { top: 70%; left: -5%; color: #3b82f6; animation-delay: 2s; } /* Code */

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

/* ================= EXPERTISE / SKILLS SECTION ================= */
.expertise-section {
    padding: 6rem 0;
}

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

.expertise-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(15px);
    padding: 2.5rem 2rem;
    border-radius: 24px;
    transition: transform 0.3s;
}

.expertise-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.08);
}

/* ================= EXPERIENCE TIMELINE ================= */
.experience-section {
    padding: 6rem 0;
}

.timeline {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem 0;
}

/* Middle Line */
.timeline::after {
    content: '';
    position: absolute;
    width: 2px;
    background: var(--glass-border);
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -1px;
}

.timeline-item {
    padding: 10px 40px;
    position: relative;
    background-color: inherit;
    width: 50%;
}

.timeline-item.left {
    left: 0;
}

.timeline-item.right {
    left: 50%;
}

/* timeline circles */
.timeline-dot {
    position: absolute;
    width: 20px;
    height: 20px;
    right: -10px;
    background-color: var(--primary-color);
    border: 4px solid var(--bg-main);
    top: 15px;
    border-radius: 50%;
    z-index: 1;
    box-shadow: 0 0 10px var(--primary-color);
}

.timeline-item.right .timeline-dot {
    left: -10px;
}

/* actual content container */
.timeline-content {
    padding: 2rem;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(10px);
    position: relative;
    border-radius: 16px;
    transition: 0.3s;
}

.timeline-content:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-3px);
}

.timeline-date {
    display: inline-block;
    padding: 0.3rem 0.8rem;
    background: rgba(59, 130, 246, 0.2);
    color: var(--primary-color);
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.timeline-content h3 {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    color: #fff;
    margin-bottom: 1rem;
}

.timeline-content p {
    color: var(--text-muted);
    line-height: 1.6;
    font-size: 0.95rem;
}

.card-title {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    margin-bottom: 2rem;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.card-title i {
    color: var(--primary-color);
}

.tech-icons-row {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

/* Tech Bubbles (Languages/Tools) */
.tech-bubble {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1rem;
    border-radius: 50px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: 0.3s ease;
    cursor: default;
}

.tech-bubble i {
    font-size: 1.2rem;
    color: var(--accent);
}

.tech-bubble span {
    font-size: 0.9rem;
    font-weight: 500;
}

.tech-bubble:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: scale(1.05);
    border-color: var(--accent);
    box-shadow: 0 0 15px rgba(255,255,255,0.1);
}

/* ================= PROJECTS SWIPER ================= */
.projects-section {
    padding: 8rem 0;
    overflow: hidden;
}

.swiper {
    width: 100%;
    padding: 50px 0;
}

.card-slide {
    background: #1e1e24; /* Fallback */
    width: 500px;
    height: 600px;
    border-radius: 24px;
    overflow: hidden;
    position: relative;
    border: 1px solid rgba(255,255,255,0.1);
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
    display: flex;
    flex-direction: column;
}

.slide-image {
    width: 100%;
    height: 60%;
    background-size: cover;
    background-position: center;
    background-color: #222;
    position: relative;
}

.slide-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.8;
}

.slide-content {
    background: var(--bg-main);
    padding: 2rem;
    height: 40%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

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

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

.slide-links {
    display: flex;
    gap: 1rem;
    margin-top: auto;
}

.slider-btn {
    padding: 0.6rem 1.2rem;
    border-radius: 8px;
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--glass-border);
    font-size: 0.9rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #fff;
    transition: 0.3s;
}

.slider-btn:hover {
    background: var(--text-primary);
    color: var(--bg-main);
}

.swiper-pagination-bullet {
    background: #fff;
    opacity: 0.4;
}
.swiper-pagination-bullet-active {
    background: var(--primary-color);
    opacity: 1;
}

/* ================= CONTACT ================= */
.contact-section { padding: 6rem 0 8rem 0; }

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(20px);
    padding: 4rem;
    border-radius: 30px;
}

.contact-info p {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 3rem;
    line-height: 1.6;
}

.info-blocks { margin-bottom: 3rem; }

.info-block {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.info-block i {
    width: 60px; height: 60px;
    background: rgba(59, 130, 246, 0.1);
    color: var(--primary-color);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.5rem;
}

.info-block span {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 500;
}

.socials a {
    display: inline-flex;
    align-items: center; justify-content: center;
    width: 45px; height: 45px;
    border: 1px solid var(--glass-border);
    border-radius: 50%;
    margin-right: 1rem;
    font-size: 1.2rem;
}

.socials a:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

.contact-form .form-row { margin-bottom: 1.5rem; }

.contact-form input,
.contact-form textarea {
    width: 100%;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--glass-border);
    padding: 1.2rem;
    border-radius: 12px;
    color: #fff;
    font-family: var(--font-body);
    font-size: 1rem;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.btn-whatsapp {
    width: 100%;
    background: #25D366;
    color: #fff;
    padding: 1.2rem;
    border-radius: 12px;
    font-size: 1.1rem;
    justify-content: center;
}

.btn-whatsapp:hover {
    background: #1ebd5a;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(37, 211, 102, 0.3);
}

/* ================= FOOTER ================= */
.bottom-footer {
    text-align: center;
    padding: 2rem 0;
    border-top: 1px solid var(--glass-border);
    color: var(--text-muted);
    position: relative;
    z-index: 2;
}

/* ================= RESPONSIVE ================= */
@media screen and (max-width: 1200px) {
    .main-title { font-size: 3rem; }
    .image-circle-container { width: 300px; height: 300px; }
    .card-slide { width: 400px; height: 500px; }
}

@media screen and (max-width: 992px) {
    .glass-pill { width: 95%; padding: 0.8rem 1.5rem; }
    .hero-split { 
        display: flex; 
        flex-direction: column-reverse; 
        text-align: center; 
        gap: 3rem;
        padding-top: 2rem;
    }
    .hero-text { margin: 0 auto; width: 100%; }
    .main-title { font-size: 2.8rem; }
    .hero-buttons { justify-content: center; flex-wrap: wrap; }
    .expertise-grid { grid-template-columns: repeat(2, 1fr); }
    .contact-wrapper { grid-template-columns: 1fr; padding: 2rem; }
}

@media screen and (max-width: 768px) {
    .hamburger { display: block; }
    
    .nav-menu {
        position: fixed; top: 0; right: -100%;
        width: 100%; height: 100vh;
        background: rgba(11, 15, 25, 0.95);
        backdrop-filter: blur(25px);
        display: flex; justify-content: center; align-items: center;
        transition: 0.6s cubic-bezier(0.85, 0, 0.15, 1);
        z-index: 100;
    }
    
    .nav-menu.active { right: 0; }
    .nav-list { 
        flex-direction: column; 
        gap: 2.5rem; 
        font-size: 1.8rem; 
        text-align: center;
        font-weight: 700;
    }
    
    .nav-link {
        color: #fff;
        padding: 1rem 2rem;
    }
    
    .main-title { font-size: 2.2rem; }
    .typewriter-box { font-size: 1.3rem; min-height: 40px; }
    .hero-desc { font-size: 1rem; }
    .image-circle-container { width: 220px; height: 220px; }
    .floating-badge { width: 40px; height: 40px; font-size: 1.2rem; }
    
    .timeline::after {
        left: 20px;
    }
    
    .timeline-item {
        width: 100%;
        padding-left: 50px;
        padding-right: 0px;
    }
    
    .timeline-item.left {
        left: 0;
    }
    
    .timeline-item.right {
        left: 0;
    }
    
    .timeline-item.left .timeline-dot, 
    .timeline-item.right .timeline-dot {
        left: 10px;
    }

    .expertise-grid { grid-template-columns: 1fr; }
    .tech-icons-row { justify-content: center; }
    .card-slide { 
        width: 85vw; 
        height: 480px; 
    }
    .slide-content h3 { font-size: 1.4rem; }
    .slider-btn { padding: 0.5rem 1rem; font-size: 0.8rem; }

    /* Contact Form Mobile Refinement */
    .contact-wrapper { padding: 1.5rem; gap: 2rem; border-radius: 20px; }
    .contact-info .section-title { font-size: 1.8rem; margin-bottom: 1rem; text-align: center; }
    .contact-info p { text-align: center; margin-bottom: 2rem; font-size: 0.95rem; }
    .info-blocks { margin-bottom: 2rem; }
    .info-block { gap: 1rem; }
    .info-block i { width: 45px; height: 45px; font-size: 1.2rem; }
    .info-block span { font-size: 1rem; word-break: break-all; }
    .socials { display: flex; justify-content: center; }
    .contact-form input, .contact-form textarea { padding: 1rem; font-size: 0.9rem; }
    .btn-whatsapp { padding: 1rem; font-size: 1rem; }
}
