:root {
    --primary-color: #FF6B2B;
    --secondary-color: #2B7FFF;
    --accent-color: #FFB800;
    --background-color: #FAFAFA;
    --card-background: #FFFFFF;
    --text-color: #2D2D2D;
    --text-light: #6B6B6B;
    --section-padding: 80px 0;
    --border-radius: 16px;
    --shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--background-color);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Typography */
h1, h2, h3 {
    font-weight: 700;
    line-height: 1.2;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 2.5rem;
    text-align: center;
}

/* Navigation */
nav {
    background-color: rgba(255, 255, 255, 0.95);
    padding: 1rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

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

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

nav ul {
    display: flex;
    list-style: none;
    gap: 2.5rem;
    align-items: center;
}

nav a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

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

.cta-button {
    background: var(--primary-color);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: var(--border-radius);
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.cta-button:hover {
    color: white;
    transform: translateY(-2px);
    background: #ff5715;
}

/* Hero Section */
#hero {
    padding: 160px 0 80px;
    background-color: var(--card-background);
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: fadeIn 0.8s ease-out;
}

.hero-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: var(--text-color);
    animation: slideUp 0.8s ease-out;
}

.hero-description {
    font-size: 1.25rem;
    color: var(--text-light);
    margin-bottom: 2.5rem;
    max-width: 600px;
}

.metrics {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 2.5rem;
}

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

.metric-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.metric-label {
    color: var(--text-light);
    font-size: 0.875rem;
}

.cta-group {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.primary-button, .secondary-button {
    padding: 1rem 2rem;
    border-radius: var(--border-radius);
    font-weight: 600;
    text-decoration: none;
    transition: transform 0.3s ease, background-color 0.3s ease;
}

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

.primary-button:hover {
    background: #ff5715;
    transform: translateY(-2px);
}

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

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

.contact-card {
    background: var(--card-background);
    padding: 2.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-info a {
    color: var(--text-color);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 1rem;
    font-weight: 500;
    transition: color 0.3s ease;
}

.contact-info a:hover {
    color: var(--primary-color);
}

/* Skills Section */
#skills {
    padding: var(--section-padding);
}

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

.skill-category {
    background: var(--card-background);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.skill-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.skill-header i {
    font-size: 1.5rem;
    color: var(--primary-color);
}

.skill-category h3 {
    color: var(--text-color);
    font-size: 1.25rem;
}

.skill-category ul {
    list-style: none;
}

.skill-category li {
    margin-bottom: 0.75rem;
    padding-left: 1.5rem;
    position: relative;
}

.skill-category li::before {
    content: "•";
    color: var(--primary-color);
    position: absolute;
    left: 0;
    font-weight: bold;
}

/* Experience Section */
#experience {
    padding: var(--section-padding);
    background-color: var(--card-background);
}

.experience-timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.experience-timeline::before {
    content: '';
    position: absolute;
    left: -1px;
    top: 0;
    height: 100%;
    width: 2px;
    background: linear-gradient(to bottom, var(--primary-color), var(--secondary-color));
    opacity: 0.3;
}

.experience-item {
    margin-bottom: 3rem;
    padding: 2rem;
    background: var(--card-background);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    border-left: 4px solid var(--primary-color);
    transition: transform 0.3s ease;
}

.experience-item:hover {
    transform: translateX(10px);
}

.experience-header {
    margin-bottom: 1.5rem;
}

.experience-header h3 {
    color: var(--text-color);
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.company {
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 0.25rem;
}

.period, .location {
    color: var(--text-light);
    font-size: 0.875rem;
}

.experience-item ul {
    list-style: none;
    padding-left: 1.5rem;
}

.experience-item li {
    margin-bottom: 0.75rem;
    position: relative;
}

.experience-item li::before {
    content: "→";
    color: var(--primary-color);
    position: absolute;
    left: -1.5rem;
    font-weight: bold;
}

/* Education Section */
#education {
    padding: var(--section-padding);
}

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

.education-item, .certification-item {
    background: var(--card-background);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.education-item h3, .certification-item h3 {
    color: var(--text-color);
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

.degree, .institution {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.period, .achievement {
    color: var(--text-light);
    font-size: 0.875rem;
}

.certification-item .achievement {
    color: var(--text-color);
    font-weight: 500;
    margin-top: 0.5rem;
}

/* Footer */
footer {
    background-color: var(--card-background);
    color: var(--text-light);
    padding: 2rem 0;
    text-align: center;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

footer p {
    font-size: 0.9rem;
}

footer i {
    color: #ff6b7b;
    margin: 0 0.3rem;
}

/* Profile Section */
.profile-section {
    background: var(--card-background);
    padding: 2.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    gap: 2rem;
    align-items: center;
}

.profile-image-container {
    width: 280px;
    height: 280px;
    border-radius: 20px;
    overflow: hidden;
    background: #f5f5f5;
    position: relative;
}

.profile-image {
    max-width: 100%;
    max-height: 100%;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 30%;
    display: block;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    width: 100%;
}

.contact-info a {
    color: var(--text-color);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 1rem;
    font-weight: 500;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.03);
    transition: all 0.3s ease;
}

.contact-info a:hover {
    color: var(--primary-color);
    background: rgba(255, 107, 43, 0.1);
    transform: translateX(5px);
}

.contact-info i {
    font-size: 1.2rem;
    color: var(--primary-color);
    width: 20px;
    text-align: center;
}

/* Responsive Design */
@media (max-width: 968px) {
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

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

    .hero-content h1 {
        font-size: 3rem;
    }

    .hero-content h2 {
        font-size: 2rem;
    }

    .metrics {
        grid-template-columns: repeat(2, 1fr);
        justify-content: center;
    }

    .cta-group {
        justify-content: center;
    }

    .profile-section {
        max-width: 400px;
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    nav ul {
        display: none;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .metrics {
        grid-template-columns: 1fr;
    }
    
    .cta-group {
        flex-direction: column;
    }
    
    .primary-button, .secondary-button {
        width: 100%;
        text-align: center;
    }

    .profile-image-container {
        width: 240px;
        height: 240px;
    }

    .experience-timeline::before {
        display: none;
    }
    
    .experience-item:hover {
        transform: none;
    }
    
    .education-grid {
        grid-template-columns: 1fr;
    }
}

/* About Section */
#about {
    padding-top: 120px;
}

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

.about-card {
    background: var(--card-background);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    transition: transform 0.3s ease;
}

.about-card:hover {
    transform: translateY(-5px);
}

.about-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
}

.about-header i {
    font-size: 1.5rem;
}

.about-header h3 {
    color: var(--text-color);
    font-size: 1.25rem;
    margin: 0;
}

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

.about-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.about-card li {
    color: var(--text-light);
    margin-bottom: 0.75rem;
    padding-left: 1.5rem;
    position: relative;
}

.about-card li::before {
    content: "•";
    color: var(--primary-color);
    position: absolute;
    left: 0;
    font-weight: bold;
}

/* Community Section */
.community-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.community-card {
    background: var(--card-background);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.community-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.community-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
}

.community-content {
    text-align: left;
}

.community-content ul {
    list-style: none;
    margin-bottom: 1.5rem;
}

.community-content li {
    margin-bottom: 0.75rem;
    padding-left: 1.5rem;
    position: relative;
    color: var(--text-light);
}

.community-content li::before {
    content: "→";
    color: var(--primary-color);
    position: absolute;
    left: 0;
    opacity: 0.8;
}

.community-members {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--text-light);
    padding-top: 1rem;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.community-members i {
    color: var(--primary-color);
    font-size: 1.2rem;
}

.community-members span {
    font-weight: 500;
}

/* Download Button */
.download-button {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    border-radius: var(--border-radius);
    font-weight: 600;
    text-decoration: none;
    background: var(--accent-color);
    color: var(--text-color);
    transition: all 0.3s ease;
}

.download-button:hover {
    transform: translateY(-2px);
    background: #ffc526;
}

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

/* Responsive adjustments */
@media (max-width: 768px) {
    .cta-group {
        flex-direction: column;
    }
    
    .download-button {
        width: 100%;
        justify-content: center;
    }
}

.community-stats {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: space-around;
    gap: 2rem;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    text-align: center;
}

.stat-icon {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.stat-number {
    font-size: 1.75rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1;
}

.stat-label {
    color: var(--text-light);
    font-size: 0.9rem;
    max-width: 120px;
}

@media (max-width: 768px) {
    .community-stats {
        flex-direction: column;
        gap: 1.5rem;
        align-items: center;
    }
    
    .stat-item {
        width: 100%;
        max-width: 200px;
    }
}

.wwcode-illustration {
    text-align: center;
    margin: 20px 0;
    padding: 20px;
    background: rgba(255, 107, 43, 0.05);
    border-radius: 8px;
}

.icon-group {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-bottom: 15px;
}

.icon-left, .icon-right {
    font-size: 24px;
    color: var(--primary-color);
}

.icon-middle {
    font-size: 20px;
    color: var(--secondary-color);
}

.illustration-caption {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: var(--text-light);
    font-size: 14px;
}

.illustration-caption i {
    color: #ff6b7b;
}

/* Life Beyond Code Section */
#life-beyond-code {
    padding: var(--section-padding);
    background: var(--background-color);
}

.interests-showcase {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 2rem;
}

.interest-card {
    position: relative;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    aspect-ratio: 4/3;
    cursor: pointer;
}

.interest-image {
    width: 100%;
    height: 100%;
    position: relative;
}

.interest-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.interest-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to top,
        rgba(0, 0, 0, 0.8) 0%,
        rgba(0, 0, 0, 0.4) 50%,
        rgba(0, 0, 0, 0.1) 100%
    );
    color: white;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.interest-card:hover .interest-overlay {
    opacity: 1;
}

.interest-card:hover .interest-image img {
    transform: scale(1.1);
}

.interest-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.interest-overlay h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: white;
}

.interest-overlay p {
    font-size: 0.9rem;
    line-height: 1.4;
    opacity: 0.9;
}

@media (max-width: 1024px) {
    .interests-showcase {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .interests-showcase {
        grid-template-columns: 1fr;
    }
    
    .interest-overlay {
        opacity: 1;
        background: linear-gradient(
            to top,
            rgba(0, 0, 0, 0.8) 0%,
            rgba(0, 0, 0, 0.4) 60%,
            rgba(0, 0, 0, 0.1) 100%
        );
    }
}

/* Playful iOS Elements */
.floating-elements {
    position: fixed;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

.floating-icon {
    position: absolute;
    font-size: 1.5rem;
    color: var(--primary-color);
    opacity: 0.1;
    animation: float 15s infinite linear;
}

.swift-icon {
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.apple-icon {
    top: 60%;
    right: 15%;
    animation-delay: 5s;
}

.xcode-icon {
    top: 40%;
    right: 30%;
    animation-delay: 10s;
}

/* Typing Effect */
.typing-container h1 {
    border-right: 3px solid var(--primary-color);
    white-space: nowrap;
    overflow: hidden;
    animation: typing 3.5s steps(30, end), blink-caret 0.75s step-end infinite;
}

/* Tooltips */
[data-tooltip] {
    position: relative;
}

[data-tooltip]:before {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(-10px);
    padding: 0.5rem 1rem;
    background: var(--card-background);
    color: var(--text-color);
    font-size: 0.875rem;
    border-radius: 8px;
    box-shadow: var(--shadow);
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s ease;
    white-space: nowrap;
}

[data-tooltip]:hover:before {
    opacity: 1;
    transform: translateX(-50%) translateY(-5px);
}

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

@keyframes typing {
    from { width: 0 }
    to { width: 100% }
}

@keyframes blink-caret {
    from, to { border-color: transparent }
    50% { border-color: var(--primary-color) }
}

/* Enhanced Button Styles */
.primary-button, .secondary-button {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transform-origin: center;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.primary-button:hover, .secondary-button:hover {
    transform: scale(1.05);
}

.primary-button i, .secondary-button i {
    transition: transform 0.3s ease;
}

.primary-button:hover i {
    transform: translateX(3px);
}

/* Update existing styles */
.nav-link {
    position: relative;
    transition: color 0.3s ease;
}

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

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

.community-gif {
    margin-top: 1.5rem;
    text-align: center;
}

.community-animation {
    font-family: monospace;
    white-space: pre;
    text-align: center;
    margin: 20px 0;
    padding: 15px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    overflow: hidden;
}

.ascii-animation {
    display: block;
    font-size: 12px;
    line-height: 1.2;
    margin: 0;
    animation: frameSwitch 6s infinite;
}

@keyframes frameSwitch {
    0%, 32% {
        transform: translateY(0);
    }
    33%, 65% {
        transform: translateY(-33.33%);
    }
    66%, 100% {
        transform: translateY(-66.66%);
    }
} 