/* ========================================
   Modern Portfolio - Clean Design
   Colors: Blue, Purple, Gold
   ======================================== */

/* CSS Variables */
:root {
    --background: #0f172a;
    --surface: #1e293b;
    --surface-highlight: #334155;
    
    --primary: #60a5fa;
    --primary-dark: #3b82f6;
    --primary-light: #93c5fd;
    
    --secondary: #f59e0b;
    --secondary-dark: #d97706;
    
    --accent: #8b5cf6;
    --accent-light: #a78bfa;
    
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    
    --border: #334155;
}

/* Reset */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Cairo', sans-serif;
    background: var(--background);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    height: auto;
}

.highlight {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ========================================
   Floating Navigation
   ======================================== */

.floating-nav {
    position: fixed;
    left: 1.5rem;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(10px);
    padding: 1rem 0.75rem;
    border-radius: 30px;
    border: 1px solid var(--border);
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.nav-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--border);
    transition: all 0.3s ease;
}

.nav-item:hover .nav-dot,
.nav-item.active .nav-dot {
    background: var(--primary);
    box-shadow: 0 0 15px var(--primary);
    transform: scale(1.2);
}

.nav-label {
    font-size: 0.75rem;
    color: var(--text-secondary);
    opacity: 1;
    transform: translateX(0);
    transition: all 0.3s ease;
    white-space: nowrap;
    position: static;
    margin-right: 0;
    background: transparent;
    padding: 0;
    border-radius: 0;
    pointer-events: auto;
}

.nav-item:hover .nav-label,
.nav-item.active .nav-label {
    color: var(--primary);
    font-weight: 600;
}

/* Mobile Navigation */
@media (max-width: 768px) {
    .floating-nav {
        left: 0;
        right: 0;
        top: auto;
        bottom: 0;
        transform: none;
        flex-direction: row;
        width: 100%;
        justify-content: center;
        gap: 2.5rem;
        border-radius: 0;
        padding: 1rem 1.5rem;
        border: none;
        border-top: 1px solid var(--border);
    }
    
    .nav-label {
        display: none;
    }
    
    .nav-dot {
        width: 10px;
        height: 10px;
    }
}

/* ========================================
   Section Base Styles
   ======================================== */

.section {
    min-height: 100vh;
    position: relative;
}

.section-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 5rem 2rem;
}

.section-number {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--primary);
    letter-spacing: 0.1em;
    margin-bottom: 0.5rem;
    display: block;
}

/* ========================================
   Hero Section
   ======================================== */

.hero-section {
    display: flex;
    min-height: 100vh;
    background: 
        radial-gradient(ellipse at 0% 50%, rgba(96, 165, 250, 0.1) 0%, transparent 50%),
        radial-gradient(ellipse at 100% 100%, rgba(139, 92, 246, 0.08) 0%, transparent 50%);
    padding-left: 4rem;
}

.hero-left {
    flex: 0 0 40%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.hero-right {
    flex: 1;
    display: flex;
    align-items: center;
    padding: 4rem 4rem 4rem 2rem;
}

.hero-image-container {
    position: relative;
    width: 260px;
    height: 320px;
}

.hero-image-border {
    position: absolute;
    inset: -8px;
    border: 2px solid var(--primary);
    border-radius: 180px 180px 30px 30px;
    opacity: 0.3;
}

.hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 160px 160px 24px 24px;
    filter: grayscale(20%);
    transition: filter 0.5s ease;
}

.hero-img:hover {
    filter: grayscale(0%);
}

.hero-status {
    position: absolute;
    bottom: -0.75rem;
    left: 50%;
    transform: translateX(-50%);
    background: var(--surface);
    border: 1px solid var(--border);
    padding: 0.5rem 1.25rem;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    color: var(--text-secondary);
    white-space: nowrap;
}

.status-dot {
    width: 8px;
    height: 8px;
    background: #22c55e;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.hero-content {
    max-width: 500px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    background: var(--surface);
    border: 1px solid var(--border);
    padding: 0.5rem 1rem 0.5rem 0.5rem;
    border-radius: 50px;
    margin-bottom: 1.5rem;
}

.badge-logo {
    width: 28px;
    height: 28px;
    border-radius: 50%;
}

.hero-badge span {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.hero-name {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 0.5rem;
}

.hero-tagline {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: var(--accent);
    margin-bottom: 1rem;
}

.hero-desc {
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.8;
    font-size: 0.95rem;
}

.hero-stats {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
    padding: 1.25rem;
    background: var(--surface);
    border-radius: 16px;
    border: 1px solid var(--border);
}

.stat {
    text-align: center;
    flex: 1;
}

.stat-number {
    display: block;
    font-size: clamp(1.25rem, 3vw, 1.75rem);
    font-weight: 700;
    color: var(--primary);
}

.stat-label {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.stat-divider {
    width: 1px;
    height: 40px;
    background: var(--border);
}

.hero-actions {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}

/* Buttons */
.btn-main {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 1.5rem;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: white;
    font-weight: 600;
    border-radius: 12px;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.btn-main svg {
    width: 18px;
    height: 18px;
    transition: transform 0.3s ease;
}

.btn-main:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(96, 165, 250, 0.3);
}

.btn-main:hover svg {
    transform: translateX(4px);
}

.btn-outline {
    display: inline-flex;
    align-items: center;
    padding: 0.875rem 1.5rem;
    background: transparent;
    color: var(--text-primary);
    font-weight: 600;
    border: 2px solid var(--border);
    border-radius: 12px;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.btn-outline:hover {
    border-color: var(--primary);
    color: var(--primary);
}

/* Scroll Hint */
.scroll-hint {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-muted);
    font-size: 0.75rem;
}

.scroll-arrow {
    width: 20px;
    height: 30px;
    border: 2px solid var(--border);
    border-radius: 10px;
    position: relative;
}

.scroll-arrow::after {
    content: '';
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 8px;
    background: var(--primary);
    border-radius: 4px;
    animation: scroll-bounce 2s infinite;
}

@keyframes scroll-bounce {
    0%, 100% { top: 6px; opacity: 1; }
    50% { top: 14px; opacity: 0.5; }
}

/* Hero Responsive */
@media (max-width: 968px) {
    .hero-section {
        flex-direction: column;
        padding-left: 0;
    }
    
    .hero-left {
        flex: 0 0 auto;
        padding: 5rem 2rem 2rem;
    }
    
    .hero-right {
        flex: 1;
        padding: 2rem;
        text-align: center;
    }
    
    .hero-content {
        max-width: 100%;
    }
    
    .hero-actions {
        justify-content: center;
    }
    
    .hero-stats {
        justify-content: center;
    }
    
    .hero-image-container {
        width: 200px;
        height: 250px;
    }
    
    .stat-divider {
        display: none;
    }
    
    .scroll-hint {
        display: none;
    }
}

@media (max-width: 480px) {
    .hero-left {
        padding-top: 4rem;
    }
    
    .hero-image-container {
        width: 160px;
        height: 200px;
    }
    
    .hero-stats {
        flex-wrap: wrap;
        gap: 1rem;
    }
    
    .stat {
        min-width: 80px;
    }
}

/* ========================================
   About Section - Bento Grid
   ======================================== */

.about-section {
    background: 
        radial-gradient(ellipse at 80% 20%, rgba(245, 158, 11, 0.05) 0%, transparent 40%);
}

.about-section .section-container {
    padding-left: 5rem;
}

.bento-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
}

.bento-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 1.5rem;
    transition: all 0.4s ease;
}

.bento-card:hover {
    border-color: var(--primary);
    transform: translateY(-4px);
}

.card-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--primary);
    margin-bottom: 0.75rem;
    display: block;
}

/* Main About Card */
.bento-main {
    grid-column: 1 / 3;
    grid-row: 1 / 3;
}

.bento-main h2 {
    font-size: clamp(1.5rem, 3vw, 2rem);
    margin-bottom: 1rem;
    line-height: 1.2;
}

.bento-main p {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.about-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tag {
    padding: 0.4rem 1rem;
    background: rgba(96, 165, 250, 0.1);
    color: var(--primary);
    border-radius: 50px;
    font-size: 0.8rem;
}

/* Vision Card */
.bento-vision {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: linear-gradient(135deg, rgba(96, 165, 250, 0.1), rgba(139, 92, 246, 0.1));
    min-height: 150px;
}

.vision-icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.bento-vision h3 {
    font-size: 1rem;
    margin-bottom: 0.25rem;
}

.bento-vision p {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

/* Skills Card */
.bento-skills {
    grid-column: 3;
    grid-row: 2;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
}

.skill-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem;
    background: var(--surface-highlight);
    border-radius: 10px;
    font-size: 0.8rem;
    transition: all 0.3s ease;
}

.skill-item:hover {
    background: rgba(96, 165, 250, 0.1);
}

.skill-icon {
    font-size: 1rem;
}

/* Quote Card */
.bento-quote {
    grid-column: 1 / 2;
    background: linear-gradient(135deg, var(--accent), var(--primary));
    position: relative;
    overflow: hidden;
}

.quote-mark {
    font-size: 4rem;
    font-family: serif;
    position: absolute;
    top: -10px;
    right: 10px;
    opacity: 0.2;
    color: white;
}

.bento-quote p {
    color: white;
    font-size: 0.9rem;
    line-height: 1.6;
    position: relative;
    z-index: 1;
}

/* Location Card */
.bento-location {
    grid-column: 2 / 4;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    background: var(--surface-highlight);
}

.location-pin {
    font-size: 1.25rem;
}

.bento-location span {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* Bento Responsive */
@media (max-width: 968px) {
    .about-section .section-container {
        padding-left: 2rem;
    }
    
    .bento-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .bento-main {
        grid-column: 1 / 3;
        grid-row: auto;
    }
    
    .bento-skills {
        grid-column: 1 / 3;
        grid-row: auto;
    }
    
    .bento-quote {
        grid-column: 1 / 2;
    }
    
    .bento-location {
        grid-column: 1 / 3;
    }
    
    .skills-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 600px) {
    .bento-grid {
        grid-template-columns: 1fr;
    }
    
    .bento-main,
    .bento-skills,
    .bento-quote,
    .bento-location {
        grid-column: 1;
    }
    
    .skills-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ========================================
   Work Section
   ======================================== */

.work-section {
    background:
        radial-gradient(ellipse at 20% 80%, rgba(139, 92, 246, 0.08) 0%, transparent 40%);
}

.work-section .section-container {
    padding-left: 5rem;
}

.work-header {
    margin-bottom: 2.5rem;
}

.work-title {
    margin-bottom: 0.5rem;
}

.work-title h2 {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    display: inline;
}

.work-subtitle {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* Projects Grid */
.projects-wrapper {
    width: 100%;
}

.projects-track {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.project-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.4s ease;
}

.project-card:hover {
    border-color: var(--primary);
    transform: translateY(-6px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

.project-visual {
    position: relative;
    height: 140px;
    background: linear-gradient(135deg, var(--surface-highlight), var(--surface));
    display: flex;
    align-items: center;
    justify-content: center;
}

.project-icon {
    font-size: 3.5rem;
}

.project-year {
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 0.75rem;
    color: var(--text-muted);
    background: var(--surface);
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
}

.project-info {
    padding: 1.25rem;
}

.project-info h3 {
    font-size: 1.15rem;
    margin-bottom: 0.5rem;
}

.project-info p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.project-tech span {
    font-size: 0.7rem;
    padding: 0.25rem 0.75rem;
    background: var(--surface-highlight);
    color: var(--text-muted);
    border-radius: 50px;
}

.project-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: var(--primary);
    font-weight: 500;
    transition: gap 0.3s ease;
}

.project-link svg {
    width: 16px;
    height: 16px;
    transition: transform 0.3s ease;
}

.project-link:hover {
    gap: 0.75rem;
}

.project-link:hover svg {
    transform: translate(4px, -4px);
}

/* Work CTA */
.work-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
    flex-wrap: wrap;
}

.work-cta span {
    color: var(--text-secondary);
}

/* Projects Responsive */
@media (max-width: 968px) {
    .work-section .section-container {
        padding-left: 2rem;
    }
    
    .projects-track {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .projects-track {
        grid-template-columns: 1fr;
    }
}

/* ========================================
   Contact Section
   ======================================== */

.contact-section {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background:
        radial-gradient(ellipse at 50% 50%, rgba(96, 165, 250, 0.08) 0%, transparent 60%);
    padding: 5rem 2rem;
}

.contact-container {
    text-align: center;
    width: 100%;
    max-width: 600px;
}

.contact-content {
    margin-bottom: 3rem;
}

.contact-content h2 {
    font-size: clamp(2rem, 5vw, 3rem);
    margin-bottom: 1rem;
}

.contact-content > p {
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.8;
    font-size: 0.95rem;
}

.contact-email {
    display: inline-block;
    font-size: clamp(1rem, 3vw, 1.5rem);
    font-weight: 600;
    color: var(--text-primary);
    padding: 1rem 2rem;
    border: 2px solid var(--border);
    border-radius: 16px;
    margin-bottom: 2rem;
    transition: all 0.3s ease;
    word-break: break-all;
}

.contact-email:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: rgba(96, 165, 250, 0.05);
}

.contact-socials {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.social-link {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.social-link svg {
    width: 20px;
    height: 20px;
    color: var(--text-secondary);
    transition: color 0.3s ease;
}

.social-link:hover {
    border-color: var(--primary);
    background: rgba(96, 165, 250, 0.1);
    transform: translateY(-4px);
}

.social-link:hover svg {
    color: var(--primary);
}

/* Footer */
.footer {
    padding: 2rem;
    text-align: center;
    margin-top: 2rem;
}

.footer-content {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: var(--text-muted);
    flex-wrap: wrap;
}

.footer-divider {
    color: var(--border);
}

/* ========================================
   Mobile Bottom Nav Spacing
   ======================================== */

@media (max-width: 768px) {
    .contact-section {
        padding-bottom: 5rem;
    }
    
    .footer {
        padding-bottom: 4rem;
    }
}

/* ========================================
   Animations
   ======================================== */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeInUp 0.6s ease-out forwards;
}

/* ========================================
   Selection Style
   ======================================== */

::selection {
    background: var(--primary);
    color: var(--background);
}

/* ========================================
   Scrollbar
   ======================================== */

::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--background);
}

::-webkit-scrollbar-thumb {
    background: var(--surface-highlight);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}
