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

:root {
    /* Colors */
    --primary-color: #2563eb;
    --primary-dark: #1d4ed8;
    --secondary-color: #f59e0b;
    --accent-color: #10b981;
    --text-primary: #1f2937;
    --text-secondary: #6b7280;
    --text-light: #9ca3af;
    --background: #ffffff;
    --background-alt: #f8fafc;
    --background-dark: #0f172a;
    --border-color: #e5e7eb;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    
    /* Typography */
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-size-xs: 0.75rem;
    --font-size-sm: 0.875rem;
    --font-size-base: 1rem;
    --font-size-lg: 1.125rem;
    --font-size-xl: 1.25rem;
    --font-size-2xl: 1.5rem;
    --font-size-3xl: 1.875rem;
    --font-size-4xl: 2.25rem;
    --font-size-5xl: 3rem;
    
    /* Spacing */
    --space-1: 0.25rem;
    --space-2: 0.5rem;
    --space-3: 0.75rem;
    --space-4: 1rem;
    --space-5: 1.25rem;
    --space-6: 1.5rem;
    --space-8: 2rem;
    --space-10: 2.5rem;
    --space-12: 3rem;
    --space-16: 4rem;
    --space-20: 5rem;
    
    /* Border radius */
    --radius-sm: 0.25rem;
    --radius-md: 0.375rem;
    --radius-lg: 0.5rem;
    --radius-xl: 0.75rem;
    --radius-2xl: 1rem;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    line-height: 1.6;
    color: var(--text-primary);
    background: var(--background);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-4);
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="60" height="60" viewBox="0 0 60 60" xmlns="http://www.w3.org/2000/svg"><g fill="none" fill-rule="evenodd"><g fill="%23ffffff" fill-opacity="0.05"><circle cx="30" cy="30" r="2"/></g></svg>') repeat;
    z-index: 1;
}

.navbar {
    position: relative;
    z-index: 10;
    padding: var(--space-6) 0;
}

.nav-brand .logo {
    font-size: var(--font-size-xl);
    font-weight: 700;
    color: white;
    text-shadow: var(--shadow-sm);
}

.hero-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
    z-index: 10;
    padding: var(--space-20) 0;
}

.hero-title {
    font-size: var(--font-size-5xl);
    font-weight: 700;
    color: white;
    margin-bottom: var(--space-6);
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    line-height: 1.2;
}

.hero-subtitle {
    font-size: var(--font-size-xl);
    color: rgba(255, 255, 255, 0.9);
    font-weight: 300;
    margin-bottom: var(--space-8);
}

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

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

.fade-in-delay {
    animation: fadeIn 1s ease-out 0.5s both;
}

/* Story Section */
.story-section {
    padding: var(--space-20) 0;
    background: var(--background);
}

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

.story-intro {
    font-size: var(--font-size-lg);
    color: var(--text-secondary);
    margin-bottom: var(--space-12);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.8;
}

.image-container {
    position: relative;
    display: inline-block;
    margin: var(--space-12) 0;
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow-xl);
    overflow: hidden;
}

.story-image {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius-2xl);
    transition: transform 0.3s ease;
}

.story-image:hover {
    transform: scale(1.05);
}

.image-placeholder {
    background: linear-gradient(145deg, #f1f5f9, #e2e8f0);
    padding: var(--space-16);
    border-radius: var(--radius-2xl);
    border: 2px dashed var(--border-color);
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.placeholder-content {
    text-align: center;
    color: var(--text-light);
}

.placeholder-icon {
    font-size: var(--font-size-4xl);
    display: block;
    margin-bottom: var(--space-4);
}

.dramatic-text {
    font-size: var(--font-size-3xl);
    font-weight: 700;
    color: var(--primary-color);
    margin-top: var(--space-12);
    text-transform: uppercase;
    letter-spacing: 2px;
    position: relative;
}

.dramatic-text::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 2px;
}

/* App Section */
.app-section {
    padding: var(--space-20) 0;
    background: var(--background-alt);
}

.app-header {
    text-align: center;
    margin-bottom: var(--space-16);
}

.section-title {
    font-size: var(--font-size-4xl);
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: var(--space-6);
}

.app-tagline {
    font-size: var(--font-size-lg);
    color: var(--text-secondary);
    line-height: 1.8;
    max-width: 600px;
    margin: 0 auto;
}

.app-description {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-8);
    margin-bottom: var(--space-16);
}

.description-card {
    background: white;
    padding: var(--space-8);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.description-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.card-icon {
    font-size: var(--font-size-3xl);
    margin-bottom: var(--space-4);
}

.description-card p {
    color: var(--text-secondary);
    line-height: 1.7;
}

.cta-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: var(--space-8);
    margin-top: var(--space-16);
}

.cta-card {
    background: white;
    padding: var(--space-10);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 2px solid transparent;
}

.cta-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.web-app {
    border-color: var(--primary-color);
}

.android-app {
    border-color: var(--accent-color);
}

.cta-card h3 {
    font-size: var(--font-size-xl);
    font-weight: 600;
    margin-bottom: var(--space-4);
    color: var(--text-primary);
}

.cta-card p {
    color: var(--text-secondary);
    margin-bottom: var(--space-6);
    line-height: 1.6;
}

.app-logo-container {
    margin: var(--space-6) 0;
}

.app-logo, .logo-placeholder {
    width: 80px;
    height: 80px;
    margin: 0 auto var(--space-4);
    border-radius: var(--radius-xl);
}

.logo-placeholder {
    background: linear-gradient(145deg, #f1f5f9, #e2e8f0);
    border: 2px dashed var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-placeholder .placeholder-content {
    text-align: center;
}

.logo-placeholder .placeholder-icon {
    font-size: var(--font-size-2xl);
    margin-bottom: var(--space-2);
}

.logo-placeholder p {
    font-size: var(--font-size-xs);
    margin: 0;
}

.cta-button {
    display: inline-block;
    padding: var(--space-3) var(--space-8);
    border-radius: var(--radius-lg);
    text-decoration: none;
    font-weight: 600;
    font-size: var(--font-size-base);
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    text-align: center;
    min-width: 180px;
}

.cta-button.primary {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    box-shadow: var(--shadow-md);
}

.cta-button.primary:hover {
    background: linear-gradient(135deg, var(--primary-dark), #1e40af);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.cta-button.secondary {
    background: linear-gradient(135deg, var(--accent-color), #059669);
    color: white;
    box-shadow: var(--shadow-md);
}

.cta-button.secondary:hover {
    background: linear-gradient(135deg, #059669, #047857);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* Tech Section */
.tech-section {
    padding: var(--space-20) 0;
    background: white;
}

.tech-story {
    max-width: 800px;
    margin: 0 auto;
}

.tech-card {
    background: linear-gradient(135deg, #fef3c7, #fde68a);
    padding: var(--space-8);
    border-radius: var(--radius-xl);
    margin-bottom: var(--space-12);
    text-align: center;
    border: 2px solid var(--secondary-color);
}

.tech-icon {
    font-size: var(--font-size-4xl);
    margin-bottom: var(--space-4);
}

.tech-card p {
    font-size: var(--font-size-lg);
    color: var(--text-primary);
    line-height: 1.7;
}

.tech-timeline {
    margin: var(--space-12) 0;
}

.timeline-item {
    display: flex;
    align-items: flex-start;
    gap: var(--space-6);
}

.timeline-dot {
    width: 20px;
    height: 20px;
    background: var(--primary-color);
    border-radius: 50%;
    margin-top: var(--space-2);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.2);
}

.timeline-content {
    flex: 1;
}

.timeline-content h4 {
    font-size: var(--font-size-xl);
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--space-4);
}

.timeline-content p {
    color: var(--text-secondary);
    margin-bottom: var(--space-4);
}

.timeline-content ul {
    list-style: none;
    padding: 0;
}

.timeline-content li {
    padding: var(--space-2) 0;
    color: var(--text-secondary);
    position: relative;
    padding-left: var(--space-8);
}

.timeline-content li::before {
    content: attr(data-icon);
    position: absolute;
    left: 0;
    top: var(--space-2);
    font-size: var(--font-size-lg);
}

/* Screenshot Gallery */
.screenshot-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--space-6);
    margin-top: var(--space-8);
    padding-top: var(--space-6);
    border-top: 1px solid var(--border-color);
}

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

.screenshot-image {
    width: 100%;
    max-width: 250px;
    height: auto;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.screenshot-image:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.screenshot-caption {
    margin-top: var(--space-3);
    font-size: var(--font-size-sm);
    color: var(--text-secondary);
    font-style: italic;
}

@media (max-width: 768px) {
    .screenshot-gallery {
        grid-template-columns: 1fr;
        gap: var(--space-4);
    }
    
    .screenshot-image {
        max-width: 200px;
    }
}

/* Thank You Section */
.thank-you-section {
    margin-top: var(--space-8);
    text-align: center;
    padding: var(--space-6);
}

.thank-you-image {
    max-width: 400px;
    width: 100%;
    height: auto;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.thank-you-image:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

@media (max-width: 768px) {
    .thank-you-image {
        max-width: 300px;
    }
}

.tech-confession {
    background: linear-gradient(135deg, #ede9fe, #ddd6fe);
    padding: var(--space-8);
    border-radius: var(--radius-xl);
    text-align: center;
    border: 2px solid #a855f7;
}

.confession-text {
    font-size: var(--font-size-lg);
    color: var(--text-primary);
    font-style: italic;
    line-height: 1.7;
}

/* Feedback Section */
.feedback-section {
    padding: var(--space-16) 0;
    background: var(--background-alt);
}

.feedback-card {
    background: white;
    padding: var(--space-10);
    border-radius: var(--radius-xl);
    text-align: center;
    box-shadow: var(--shadow-lg);
    max-width: 600px;
    margin: 0 auto;
    border: 2px solid var(--secondary-color);
}

.feedback-card h3 {
    font-size: var(--font-size-2xl);
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--space-4);
}

.feedback-card p {
    color: var(--text-secondary);
    margin-bottom: var(--space-6);
    line-height: 1.7;
}

.email-link {
    display: inline-block;
    padding: var(--space-4) var(--space-8);
    background: linear-gradient(135deg, var(--secondary-color), #d97706);
    color: white;
    text-decoration: none;
    border-radius: var(--radius-lg);
    font-weight: 600;
    font-size: var(--font-size-lg);
    transition: all 0.3s ease;
    box-shadow: var(--shadow-md);
}

.email-link:hover {
    background: linear-gradient(135deg, #d97706, #b45309);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* Footer */
.footer {
    background: var(--background-dark);
    color: white;
    padding: var(--space-12) 0;
    text-align: center;
}

.footer-note {
    font-size: var(--font-size-lg);
    margin-bottom: var(--space-4);
    color: rgba(255, 255, 255, 0.9);
}

.footer-copyright {
    font-size: var(--font-size-sm);
    color: rgba(255, 255, 255, 0.7);
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    animation: fadeIn 0.3s ease;
}

.modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: white;
    margin: auto;
    padding: var(--space-8);
    border-radius: var(--radius-xl);
    max-width: 500px;
    width: 90%;
    position: relative;
    box-shadow: var(--shadow-xl);
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.close {
    color: var(--text-light);
    position: absolute;
    top: var(--space-4);
    right: var(--space-6);
    font-size: var(--font-size-2xl);
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
}

.close:hover {
    color: var(--text-primary);
}

.modal-content h3 {
    font-size: var(--font-size-xl);
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--space-4);
}

.modal-content p {
    color: var(--text-secondary);
    margin-bottom: var(--space-6);
    line-height: 1.6;
}

.modal-buttons {
    display: flex;
    gap: var(--space-4);
    justify-content: center;
}

.modal-button {
    padding: var(--space-3) var(--space-6);
    border: none;
    border-radius: var(--radius-lg);
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    text-align: center;
    transition: all 0.3s ease;
}

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

.modal-button.primary:hover {
    background: var(--primary-dark);
}

.modal-button.secondary {
    background: var(--text-light);
    color: white;
}

.modal-button.secondary:hover {
    background: var(--text-secondary);
}

/* Image Modal Styles */
.image-modal .image-modal-content {
    background: transparent;
    padding: 0;
    border-radius: 0;
    max-width: 90vw;
    max-height: 90vh;
    width: auto;
    height: auto;
    box-shadow: none;
}

.modal-image {
    width: 100%;
    height: auto;
    max-width: 90vw;
    max-height: 80vh;
    object-fit: contain;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
}

.image-modal-caption {
    color: white;
    text-align: center;
    padding: var(--space-4);
    font-size: var(--font-size-lg);
    background: rgba(0, 0, 0, 0.7);
    border-radius: var(--radius-lg);
    margin-top: var(--space-4);
}

.image-modal .close {
    color: white;
    background: rgba(0, 0, 0, 0.7);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--font-size-xl);
    top: var(--space-4);
    right: var(--space-4);
}

.image-modal .close:hover {
    background: rgba(0, 0, 0, 0.9);
}

.screenshot-image {
    cursor: pointer;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-title {
        font-size: var(--font-size-3xl);
    }
    
    .hero-subtitle {
        font-size: var(--font-size-lg);
    }
    
    .section-title {
        font-size: var(--font-size-3xl);
    }
    
    .container {
        padding: 0 var(--space-3);
    }
    
    .cta-section {
        grid-template-columns: 1fr;
    }
    
    .app-description {
        grid-template-columns: 1fr;
    }
    
    .timeline-item {
        flex-direction: column;
        gap: var(--space-4);
    }
    
    .timeline-dot {
        align-self: flex-start;
    }
    
    .modal-buttons {
        flex-direction: column;
    }
    
    .modal-button {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: var(--font-size-2xl);
    }
    
    .section-title {
        font-size: var(--font-size-2xl);
    }
    
    .cta-card {
        padding: var(--space-6);
    }
    
    .container {
        padding: 0 var(--space-2);
    }
}

/* Print styles */
@media print {
    .modal {
        display: none !important;
    }
    
    .cta-button {
        color: var(--text-primary) !important;
        background: transparent !important;
        border: 1px solid var(--border-color) !important;
    }
}