/* Base Styles and Variables */
:root {
    --primary-color: #007AFF;
    --secondary-color: #5AC8FA;
    --accent-color: #FF2D55;
    --text-color: #1C1C1E;
    --light-text: #F2F2F7;
    --background: #FFFFFF;
    --section-bg: #F2F2F7;
    --card-bg: #FFFFFF;
    --header-height: 70px;
    --transition: all 0.3s ease;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    --card-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    --border-radius: 16px;
    --bottom-nav-height: 80px;
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'SF Pro Display', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    color: var(--text-color);
    background-color: var(--background);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    width: 100%;
    min-height: 100vh;
    position: relative;
    padding-bottom: var(--bottom-nav-height);
}

.content-wrapper {
    width: 100%;
    min-height: 100vh;
    padding-bottom: var(--bottom-nav-height);
}

section {
    padding: 100px 5%;
    position: relative;
}

/* iOS 26 Style Bottom Navigation Header */
.ios-header {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: var(--bottom-nav-height);
    z-index: 1000;
    transition: var(--transition);
}

.header-content {
    position: relative;
    height: 100%;
    z-index: 2;
    padding: 0 10px;
}

.header-blur {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    background-color: rgba(255, 255, 255, 0.8);
    border-top: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 -4px 30px rgba(0, 0, 0, 0.05);
    z-index: 1;
    transition: all 0.5s ease;
}

.ios-header nav ul {
    display: flex;
    justify-content: space-around;
    align-items: center;
    height: 100%;
}

.ios-header nav ul li {
    flex: 1;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 10px 0;
    transition: all 0.3s ease;
    position: relative;
    height: 100%;
}

.nav-item i {
    font-size: 1.5rem;
    margin-bottom: 5px;
    transition: all 0.3s ease;
}

.nav-item span {
    font-size: 0.8rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.nav-item::before {
    content: '';
    position: absolute;
    bottom: 0px;
    left: 50%;
    transform: translateX(-50%);
    width: 35px;
    height: 5px;
    border-radius: 50%;
    background-color: var(--primary-color);
    opacity: 0;
    transition: all 0.3s ease;
}

.nav-item.active::before,
.nav-item:hover::before {
    opacity: 1;
}

.nav-item.active i,
.nav-item:hover i {
    color: var(--primary-color);
    transform: translateY(-2px);
}

.nav-item.active span,
.nav-item:hover span {
    color: var(--primary-color);
}

/* Hero Section */
.hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 100vh;
    overflow: hidden;
    padding-top: 50px;
}

.hero-content {
    flex: 1;
    max-width: 600px;
}

.hero-animation {
    flex: 1;
    max-width: 500px;
    height: 500px;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 20px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    color: #636e72;
}

.highlight {
    color: var(--primary-color);
}

.cta-buttons {
    display: flex;
    gap: 15px;
}

.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 30px;
    font-weight: 600;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    font-size: 1rem;
    text-align: center;
}

.btn.small {
    padding: 8px 18px;
    font-size: 0.9rem;
}

.btn.primary {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    box-shadow: 0 4px 15px rgba(0, 122, 255, 0.4);
}

.btn.secondary {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn.primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 122, 255, 0.5);
}

.btn.secondary:hover {
    background: rgba(0, 122, 255, 0.1);
    transform: translateY(-3px);
}

/* About Section */
.about {
    background-color: var(--section-bg);
    border-radius: 30px 30px 0 0;
    margin-top: -30px;
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 60px;
    position: relative;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(to right, var(--primary-color), var(--accent-color));
    border-radius: 2px;
}

.about-content {
    display: flex;
    align-items: center;
    gap: 50px;
}

.about-text {
    flex: 1;
}

.about-text p {
    margin-bottom: 20px;
}

.about-image {
    flex: 1;
    display: flex;
    justify-content: center;
}

.image-container {
    width: 350px;
    height: 350px;
    border-radius: 50%;
    overflow: hidden;
    box-shadow: var(--shadow);
    border: 5px solid white;
    transition: var(--transition);
}

.image-container:hover {
    transform: scale(1.05);
}

.image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.image-container:hover img {
    transform: scale(1.1);
}

/* Skills */
.skills {
    margin-top: 30px;
}

.skill {
    margin-bottom: 20px;
}

.skill span {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.skill-bar {
    height: 10px;
    background-color: #e0e0e0;
    border-radius: 5px;
    overflow: hidden;
}

.skill-level {
    height: 100%;
    background: linear-gradient(to right, var(--primary-color), var(--accent-color));
    border-radius: 5px;
    position: relative;
    width: 0;
    transition: width 1.5s ease-in-out;
}

/* Projects Section */
.projects {
    background-color: var(--background);
    padding-top: 80px;
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
}

.project-card {
    background-color: var(--card-bg);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--card-shadow);
    transition: var(--transition);
    transform: translateY(0);
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.project-image {
    height: 200px;
    overflow: hidden;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.project-card:hover .project-image img {
    transform: scale(1.1);
}

.project-info {
    padding: 20px;
}

.project-info h3 {
    margin-bottom: 10px;
    font-size: 1.3rem;
    color: var(--primary-color);
}

.project-info p {
    color: #636e72;
    margin-bottom: 15px;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 15px;
}

.project-tags span {
    background-color: rgba(0, 122, 255, 0.1);
    color: var(--primary-color);
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

.project-links {
    display: flex;
    gap: 10px;
}

/* Contact Section */
.contact {
    background-color: var(--section-bg);
    border-radius: 30px 30px 0 0;
    margin-top: -30px;
}

.contact-container {
    display: flex;
    gap: 50px;
}

.contact-info,
.contact-form {
    flex: 1;
}

.contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 25px;
}

.contact-item i {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-right: 15px;
    width: 40px;
    height: 40px;
    background-color: rgba(0, 122, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 30px;
}

.social-icon {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background-color: var(--card-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--primary-color);
    box-shadow: var(--card-shadow);
    transition: var(--transition);
}

.social-icon:hover {
    transform: translateY(-5px);
    color: white;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
}

.form-group {
    margin-bottom: 20px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid #e0e0e0;
    border-radius: var(--border-radius);
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
}

.form-group textarea {
    height: 150px;
    resize: none;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 122, 255, 0.2);
}

/* Footer */
footer {
    background-color: var(--text-color);
    color: var(--light-text);
    padding: 30px 5%;
    text-align: center;
}

/* Animations */
.animate-text {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s forwards;
}

.delay-1 {
    animation-delay: 0.2s;
}

.delay-2 {
    animation-delay: 0.4s;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Scroll Animation for Sections */
.about, .projects, .contact {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.about.visible, .projects.visible, .contact.visible {
    opacity: 1;
    transform: translateY(0);
}

/* iOS 26 Animations */
@keyframes scaleIn {
    from {
        transform: scale(0.9);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes floatAnimation {
    0% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
    100% {
        transform: translateY(0);
    }
}

.project-card {
    animation: scaleIn 0.5s ease forwards;
    opacity: 0;
}

.project-card:nth-child(1) {
    animation-delay: 0.1s;
}

.project-card:nth-child(2) {
    animation-delay: 0.2s;
}

.project-card:nth-child(3) {
    animation-delay: 0.3s;
}

.hero-animation {
    animation: floatAnimation 6s ease-in-out infinite;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .hero {
        flex-direction: column;
        text-align: center;
        gap: 50px;
    }

    .hero-content {
        max-width: 100%;
    }

    .cta-buttons {
        justify-content: center;
    }

    .about-content {
        flex-direction: column-reverse;
        text-align: center;
    }

    .skills {
        max-width: 500px;
        margin: 30px auto 0;
    }

    .contact-container {
        flex-direction: column;
    }
}

@media (max-width: 768px) {
    html {
        font-size: 14px;
    }

    .project-grid {
        grid-template-columns: 1fr;
    }

    .image-container {
        width: 280px;
        height: 280px;
    }

    .nav-item span {
        font-size: 0.7rem;
    }
}

@media (max-width: 480px) {
    section {
        padding: 80px 5%;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .cta-buttons {
        flex-direction: column;
        gap: 15px;
    }

    .btn {
        width: 100%;
    }

    .project-links {
        flex-direction: column;
    }

    .ios-header nav ul li a i {
        font-size: 1.2rem;
    }

    .nav-item span {
        font-size: 0.6rem;
    }
}