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

:root {
    --primary: #007AFF;
    --primary-dark: #0056CC;
    --secondary: #FF6B35;
    --accent: #32D74B;
    --purple: #AF52DE;
    --dark: #1C1C1E;
    --light: #F2F2F7;
    --text-primary: #000000;
    --text-secondary: #8E8E93;
    --gradient-primary: linear-gradient(135deg, #007AFF 0%, #AF52DE 100%);
    --gradient-secondary: linear-gradient(135deg, #FF6B35 0%, #FFCC02 100%);
    --gradient-accent: linear-gradient(135deg, #32D74B 0%, #007AFF 100%);
    --shadow-light: 0 10px 30px rgba(0, 122, 255, 0.1);
    --shadow-medium: 0 20px 40px rgba(0, 122, 255, 0.15);
    --shadow-heavy: 0 30px 60px rgba(0, 122, 255, 0.2);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background: var(--light);
    overflow-x: hidden;
}

/* Animated Background */
.bg-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: linear-gradient(135deg, #F2F2F7 0%, #E5E5EA 50%, #F2F2F7 100%);
}

.floating-shapes {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.shape {
    position: absolute;
    border-radius: 50%;
    opacity: 0.1;
    animation: float 20s infinite linear;
}

.shape-1 {
    width: 80px;
    height: 80px;
    background: var(--gradient-primary);
    top: 10%;
    left: 10%;
    animation-delay: 0s;
}

.shape-2 {
    width: 120px;
    height: 120px;
    background: var(--gradient-secondary);
    top: 20%;
    right: 10%;
    animation-delay: -5s;
}

.shape-3 {
    width: 60px;
    height: 60px;
    background: var(--gradient-accent);
    bottom: 30%;
    left: 15%;
    animation-delay: -10s;
}

.shape-4 {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, var(--purple) 0%, var(--secondary) 100%);
    bottom: 20%;
    right: 20%;
    animation-delay: -15s;
}

.shape-5 {
    width: 140px;
    height: 140px;
    background: var(--gradient-primary);
    top: 50%;
    left: 50%;
    animation-delay: -7s;
}

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

/* Navigation */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: all 0.3s ease;
    backdrop-filter: blur(20px);
    background: rgba(242, 242, 247, 0.8);
}

.nav.scrolled {
    background: rgba(242, 242, 247, 0.95);
    box-shadow: var(--shadow-light);
}

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

.nav-logo .logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-menu {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-link {
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: var(--primary);
    transform: translateY(-2px);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: width 0.3s ease;
}

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

.cta-button {
    background: var(--gradient-primary);
    color: white !important;
    padding: 0.5rem 1.5rem;
    border-radius: 25px;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-light);
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-medium);
}

.cta-button::after {
    display: none;
}

/* Hamburger Menu */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 0.5rem;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--text-primary);
    margin: 3px 0;
    transition: 0.3s;
    border-radius: 2px;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    position: relative;
}

.hero-content {
    max-width: 1200px;
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-text {
    animation: slideInLeft 1s ease-out;
}

.hero-title {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.title-line {
    display: block;
    color: var(--text-secondary);
    font-weight: 400;
}

.title-highlight {
    display: block;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
}

.title-highlight::after {
    content: '|';
    color: var(--primary);
    animation: blink 1s infinite;
}

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

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.hero-tags {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.tag {
    background: rgba(0, 122, 255, 0.1);
    color: var(--primary);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    border: 1px solid rgba(0, 122, 255, 0.2);
    transition: all 0.3s ease;
}

.tag:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-light);
}

.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
    animation: slideInRight 1s ease-out;
}

.phone-mockup {
    width: 250px;
    height: 500px;
    background: linear-gradient(145deg, #ffffff, #f0f0f0);
    border-radius: 30px;
    padding: 20px;
    box-shadow: var(--shadow-heavy);
    position: relative;
    transform: perspective(1000px) rotateY(-5deg);
    transition: all 0.3s ease;
}

.phone-mockup:hover {
    transform: perspective(1000px) rotateY(0deg) scale(1.05);
}

.phone-screen {
    width: 100%;
    height: 100%;
    background: var(--dark);
    border-radius: 20px;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.app-icon {
    width: 80px;
    height: 80px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: white;
    margin-bottom: 2rem;
    animation: pulse 2s infinite;
}

.apple-icon {
    background: var(--gradient-primary);
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.notification-bar {
    position: absolute;
    top: 20px;
    left: 20px;
    right: 20px;
}

.notification {
    background: rgba(0, 122, 255, 0.9);
    color: white;
    padding: 0.5rem;
    border-radius: 10px;
    font-size: 0.8rem;
    text-align: center;
    transform: translateY(-100%);
    transition: transform 0.5s ease;
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
}

.scroll-arrow {
    width: 2px;
    height: 30px;
    background: var(--primary);
    position: relative;
}

.scroll-arrow::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: -5px;
    width: 12px;
    height: 12px;
    border-right: 2px solid var(--primary);
    border-bottom: 2px solid var(--primary);
    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); }
}

/* Animations */
@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

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

/* Sections */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

section {
    padding: 5rem 0;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

section.animate-in {
    opacity: 1;
    transform: translateY(0);
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    margin-bottom: 1rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

/* About Section */
.about {
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(20px);
}

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

.about-card {
    background: rgba(255, 255, 255, 0.8);
    padding: 2rem;
    border-radius: 20px;
    text-align: center;
    box-shadow: var(--shadow-light);
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(20px);
    opacity: 0;
    transform: translateY(30px);
}

.about-card.animate-in {
    opacity: 1;
    transform: translateY(0);
}

.about-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-medium);
}

.card-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 1.5rem;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
}

.tech-card .card-icon {
    background: var(--gradient-primary);
}

.consumer-card .card-icon {
    background: var(--gradient-secondary);
}

.dev-card .card-icon {
    background: var(--gradient-accent);
}

.about-card h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

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

/* Insights Section */
.insights {
    padding: 5rem 0;
}

.tips-container {
    max-width: 800px;
    margin: 0 auto;
}

.tip-card {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 20px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadow-light);
    display: flex;
    gap: 1.5rem;
    transition: all 0.3s ease;
    border-left: 4px solid var(--primary);
    opacity: 0;
    transform: translateX(-30px);
}

.tip-card.animate-in {
    opacity: 1;
    transform: translateX(0);
}

.tip-card:hover {
    transform: translateX(10px);
    box-shadow: var(--shadow-medium);
}

.tip-icon {
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    background: var(--gradient-primary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
}

.tip-content h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.tip-content p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.tip-highlight {
    display: inline-block;
    background: rgba(50, 215, 75, 0.1);
    color: var(--accent);
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.9rem;
    font-weight: 500;
}

/* Beyond Code Section */
.beyond {
    background: rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(20px);
}

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

.interest-card {
    background: rgba(255, 255, 255, 0.8);
    padding: 1.5rem;
    border-radius: 15px;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-light);
    opacity: 0;
    transform: scale(0.9);
}

.interest-card.animate-in {
    opacity: 1;
    transform: scale(1);
}

.interest-card:hover {
    transform: scale(1.05) translateY(-5px);
    box-shadow: var(--shadow-medium);
}

.interest-icon {
    width: 50px;
    height: 50px;
    margin: 0 auto 1rem;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    color: white;
    transition: all 0.3s ease;
}

.gaming .interest-icon {
    background: var(--gradient-primary);
}

.language .interest-icon {
    background: var(--gradient-secondary);
}

.fitness .interest-icon {
    background: var(--gradient-accent);
}

.apple .interest-icon {
    background: linear-gradient(135deg, var(--text-primary) 0%, var(--text-secondary) 100%);
}

.interest-card h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.interest-card p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.5;
}

/* Connect Section */
.connect {
    background: var(--gradient-primary);
    color: white;
    text-align: center;
}

.connect-content {
    max-width: 600px;
    margin: 0 auto;
}

.connect-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    margin-bottom: 1rem;
}

.connect-subtitle {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.connect-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.15);
    color: white;
    text-decoration: none;
    padding: 1rem 2rem;
    border-radius: 30px;
    font-weight: 600;
    transition: all 0.3s ease;
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.connect-button:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.connect-button i {
    font-size: 1.2rem;
}

/* Footer */
.footer {
    background: var(--dark);
    color: white;
    padding: 2rem 0;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-info p {
    opacity: 0.7;
}

.footer-social a {
    color: white;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

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

/* Responsive Design */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background: rgba(242, 242, 247, 0.95);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: var(--shadow-light);
        backdrop-filter: blur(20px);
        padding: 2rem 0;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-menu .nav-link {
        padding: 1rem 0;
        display: block;
        width: 100%;
    }

    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }

    .hero-visual {
        order: -1;
    }

    .phone-mockup {
        width: 200px;
        height: 400px;
        transform: none;
    }

    .about-grid {
        grid-template-columns: 1fr;
    }

    .interests-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }

    .tip-card {
        flex-direction: column;
        text-align: center;
    }

    .footer-content {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .nav-container {
        padding: 1rem;
    }

    .container {
        padding: 0 1rem;
    }

    section {
        padding: 3rem 0;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 1rem;
        min-height: 90vh;
    }

    .hero-tags {
        justify-content: center;
    }

    .tag {
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
    }

    .phone-mockup {
        width: 180px;
        height: 360px;
    }

    .section-header {
        margin-bottom: 2rem;
    }

    .about-card,
    .tip-card,
    .interest-card {
        padding: 1.5rem;
    }

    .connect-button {
        padding: 0.8rem 1.5rem;
        font-size: 0.9rem;
    }
}

/* High-performance animations */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    :root {
        --light: #1C1C1E;
        --dark: #F2F2F7;
        --text-primary: #FFFFFF;
        --text-secondary: #8E8E93;
    }

    .bg-animation {
        background: linear-gradient(135deg, #1C1C1E 0%, #2C2C2E 50%, #1C1C1E 100%);
    }

    .nav {
        background: rgba(28, 28, 30, 0.8);
    }

    .nav.scrolled {
        background: rgba(28, 28, 30, 0.95);
    }

    .about-card,
    .tip-card,
    .interest-card {
        background: rgba(44, 44, 46, 0.8);
    }

    .phone-mockup {
        background: linear-gradient(145deg, #2C2C2E, #1C1C1E);
    }
}

/* Print styles */
@media print {
    .nav,
    .bg-animation,
    .hero-visual,
    .connect,
    .footer {
        display: none !important;
    }

    body {
        background: white !important;
        color: black !important;
    }

    section {
        page-break-inside: avoid;
        opacity: 1 !important;
        transform: none !important;
    }
}
