/* ==========================================================================
   Saiqa Developer Portfolio — Main Stylesheet
   Deep Navy + Cyan Mint Theme
   ========================================================================== */

/* ---------- CSS Custom Properties ---------- */
:root {
    --bg:          hsl(220, 50%, 6%);
    --bg-card:     hsl(220, 45%, 9%);
    --fg:          hsl(0, 0%, 100%);
    --fg-muted:    hsl(220, 15%, 75%);
    --primary:     hsl(174, 72%, 56%);
    --primary-glow:hsl(180, 85%, 65%);
    --secondary:   hsl(200, 80%, 50%);
    --border:      hsl(220, 35%, 16%);
    --input-bg:    hsl(220, 35%, 14%);
    --muted-bg:    hsl(220, 35%, 14%);
    --radius:      1rem;
    --font-body:   'Inter', sans-serif;
    --font-display:'Space Grotesk', sans-serif;
    --font-mono:   'JetBrains Mono', monospace;
    --gradient-mint: linear-gradient(135deg, var(--primary), var(--primary-glow));
    --shadow-mint: 0 10px 40px -10px hsla(174, 72%, 56%, 0.55);
    --shadow-card: 0 20px 60px -20px hsla(0, 0%, 0%, 0.7);
    --transition:  cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- Reset & Base ---------- */
html body.saiqa-portfolio-theme *,
html body.saiqa-portfolio-theme *::before,
html body.saiqa-portfolio-theme *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body.saiqa-portfolio-theme {
    font-family: var(--font-body);
    color: var(--fg);
    background: radial-gradient(ellipse at top left, hsla(174,72%,50%,0.12), transparent 55%),
                radial-gradient(ellipse at bottom right, hsla(200,80%,50%,0.18), transparent 60%),
                var(--bg);
    background-attachment: fixed;
    -webkit-font-smoothing: antialiased;
    line-height: 1.6;
}
.saiqa-page-shell {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    color: var(--fg);
    background: radial-gradient(ellipse at top left, hsla(174,72%,50%,0.12), transparent 55%),
                radial-gradient(ellipse at bottom right, hsla(200,80%,50%,0.18), transparent 60%),
                var(--bg);
}
.saiqa-page-shell *, .saiqa-page-shell *::before, .saiqa-page-shell *::after { margin: 0; padding: 0; }
.saiqa-page-shell img { max-width: 100%; height: auto; display: block; }
.saiqa-page-shell a { color: inherit; text-decoration: none; }
body.saiqa-portfolio-theme ::selection { background: hsla(174,72%,56%,0.3); color: var(--primary-glow); }
body.saiqa-portfolio-theme .ekit-template-content-header,
body.saiqa-portfolio-theme .ekit-template-content-footer,
body.saiqa-portfolio-theme .hfe-site-header,
body.saiqa-portfolio-theme .hfe-site-footer,
body.saiqa-portfolio-theme .elementor-location-header,
body.saiqa-portfolio-theme .elementor-location-footer {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
}

/* ---------- Layout ---------- */
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }
.section-padding { padding: 8rem 0; position: relative; }

/* ---------- Typography ---------- */
h1, h2, h3, h4, h5 { font-family: var(--font-display); letter-spacing: -0.02em; line-height: 1.1; }
.section-label { font-family: var(--font-mono); font-size: 0.875rem; color: var(--primary); margin-bottom: 1rem; }
.section-heading { font-size: clamp(2rem, 5vw, 3.75rem); font-weight: 700; margin-bottom: 1.5rem; }
.section-text { font-size: 1.125rem; color: var(--fg-muted); line-height: 1.7; margin-bottom: 1.5rem; }
.text-gradient-mint {
    background: var(--gradient-mint);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* ---------- Glass Card ---------- */
.glass-card {
    background: hsla(210, 45%, 9%, 0.6);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
    transition: border-color 0.3s;
}
.glass-card:hover { border-color: hsla(174, 72%, 56%, 0.4); }

/* ---------- Buttons ---------- */
.btn-primary {
    display: inline-flex; align-items: center; gap: 0.5rem;
    padding: 0.875rem 1.75rem; border-radius: 9999px;
    background: var(--gradient-mint); color: var(--bg);
    font-weight: 600; font-size: 0.9375rem;
    transition: box-shadow 0.3s;
    cursor: pointer; border: none;
}
.btn-primary:hover { box-shadow: var(--shadow-mint); }
.btn-outline {
    display: inline-flex; align-items: center; gap: 0.5rem;
    padding: 0.875rem 1.75rem; border-radius: 9999px;
    border: 1px solid var(--border); color: var(--fg);
    font-weight: 600; font-size: 0.9375rem;
    transition: border-color 0.3s; cursor: pointer;
    background: transparent;
}
.btn-outline:hover { border-color: var(--primary); }
.btn-cv { border-color: hsla(174,72%,56%,0.4); background: hsla(174,72%,56%,0.05); }
.btn-sm { padding: 0.625rem 1rem; font-size: 0.875rem; }

/* ---------- Social Icons ---------- */
.social-icons { display: flex; gap: 0.75rem; }
.social-icon {
    width: 2.75rem; height: 2.75rem; border-radius: 50%;
    background: hsla(210,45%,9%,0.6); backdrop-filter: blur(20px);
    border: 1px solid var(--border);
    display: flex; align-items: center; justify-content: center;
    color: #fff; transition: color 0.3s, border-color 0.3s;
}
.social-icon:hover { color: var(--primary); border-color: var(--primary); }

/* ---------- Tags ---------- */
.tags-wrap { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.tag {
    padding: 0.5rem 1rem; border-radius: 9999px; font-size: 0.8125rem;
    border: 1px solid var(--border); color: var(--fg-muted);
    transition: border-color 0.3s, color 0.3s;
}
.tag:hover { border-color: var(--primary); color: var(--primary); }
.tag--accent {
    background: hsla(174,72%,56%,0.1); border-color: hsla(174,72%,56%,0.3);
    color: var(--primary); font-family: var(--font-mono);
}
.tag--muted {
    background: var(--muted-bg); border: none; font-family: var(--font-mono);
    font-size: 0.75rem;
}
.icon-primary { color: var(--primary); }

/* ===== NAVBAR ===== */
.site-header {
    position: fixed; top: 0; left: 0; right: 0; z-index: 100;
    padding: 1.5rem 0; transition: all 0.5s;
    background: transparent;
}
.site-header.scrolled {
    padding: 0.75rem 0;
    background: hsla(210,45%,9%,0.6); backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
}
.nav-container { display: flex; align-items: center; justify-content: space-between; }
.site-logo { font-family: var(--font-display); font-size: 1.25rem; font-weight: 700; }
.nav-links { list-style: none; display: flex; gap: 2rem; }
.nav-links a {
    font-size: 0.875rem; font-weight: 500; color: var(--fg-muted);
    transition: color 0.3s; position: relative;
}
.nav-links a::after {
    content: ''; position: absolute; bottom: -4px; left: 0;
    width: 0; height: 1px; background: var(--primary); transition: width 0.3s;
}
.nav-links a:hover { color: var(--primary); }
.nav-links a:hover::after { width: 100%; }
.nav-actions { display: flex; gap: 0.75rem; }
.mobile-toggle { display: none; background: none; cursor: pointer; }
.mobile-toggle span {
    display: block; width: 24px; height: 2px; background: var(--fg);
    margin: 5px 0; transition: 0.3s;
}

/* ===== HERO ===== */
.hero-section {
    position: relative; min-height: 100vh; display: flex; align-items: center;
    padding-top: 8rem; padding-bottom: 5rem; overflow: hidden;
}
.grid-pattern {
    position: absolute; inset: 0; opacity: 0.4;
    background-image: linear-gradient(hsla(220,35%,16%,0.4) 1px, transparent 1px),
                       linear-gradient(90deg, hsla(220,35%,16%,0.4) 1px, transparent 1px);
    background-size: 50px 50px;
    mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
    -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
    pointer-events: none;
}
.orb {
    position: absolute; border-radius: 50%; filter: blur(60px);
    animation: float 6s ease-in-out infinite;
    pointer-events: none;
}
.orb--left { top: 33%; left: -5rem; width: 18rem; height: 18rem; background: hsla(174,72%,56%,0.2); }
.orb--right { bottom: 25%; right: 0; width: 24rem; height: 24rem; background: hsla(200,80%,50%,0.2); animation-delay: 2s; }
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 2fr 1fr; gap: 3rem; align-items: center; }
.hero-badge {
    display: inline-flex; align-items: center; gap: 0.5rem;
    padding: 0.375rem 1rem; border-radius: 9999px;
    background: hsla(210,45%,9%,0.6); backdrop-filter: blur(20px);
    border: 1px solid var(--border); margin-bottom: 2rem;
    font-size: 0.75rem; font-family: var(--font-mono); color: var(--fg-muted);
}
.pulse-dot {
    width: 8px; height: 8px; border-radius: 50%; background: var(--primary);
    animation: pulse-glow 3s ease-in-out infinite;
}
.hero-heading { font-size: clamp(2.5rem, 6vw, 5rem); font-weight: 700; line-height: 0.95; letter-spacing: -0.03em; margin-bottom: 1.5rem; }
.hero-description { font-size: 1.125rem; color: var(--fg-muted); max-width: 40rem; margin-bottom: 2.5rem; line-height: 1.7; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; }
.hero-stats { display: flex; flex-direction: column; gap: 1rem; }
.stat-label { font-family: var(--font-mono); font-size: 0.75rem; color: var(--primary); margin-bottom: 0.5rem; }
.stat-value { font-family: var(--font-display); font-size: 2.5rem; font-weight: 700; }
.stat-value--sm { font-size: 1.5rem; }
.stat-unit { font-size: 1rem; color: var(--fg-muted); font-family: var(--font-body); }
.stat-desc { font-size: 0.875rem; color: var(--fg-muted); margin-top: 0.25rem; }

/* ===== ABOUT ===== */
.about-grid { display: grid; grid-template-columns: 5fr 7fr; gap: 4rem; align-items: center; }
.about-image-wrap { position: relative; }
.about-image-glow {
    position: absolute; inset: 0; background: var(--gradient-mint);
    border-radius: 1.5rem; filter: blur(40px); opacity: 0.3;
    animation: pulse-glow 3s ease-in-out infinite;
}
.about-image-frame { position: relative; border-radius: 1.5rem; overflow: hidden; border: 1px solid var(--border); }
.about-image-frame img { width: 100%; height: auto; object-fit: cover; }
.about-image-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(to top, var(--bg), transparent, transparent);
}
.location-badge {
    position: absolute; bottom: -1.5rem; right: -1.5rem;
    display: flex; flex-direction: column; gap: 0.25rem;
}
.location-text { display: flex; align-items: center; gap: 0.5rem; font-family: var(--font-display); font-weight: 600; }
.info-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 2.5rem; }
.info-card { display: flex; flex-direction: column; gap: 0.25rem; }
.info-card h3 { font-family: var(--font-display); font-weight: 600; }
.info-card p { font-size: 0.875rem; color: var(--fg-muted); }

/* ===== SKILLS ===== */
.section-header { max-width: 40rem; margin-bottom: 4rem; }
.skills-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
.skills-card { padding: 2rem; border-radius: 1.5rem; }
.skills-card-title { font-family: var(--font-display); font-size: 1.25rem; font-weight: 600; margin-bottom: 2rem; }
.skills-list { display: flex; flex-direction: column; gap: 1.5rem; }
.skill-header { display: flex; justify-content: space-between; margin-bottom: 0.5rem; }
.skill-name { font-weight: 500; }
.skill-level { font-family: var(--font-mono); font-size: 0.875rem; color: var(--primary); }
.skill-bar { height: 6px; border-radius: 9999px; background: var(--muted-bg); overflow: hidden; }
.skill-bar-fill { height: 100%; border-radius: 9999px; background: var(--gradient-mint); transition: width 1.2s ease-out; }
.exploring-section { margin-top: 2.5rem; padding-top: 2rem; border-top: 1px solid var(--border); }
.exploring-section h4 { font-family: var(--font-display); font-weight: 600; margin-bottom: 1rem; }

/* ===== PROJECTS ===== */
.section-header--split { display: flex; justify-content: space-between; align-items: flex-end; gap: 2rem; }
.section-header--split .section-text { max-width: 26rem; margin-bottom: 0; }
.projects-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.project-card { border-radius: 1.5rem; overflow: hidden; padding: 0; transition: border-color 0.5s; }
.project-image { position: relative; height: 14rem; overflow: hidden; }
.project-image img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform 0.7s; }
.project-card:hover .project-image img { transform: scale(1.05); }
.project-image-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(to top, var(--bg-card), hsla(220,45%,9%,0.4), transparent);
}
.project-body { padding: 1.5rem 2rem 2rem; }
.project-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; margin-bottom: 0.75rem; }
.project-title { font-family: var(--font-display); font-size: 1.25rem; font-weight: 700; transition: color 0.3s; }
.project-card:hover .project-title { color: var(--primary); }
.project-links { display: flex; gap: 0.5rem; flex-shrink: 0; }
.project-link {
    width: 2.25rem; height: 2.25rem; border-radius: 50%;
    border: 1px solid var(--border); display: flex; align-items: center; justify-content: center;
    color: var(--fg-muted); transition: color 0.3s, border-color 0.3s;
}
.project-link:hover { color: var(--primary); border-color: var(--primary); }
.project-link--live { background: var(--gradient-mint); color: var(--bg); border: none; }
.project-link--live:hover { box-shadow: var(--shadow-mint); color: var(--bg); }
.project-desc { font-size: 0.875rem; color: var(--fg-muted); line-height: 1.6; margin-bottom: 1rem; }

/* ===== CONTACT ===== */
.contact-grid { display: grid; grid-template-columns: 5fr 7fr; gap: 3rem; }
.contact-cards { display: flex; flex-direction: column; gap: 1rem; margin-top: 2.5rem; }
.contact-card {
    display: flex; align-items: center; gap: 1rem;
    text-decoration: none; transition: border-color 0.3s;
}
.contact-card-icon {
    width: 3rem; height: 3rem; border-radius: 0.75rem;
    background: hsla(174,72%,56%,0.1); display: flex; align-items: center; justify-content: center;
    color: var(--primary); transition: transform 0.3s; flex-shrink: 0;
}
.contact-card:hover .contact-card-icon { transform: scale(1.1); }
.contact-card-label { display: block; font-family: var(--font-mono); font-size: 0.75rem; color: var(--fg-muted); }
.contact-card-value { display: block; font-weight: 500; }

/* Contact Form */
.contact-form { border-radius: 1.5rem; padding: 2rem 2.5rem; display: flex; flex-direction: column; gap: 1.25rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.form-group label { display: block; font-size: 0.875rem; font-weight: 500; margin-bottom: 0.5rem; font-family: var(--font-mono); color: var(--fg-muted); }
.form-group input,
.form-group textarea {
    width: 100%; padding: 0.75rem 1rem; border-radius: 0.75rem;
    background: var(--input-bg); border: 1px solid var(--border); color: var(--fg);
    font-family: var(--font-body); font-size: 0.9375rem;
    transition: border-color 0.3s, box-shadow 0.3s; outline: none;
}
.form-group input:focus,
.form-group textarea:focus { border-color: var(--primary); box-shadow: 0 0 0 3px hsla(174,72%,56%,0.2); }
.form-group textarea { resize: none; }

/* ===== FOOTER ===== */
.site-footer { border-top: 1px solid var(--border); padding: 2.5rem 0; margin-top: 2.5rem; }
.footer-container { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1rem; }
.footer-copy { font-size: 0.875rem; color: var(--fg-muted); font-family: var(--font-mono); }

/* ===== ANIMATIONS ===== */
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
@keyframes pulse-glow {
    0%, 100% { box-shadow: 0 0 20px hsla(174,72%,56%,0.4); }
    50% { box-shadow: 0 0 50px hsla(174,72%,56%,0.7); }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .hero-grid { grid-template-columns: 1fr; }
    .hero-stats { display: none; }
    .about-grid { grid-template-columns: 1fr; }
    .about-image-wrap { max-width: 400px; margin: 0 auto; }
    .skills-grid { grid-template-columns: 1fr; }
    .projects-grid { grid-template-columns: 1fr 1fr; }
    .contact-grid { grid-template-columns: 1fr; }
    .section-header--split { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 768px) {
    .nav-links, .nav-actions { display: none; }
    .mobile-toggle { display: block; }
    .hero-heading { font-size: 2.5rem; }
    .hero-actions { flex-direction: column; align-items: flex-start; }
    .projects-grid { grid-template-columns: 1fr; }
    .form-row { grid-template-columns: 1fr; }
    .info-cards { grid-template-columns: 1fr; }
    .location-badge { display: none; }
    .footer-container { flex-direction: column; text-align: center; }
}

/* Mobile Menu (toggled via JS) */
.mobile-menu {
    display: none; position: fixed; top: 4rem; left: 1rem; right: 1rem;
    background: hsla(210,45%,9%,0.95); backdrop-filter: blur(20px);
    border: 1px solid var(--border); border-radius: 1rem;
    padding: 1.5rem; z-index: 99; flex-direction: column; gap: 1rem;
}
.mobile-menu.active { display: flex; }
.mobile-menu a { color: var(--fg); font-size: 1rem; transition: color 0.3s; }
.mobile-menu a:hover { color: var(--primary); }

/* WordPress content */
.entry-content { font-size: 1.125rem; color: var(--fg-muted); line-height: 1.8; }
.entry-content h2 { margin-top: 2rem; margin-bottom: 1rem; }
.entry-content p { margin-bottom: 1rem; }
.entry-content a { color: var(--primary); text-decoration: underline; }
