/*
Theme Name: Abdullah Sajjad Portfolio
Description: Modern portfolio WordPress theme for full-stack developers and solution architects. Features animated hero section, dynamic portfolio showcase, and professional dark theme design.
Author: Abdullah Sajjad
Version: 1.0
License: GPL v2 or later
Text Domain: abdullah-portfolio
Tags: portfolio, developer, dark-theme, animated, responsive, one-page
*/

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.6;
    color: #1a1a1a;
    background: #000;
    overflow-x: hidden;
}

.hero {
    min-height: 100vh;
    background: linear-gradient(135deg, #0f0f0f 0%, #1a1a1a 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 50% 50%, rgba(0, 255, 157, 0.1) 0%, transparent 70%);
    z-index: 1;
}

.code-rain {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
}

.code-line {
    position: absolute;
    font-family: 'Courier New', monospace;
    font-size: 14px;
    color: rgba(0, 255, 157, 0.3);
    white-space: nowrap;
    animation: codefall 8s linear infinite;
    opacity: 0;
}

.code-line:nth-child(odd) {
    animation-delay: -2s;
}

.code-line:nth-child(even) {
    animation-delay: -4s;
}

@keyframes codefall {
    0% {
        opacity: 0;
        transform: translateY(-100px);
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        opacity: 0;
        transform: translateY(100vh);
    }
}

.live-terminal {
    position: absolute;
    top: 20px;
    left: 20px;
    background: rgba(0, 0, 0, 0.8);
    border: 1px solid #00ff9d;
    border-radius: 8px;
    padding: 15px;
    font-family: 'Courier New', monospace;
    font-size: 12px;
    color: #00ff9d;
    min-width: 300px;
    z-index: 3;
    animation: terminalPulse 3s ease-in-out infinite;
}

.terminal-header {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    padding-bottom: 5px;
    border-bottom: 1px solid #333;
}

.terminal-dots {
    display: flex;
    gap: 5px;
    margin-right: 10px;
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.dot.red { background: #ff5f56; }
.dot.yellow { background: #ffbd2e; }
.dot.green { background: #27ca3f; }

.terminal-title {
    font-size: 10px;
    color: #666;
}

.terminal-line {
    margin: 3px 0;
    opacity: 0;
    animation: typewriter 0.8s ease-out forwards;
}

.terminal-line:nth-child(2) { animation-delay: 0.5s; }
.terminal-line:nth-child(3) { animation-delay: 1s; }
.terminal-line:nth-child(4) { animation-delay: 1.5s; }
.terminal-line:nth-child(5) { animation-delay: 2s; }
.terminal-line:nth-child(6) { animation-delay: 2.5s; }

.cursor {
    display: inline-block;
    background: #00ff9d;
    width: 8px;
    height: 14px;
    animation: blink 1s infinite;
}

@keyframes typewriter {
    to {
        opacity: 1;
    }
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

@keyframes terminalPulse {
    0%, 100% { box-shadow: 0 0 20px rgba(0, 255, 157, 0.2); }
    50% { box-shadow: 0 0 30px rgba(0, 255, 157, 0.4); }
}

.api-showcase {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(0, 0, 0, 0.8);
    border: 1px solid #00b8ff;
    border-radius: 8px;
    padding: 15px;
    font-family: 'Courier New', monospace;
    font-size: 11px;
    color: #00b8ff;
    min-width: 280px;
    z-index: 3;
    animation: apiPulse 4s ease-in-out infinite;
}

.api-header {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    padding-bottom: 5px;
    border-bottom: 1px solid #333;
}

.api-status {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #27ca3f;
    margin-right: 8px;
    animation: statusBlink 2s infinite;
}

.api-line {
    margin: 2px 0;
    opacity: 0;
    animation: apiTypewriter 0.6s ease-out forwards;
}

.api-line:nth-child(2) { animation-delay: 0.3s; }
.api-line:nth-child(3) { animation-delay: 0.6s; }
.api-line:nth-child(4) { animation-delay: 0.9s; }
.api-line:nth-child(5) { animation-delay: 1.2s; }
.api-line:nth-child(6) { animation-delay: 1.5s; }

.success { color: #27ca3f; }
.warning { color: #ffbd2e; }
.error { color: #ff5f56; }

@keyframes apiTypewriter {
    to {
        opacity: 1;
    }
}

@keyframes apiPulse {
    0%, 100% { box-shadow: 0 0 20px rgba(0, 184, 255, 0.2); }
    50% { box-shadow: 0 0 30px rgba(0, 184, 255, 0.4); }
}

@keyframes statusBlink {
    0%, 80% { opacity: 1; }
    81%, 100% { opacity: 0.3; }
}

.floating-stats {
    position: absolute;
    bottom: 20px;
    left: 20px;
    background: rgba(0, 0, 0, 0.8);
    border: 1px solid #fff;
    border-radius: 8px;
    padding: 15px;
    font-family: 'Inter', sans-serif;
    color: #fff;
    min-width: 200px;
    z-index: 3;
    animation: statsPulse 5s ease-in-out infinite;
}

.stat-item {
    display: flex;
    justify-content: space-between;
    margin: 5px 0;
    font-size: 12px;
}

.stat-label {
    color: #a0a0a0;
}

.stat-value {
    color: #00ff9d;
    font-weight: 600;
}

.stat-bar {
    height: 3px;
    background: #333;
    border-radius: 2px;
    margin: 3px 0;
    overflow: hidden;
}

.stat-progress {
    height: 100%;
    background: linear-gradient(45deg, #00ff9d, #00b8ff);
    border-radius: 2px;
    animation: progressFill 3s ease-out forwards;
}

@keyframes progressFill {
    0% { width: 0%; }
    100% { width: var(--progress); }
}

@keyframes statsPulse {
    0%, 100% { box-shadow: 0 0 20px rgba(255, 255, 255, 0.1); }
    50% { box-shadow: 0 0 30px rgba(255, 255, 255, 0.2); }
}

.hero-content {
    text-align: center;
    z-index: 4;
    max-width: 800px;
    padding: 2rem;
    position: relative;
}

.hero h1 {
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 900;
    background: linear-gradient(45deg, #00ff9d, #00b8ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
    line-height: 0.9;
    animation: fadeInUp 1s ease-out;
}

.hero-subtitle {
    font-size: 1.5rem;
    color: #a0a0a0;
    margin-bottom: 1rem;
    font-weight: 400;
    animation: fadeInUp 1s ease-out 0.2s both;
}

.hero-description {
    font-size: 1.1rem;
    color: #ccc;
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    animation: fadeInUp 1s ease-out 0.4s both;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 1s ease-out 0.6s both;
    z-index: 4;
    position: relative;
}

.cta-primary {
    background: linear-gradient(45deg, #00ff9d, #00b8ff);
    color: #000;
    padding: 1rem 2rem;
    border: none;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.cta-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 255, 157, 0.3);
}

.cta-secondary {
    background: transparent;
    color: #00ff9d;
    padding: 1rem 2rem;
    border: 2px solid #00ff9d;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.cta-secondary:hover {
    background: #00ff9d;
    color: #000;
    transform: translateY(-2px);
}

.stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-top: 4rem;
    flex-wrap: wrap;
    z-index: 4;
    position: relative;
}

.stat {
    text-align: center;
    animation: fadeInUp 1s ease-out 0.8s both;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 900;
    color: #00ff9d;
    display: block;
}

.stat-label {
    color: #a0a0a0;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

section {
    padding: 5rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    font-size: 3rem;
    font-weight: 900;
    text-align: center;
    margin-bottom: 3rem;
    color: #fff;
}

.section-subtitle {
    font-size: 1.2rem;
    text-align: center;
    color: #a0a0a0;
    margin-bottom: 4rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.case-studies {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.case-study {
    background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 100%);
    border-radius: 20px;
    padding: 2rem;
    border: 1px solid #333;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.case-study::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(45deg, #00ff9d, #00b8ff);
}

.case-study:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 255, 157, 0.1);
}

.case-study h3 {
    font-size: 1.5rem;
    color: #fff;
    margin-bottom: 1rem;
    font-weight: 700;
}

.case-study p {
    color: #ccc;
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.case-metrics {
    display: flex;
    gap: 1.5rem;
    margin-top: 1.5rem;
    flex-wrap: wrap;
}

.metric {
    background: rgba(0, 255, 157, 0.1);
    padding: 0.5rem 1rem;
    border-radius: 25px;
    font-size: 0.9rem;
    color: #00ff9d;
    font-weight: 600;
}

.tech-stack {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.tech-category {
    background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 100%);
    border-radius: 20px;
    padding: 2rem;
    border: 1px solid #333;
    text-align: center;
    transition: all 0.3s ease;
}

.tech-category:hover {
    transform: translateY(-5px);
    border-color: #00ff9d;
}

.tech-category h3 {
    font-size: 1.3rem;
    color: #fff;
    margin-bottom: 1rem;
    font-weight: 700;
}

.tech-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
}

.tech-item {
    background: rgba(0, 255, 157, 0.1);
    color: #00ff9d;
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.85rem;
    font-weight: 500;
}

.integrations {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 3rem;
}

.integration {
    background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 100%);
    border-radius: 15px;
    padding: 1.5rem;
    border: 1px solid #333;
    text-align: center;
    transition: all 0.3s ease;
}

.integration:hover {
    transform: translateY(-3px);
    border-color: #00ff9d;
}

.integration h4 {
    color: #fff;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.integration p {
    color: #a0a0a0;
    font-size: 0.9rem;
}

.testimonials {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.testimonial {
    background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 100%);
    border-radius: 20px;
    padding: 2rem;
    border: 1px solid #333;
    position: relative;
}

.testimonial::before {
    content: '"';
    position: absolute;
    top: -10px;
    left: 20px;
    font-size: 4rem;
    color: #00ff9d;
    font-weight: 900;
}

.testimonial-content {
    color: #ccc;
    font-style: italic;
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.testimonial-author {
    color: #fff;
    font-weight: 600;
}

.testimonial-role {
    color: #a0a0a0;
    font-size: 0.9rem;
}

.contact-section {
    background: linear-gradient(135deg, #0f0f0f 0%, #1a1a1a 100%);
    text-align: center;
    padding: 5rem 2rem;
    margin-top: 5rem;
}

.contact-form {
    max-width: 600px;
    margin: 0 auto;
    display: grid;
    gap: 1.5rem;
}

.form-group {
    display: grid;
    gap: 0.5rem;
}

.form-group label {
    color: #fff;
    font-weight: 600;
    text-align: left;
}

.form-group input,
.form-group textarea {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid #333;
    border-radius: 10px;
    padding: 1rem;
    color: #fff;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #00ff9d;
    box-shadow: 0 0 0 3px rgba(0, 255, 157, 0.1);
}

.floating-elements {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.floating-element {
    position: absolute;
    background: rgba(0, 255, 157, 0.1);
    border-radius: 50%;
    animation: float 6s ease-in-out infinite;
}

.floating-element:nth-child(1) {
    width: 80px;
    height: 80px;
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.floating-element:nth-child(2) {
    width: 120px;
    height: 120px;
    top: 60%;
    right: 10%;
    animation-delay: 2s;
}

.floating-element:nth-child(3) {
    width: 60px;
    height: 60px;
    bottom: 20%;
    left: 20%;
    animation-delay: 4s;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

.toptal-badge {
    display: inline-block;
    background: linear-gradient(135deg, #00ff9d, #00b8ff);
    color: #000;
    padding: 0.8rem 1.5rem;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 700;
    border: none;
    margin-bottom: 1rem;
    animation: fadeInUp 1s ease-out 0.3s both;
    box-shadow: 0 4px 15px rgba(0, 255, 157, 0.3);
    text-align: center;
}

/* WordPress specific styles */
.wp-block-group {
    margin: 0;
}

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

.has-text-align-left {
    text-align: left;
}

.has-text-align-right {
    text-align: right;
}

/* WordPress admin bar compatibility */
.admin-bar .hero {
    min-height: calc(100vh - 32px);
}

@media screen and (max-width: 782px) {
    .admin-bar .hero {
        min-height: calc(100vh - 46px);
    }
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 3rem;
    }
    
    .stats {
        gap: 2rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .case-studies,
    .tech-stack,
    .integrations,
    .testimonials {
        grid-template-columns: 1fr;
    }
    
    .toptal-badge {
        position: static;
        display: inline-block;
        margin-bottom: 1rem;
        font-size: 0.8rem;
        padding: 0.6rem 1.2rem;
    }

    .live-terminal,
    .api-showcase,
    .floating-stats {
        position: static;
        margin: 1rem auto;
        max-width: 350px;
        min-width: auto;
        transform: none;
    }

    .live-terminal {
        order: 1;
    }

    .api-showcase {
        order: 2;
    }

    .floating-stats {
        order: 3;
    }

    .code-rain {
        display: none;
    }
} 