/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Colors - Apple-inspired */
    --color-primary: #0071e3;
    --color-primary-hover: #0077ed;
    --color-secondary: #1d1d1f;
    --color-text: #1d1d1f;
    --color-text-light: #6e6e73;
    --color-bg: #ffffff;
    --color-bg-alt: #f5f5f7;
    --color-surface: #fbfbfd;
    --color-border: #d2d2d7;
    --color-accent: #06c;
    --color-success: #34c759;
    --color-income: #34c759;
    --color-expense: #ff3b30;
    --color-balance: #007aff;
    
    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 3rem;
    --spacing-xl: 4rem;
    --spacing-xxl: 6rem;
    
    /* Typography */
    --font-primary: 'Vazirmatn', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
    --font-mono: 'SF Mono', 'Monaco', 'Cascadia Code', 'Vazirmatn', monospace;
    
    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.12);
    --shadow-xl: 0 16px 48px rgba(0, 0, 0, 0.16);
    
    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 18px;
    --radius-xl: 24px;
    
    /* Transitions */
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
    background: #ffffff;
}

body {
    font-family: var(--font-primary);
    color: var(--color-text);
    background: var(--color-bg);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    min-height: 100vh;
}

/* Navigation */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    z-index: 1000;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    transition: all var(--transition-base);
}

.nav.scrolled {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: var(--shadow-sm);
}

.nav-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-text);
    text-decoration: none;
    transition: transform 0.3s ease;
}

.nav-logo:hover {
    transform: scale(1.05);
}

.logo-img {
    width: 36px;
    height: 36px;
    filter: drop-shadow(0 2px 8px rgba(102, 126, 234, 0.2));
}

.footer-logo {
    width: 180px;
    height: auto;
    margin-bottom: 1rem;
    filter: brightness(0) invert(1);
    opacity: 0.9;
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-links a {
    color: var(--color-text);
    text-decoration: none;
    font-weight: 500;
    transition: color var(--transition-fast);
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-primary);
    transition: width var(--transition-base);
}

.nav-links a:hover {
    color: var(--color-primary);
}

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

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: var(--spacing-xl) var(--spacing-md);
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(0, 113, 227, 0.1) 0%, transparent 70%);
    animation: float 20s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    50% { transform: translate(30px, -30px) rotate(5deg); }
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 900px;
}

.hero-title {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.hero-title-main {
    font-size: clamp(3rem, 10vw, 7rem);
    font-weight: 800;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.02em;
}

.hero-title-sub {
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    font-weight: 600;
    color: var(--color-text-light);
}

.hero-description {
    font-size: clamp(1.1rem, 2vw, 1.5rem);
    color: var(--color-text-light);
    margin-top: var(--spacing-md);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-cta {
    display: flex;
    gap: var(--spacing-sm);
    justify-content: center;
    margin-top: var(--spacing-lg);
    flex-wrap: wrap;
}

/* Animations */
.fade-in {
    animation: fadeIn 1s ease-out;
}

.fade-in-delay {
    animation: fadeIn 1s ease-out 0.2s backwards;
}

.fade-in-delay-2 {
    animation: fadeIn 1s ease-out 0.4s backwards;
}

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

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
}

.scroll-arrow {
    width: 24px;
    height: 24px;
    border-left: 2px solid var(--color-text-light);
    border-bottom: 2px solid var(--color-text-light);
    transform: rotate(-45deg);
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
    40% { transform: translateX(-50%) translateY(-10px); }
    60% { transform: translateX(-50%) translateY(-5px); }
}

/* Buttons */
.btn-primary,
.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-xs);
    padding: 0.875rem 1.75rem;
    font-size: 1rem;
    font-weight: 500;
    text-decoration: none;
    border-radius: var(--radius-xl);
    transition: all var(--transition-base);
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: var(--color-primary);
    color: white;
}

.btn-primary:hover {
    background: var(--color-primary-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background: transparent;
    color: var(--color-primary);
    border: 2px solid var(--color-primary);
}

.btn-secondary:hover {
    background: var(--color-primary);
    color: white;
    transform: translateY(-2px);
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

/* Section Titles */
.section-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 700;
    margin-bottom: var(--spacing-lg);
    text-align: center;
    letter-spacing: -0.02em;
}

.section-label {
    display: block;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-primary);
    font-weight: 600;
    margin-bottom: var(--spacing-sm);
}

/* Highlights Section */
.highlights {
    padding: var(--spacing-xxl) 0;
    background: var(--color-bg);
}

.highlights-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-md);
    margin-top: var(--spacing-lg);
}

.highlight-card {
    background: var(--color-surface);
    border-radius: var(--radius-lg);
    padding: var(--spacing-lg);
    text-align: center;
    transition: all var(--transition-base);
    cursor: pointer;
    border: 1px solid var(--color-border);
}

.highlight-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: var(--color-primary);
}

.highlight-icon {
    font-size: 3rem;
    margin-bottom: var(--spacing-sm);
}

.highlight-card h3 {
    font-size: 1.5rem;
    margin-bottom: var(--spacing-xs);
    color: var(--color-text);
}

.highlight-card p {
    color: var(--color-text-light);
}

/* Projects Section */
.projects {
    background: var(--color-bg-alt);
    padding: var(--spacing-xxl) 0;
}

.project-section {
    margin-bottom: var(--spacing-xxl);
    padding: var(--spacing-xxl) var(--spacing-md);
    background: var(--color-bg);
    border-radius: var(--radius-xl);
    overflow: hidden;
}

.project-alternate {
    background: linear-gradient(135deg, #667eea15 0%, #764ba215 100%);
}

.project-header {
    text-align: center;
    margin-bottom: var(--spacing-xl);
}

.project-badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: var(--color-primary);
    color: white;
    border-radius: var(--radius-xl);
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: var(--spacing-sm);
}

.project-title {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 800;
    margin-bottom: var(--spacing-sm);
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.project-subtitle {
    font-size: clamp(1.1rem, 2vw, 1.5rem);
    color: var(--color-text-light);
}

.project-content {
    display: grid;
    gap: var(--spacing-xl);
}

.project-image-container {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
}

.project-image {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: var(--radius-xl);
    padding: var(--spacing-lg);
    box-shadow: var(--shadow-xl);
    transform: perspective(1000px) rotateY(0deg);
    transition: transform var(--transition-slow);
}

.project-image:hover {
    transform: perspective(1000px) rotateY(-5deg);
}

.mockup-content {
    background: white;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

/* Telegram Mockup */
.telegram-mockup {
    padding: var(--spacing-md);
}

.telegram-header {
    background: var(--color-primary);
    color: white;
    padding: var(--spacing-sm);
    border-radius: var(--radius-sm);
    margin-bottom: var(--spacing-sm);
    font-weight: 600;
}

.telegram-message {
    padding: var(--spacing-sm);
}

.message-bubble {
    background: var(--color-surface);
    padding: var(--spacing-md);
    border-radius: var(--radius-md);
    line-height: 1.8;
}

.message-bubble p {
    margin-bottom: var(--spacing-xs);
}

/* Finance Dashboard */
.finance-dashboard {
    padding: var(--spacing-md);
}

.dashboard-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: var(--spacing-md);
    border-radius: var(--radius-sm);
    margin-bottom: var(--spacing-md);
}

.dashboard-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-md);
}

.dashboard-cards .card {
    background: var(--color-surface);
    padding: var(--spacing-md);
    border-radius: var(--radius-sm);
    text-align: center;
}

.card-label {
    display: block;
    font-size: 0.875rem;
    color: var(--color-text-light);
    margin-bottom: var(--spacing-xs);
}

.card-value {
    display: block;
    font-size: 1.25rem;
    font-weight: 700;
}

.card.income .card-value { color: var(--color-income); }
.card.expense .card-value { color: var(--color-expense); }
.card.balance .card-value { color: var(--color-balance); }

.recent-transactions {
    background: var(--color-surface);
    padding: var(--spacing-md);
    border-radius: var(--radius-sm);
}

.transaction {
    display: flex;
    justify-content: space-between;
    padding: var(--spacing-sm);
    border-bottom: 1px solid var(--color-border);
}

.transaction:last-child {
    border-bottom: none;
}

/* Web App Mockup */
.web-app-mockup {
    background: var(--color-bg);
}

.browser-bar {
    background: var(--color-surface);
    padding: var(--spacing-sm);
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    border-bottom: 1px solid var(--color-border);
}

.browser-dots {
    display: flex;
    gap: 0.5rem;
}

.browser-dots span {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--color-border);
}

.browser-url {
    flex: 1;
    background: white;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-sm);
    font-size: 0.875rem;
    color: var(--color-text-light);
    text-align: center;
}

.app-content {
    display: grid;
    grid-template-columns: 200px 1fr;
    min-height: 400px;
}

.sidebar {
    background: var(--color-surface);
    padding: var(--spacing-md);
    border-left: 1px solid var(--color-border);
}

.sidebar-item {
    padding: var(--spacing-sm);
    margin-bottom: var(--spacing-xs);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.sidebar-item:hover {
    background: var(--color-bg-alt);
}

.sidebar-item.active {
    background: var(--color-primary);
    color: white;
}

.main-content {
    padding: var(--spacing-md);
}

.main-content h3 {
    margin-bottom: var(--spacing-md);
}

.dashboard-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: var(--spacing-sm);
}

.stat-card {
    background: var(--color-surface);
    padding: var(--spacing-md);
    border-radius: var(--radius-sm);
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xs);
}

.stat-card span:first-child {
    font-size: 2rem;
    font-weight: 700;
    color: var(--color-primary);
}

.stat-card span:last-child {
    font-size: 0.875rem;
    color: var(--color-text-light);
}

/* E-Commerce Mockup */
.ecommerce-mockup {
    padding: var(--spacing-md);
}

.product-header {
    background: linear-gradient(135deg, #f6d365 0%, #fda085 100%);
    color: white;
    padding: var(--spacing-md);
    border-radius: var(--radius-sm);
    margin-bottom: var(--spacing-md);
}

.product-card {
    background: var(--color-surface);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.product-image-placeholder {
    background: linear-gradient(135deg, #f6d365 0%, #fda085 100%);
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.rice-icon {
    font-size: 4rem;
}

.product-info {
    padding: var(--spacing-md);
}

.product-info h4 {
    font-size: 1.25rem;
    margin-bottom: var(--spacing-xs);
}

.product-rating {
    margin-bottom: var(--spacing-sm);
}

.product-price {
    display: flex;
    gap: var(--spacing-sm);
    align-items: center;
    margin-bottom: var(--spacing-sm);
}

.price-new {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-primary);
}

.price-old {
    font-size: 1rem;
    color: var(--color-text-light);
    text-decoration: line-through;
}

.product-badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: var(--color-success);
    color: white;
    border-radius: var(--radius-sm);
    font-size: 0.875rem;
}

/* Project Features */
.project-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--spacing-md);
}

.feature {
    background: var(--color-surface);
    padding: var(--spacing-lg);
    border-radius: var(--radius-lg);
    transition: all var(--transition-base);
    border: 1px solid var(--color-border);
}

.feature:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--color-primary);
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: var(--spacing-sm);
}

.feature h3 {
    font-size: 1.25rem;
    margin-bottom: var(--spacing-sm);
    color: var(--color-text);
}

.feature p {
    color: var(--color-text-light);
    line-height: 1.7;
}

/* Tech Stack */
.tech-stack {
    margin-top: var(--spacing-lg);
}

.tech-stack h4 {
    font-size: 1.125rem;
    margin-bottom: var(--spacing-md);
    color: var(--color-text);
}

.tech-badges {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-xs);
}

.tech-badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: var(--color-surface);
    color: var(--color-text);
    border-radius: var(--radius-sm);
    font-size: 0.875rem;
    font-weight: 500;
    border: 1px solid var(--color-border);
    transition: all var(--transition-fast);
}

.tech-badge:hover {
    background: var(--color-primary);
    color: white;
    border-color: var(--color-primary);
    transform: translateY(-2px);
}

/* Project Highlights */
.project-highlights {
    margin-top: var(--spacing-lg);
    background: var(--color-surface);
    padding: var(--spacing-lg);
    border-radius: var(--radius-lg);
}

.project-highlights h4 {
    font-size: 1.125rem;
    margin-bottom: var(--spacing-md);
}

.project-highlights ul {
    list-style: none;
    padding: 0;
}

.project-highlights li {
    padding: var(--spacing-sm) 0;
    padding-right: var(--spacing-md);
    position: relative;
    color: var(--color-text-light);
    line-height: 1.7;
}

.project-highlights li::before {
    content: '✓';
    position: absolute;
    right: 0;
    color: var(--color-primary);
    font-weight: 700;
}

/* Project Actions */
.project-actions {
    margin-top: var(--spacing-lg);
    display: flex;
    justify-content: center;
    gap: var(--spacing-sm);
    flex-wrap: wrap;
}

/* About Section */
.about {
    padding: var(--spacing-xxl) 0;
    background: var(--color-bg);
}

.about-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-xl);
    align-items: center;
}

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

.about-description {
    font-size: 1.125rem;
    line-height: 1.8;
    color: var(--color-text-light);
    margin-bottom: var(--spacing-md);
}

.skills {
    margin-top: var(--spacing-lg);
}

.skills h3 {
    font-size: 1.25rem;
    margin-bottom: var(--spacing-md);
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: var(--spacing-sm);
}

.skill-item {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    padding: var(--spacing-sm);
    background: var(--color-surface);
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
    border: 1px solid var(--color-border);
}

.skill-item:hover {
    transform: translateX(-4px);
    border-color: var(--color-primary);
    box-shadow: var(--shadow-sm);
}

.skill-icon {
    font-size: 1.5rem;
}

/* Code Window */
.code-window {
    background: var(--color-secondary);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
}

.code-header {
    background: rgba(255, 255, 255, 0.1);
    padding: var(--spacing-sm);
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.code-dots {
    display: flex;
    gap: 0.5rem;
}

.code-dots span {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.code-dots span:nth-child(1) { background: #ff5f56; }
.code-dots span:nth-child(2) { background: #ffbd2e; }
.code-dots span:nth-child(3) { background: #27c93f; }

.code-title {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.875rem;
}

.code-content {
    padding: var(--spacing-md);
    direction: ltr;
    text-align: left;
}

.code-content pre {
    margin: 0;
    overflow-x: auto;
}

.code-content code {
    font-family: var(--font-mono);
    font-size: 0.875rem;
    line-height: 1.7;
    color: #e8eaed;
}

.code-keyword { color: #c792ea; }
.code-class { color: #ffcb6b; }
.code-function { color: #82aaff; }
.code-param { color: #f07178; }
.code-string { color: #c3e88d; }

/* Contact Section */
.contact {
    padding: var(--spacing-xxl) 0;
    background: var(--color-bg-alt);
}

.contact-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.contact-description {
    font-size: 1.125rem;
    color: var(--color-text-light);
    margin-bottom: var(--spacing-xl);
}

.contact-methods {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-md);
}

.contact-card {
    background: var(--color-bg);
    padding: var(--spacing-lg);
    border-radius: var(--radius-lg);
    text-decoration: none;
    color: var(--color-text);
    transition: all var(--transition-base);
    border: 1px solid var(--color-border);
}

.contact-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: var(--color-primary);
}

.contact-icon {
    font-size: 3rem;
    margin-bottom: var(--spacing-sm);
}

.contact-card h3 {
    font-size: 1.25rem;
    margin-bottom: var(--spacing-xs);
}

.contact-card p {
    color: var(--color-text-light);
}

/* Footer */
.footer {
    background: var(--color-secondary);
    color: rgba(255, 255, 255, 0.8);
    padding: var(--spacing-xl) 0 var(--spacing-md);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-lg);
}

.footer-info h3 {
    color: white;
    margin-bottom: var(--spacing-xs);
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xs);
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color var(--transition-fast);
}

.footer-links a:hover {
    color: white;
}

.footer-social {
    display: flex;
    gap: var(--spacing-sm);
}

.footer-social a {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: white;
    transition: all var(--transition-fast);
}

.footer-social a:hover {
    background: var(--color-primary);
    transform: translateY(-4px);
}

.footer-badges {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 1rem;
}

.footer-badges a {
    display: inline-block;
    transition: transform var(--transition-base);
}

.footer-badges a:hover {
    transform: scale(1.05);
}

.footer-badges img {
    max-width: 100px;
    height: auto;
}

.footer-bottom {
    text-align: center;
    padding-top: var(--spacing-md);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-links {
        gap: 1rem;
        font-size: 0.875rem;
    }
    
    .hero {
        padding: var(--spacing-lg) var(--spacing-sm);
    }
    
    .hero-title-main {
        font-size: 3rem;
    }
    
    .project-section {
        padding: var(--spacing-lg) var(--spacing-sm);
    }
    
    .project-features {
        grid-template-columns: 1fr;
    }
    
    .app-content {
        grid-template-columns: 1fr;
    }
    
    .sidebar {
        border-left: none;
        border-bottom: 1px solid var(--color-border);
    }
    
    .about-content {
        grid-template-columns: 1fr;
    }
    
    .code-window {
        display: none;
    }
}

@media (max-width: 480px) {
    .nav-content {
        padding: 1rem;
    }
    
    .nav-links {
        display: none;
    }
    
    .hero-cta {
        flex-direction: column;
        width: 100%;
    }
    
    .btn-primary,
    .btn-secondary {
        width: 100%;
        justify-content: center;
    }

    /* Footer: place eNAMAD badge to the left of links to reduce height */
    .footer-content {
        display: grid;
        grid-template-columns: 120px 1fr; /* left: badges, right: links */
        align-items: start;
        gap: var(--spacing-md);
    }

    .footer-info {
        grid-column: 1 / -1; /* full width */
        grid-row: 1;
    }

    .footer-badges {
        grid-column: 1;
        grid-row: 2; /* same row as links */
        margin-top: 0;
        justify-content: flex-start;
    }

    .footer-badges img {
        max-width: 72px;
        height: auto;
    }

    .footer-links {
        grid-column: 2;
        grid-row: 2; /* same row as badges */
    }

    .footer-social {
        grid-column: 1 / -1; /* move below */
        grid-row: 3;
        margin-top: var(--spacing-sm);
    }
}

/* Scroll Animations */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.animate-on-scroll.animated {
    opacity: 1;
    transform: translateY(0);
}

/* Print Styles */
@media print {
    .nav,
    .scroll-indicator,
    .footer {
        display: none;
    }
}

