:root {
    --ios-blue: #007aff;
    --ios-gray: #f2f2f7;
    --ios-dark: #1c1c1e;
    --ios-card-light: #ffffff;
    --ios-card-dark: #2c2c2e;
    --text-primary: #1c1c1e;
    --text-secondary: #636366;
    --text-tertiary: #aeaeb2;
}

@font-face {
    font-family: "SF Pro Display";
    src: url("https://applesocial.s3.amazonaws.com/assets/styles/fonts/sanfrancisco/sanfranciscodisplay-regular-webfont.woff2") format("woff2");
    font-weight: normal;
    font-style: normal;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "SF Pro Display", -apple-system, BlinkMacSystemFont,
        sans-serif;
}

body {
    background-color: var(--ios-gray);
    color: var(--text-primary);
    transition: background-color 0.5s ease;
    overflow-x: hidden;
}

body.dark-mode {
    background-color: var(--ios-dark);
    color: white;
}

body.dark-mode .app-card {
    background-color: var(--ios-card-dark);
}

body.dark-mode .section-title {
    color: white;
}

body.dark-mode .text-secondary {
    color: #d1d1d6;
}

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

/* Header */
.header {
    padding: 60px 0 40px;
    text-align: center;
    position: relative;
}

.profile-image {
    width: 120px;
    height: 120px;
    border-radius: 28px;
    object-fit: cover;
    margin-bottom: 20px;
    border: 4px solid white;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

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

.name {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 8px;
    background: linear-gradient(90deg, #007aff, #34c759);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.title {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 20px;
    font-weight: 500;
}

.contact-badges {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 20px;
}

.badge {
    display: inline-flex;
    align-items: center;
    padding: 8px 16px;
    background-color: rgba(0, 122, 255, 0.1);
    border-radius: 50px;
    color: var(--ios-blue);
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.badge:hover {
    background-color: rgba(0, 122, 255, 0.2);
    transform: translateY(-2px);
}

.badge i {
    margin-right: 6px;
}

.download-cv {
    margin-top: 25px;
    display: inline-block;
    padding: 12px 24px;
    background-color: var(--ios-blue);
    color: white;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 500;
    box-shadow: 0 4px 20px rgba(0, 122, 255, 0.3);
    transition: all 0.3s ease;
}

.download-cv:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(0, 122, 255, 0.4);
}

/* Dark Mode Toggle */
.dark-mode-toggle {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 100;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--ios-card-light);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border: none;
    transition: all 0.3s ease;
}

body.dark-mode .dark-mode-toggle {
    background-color: var(--ios-card-dark);
}

.dark-mode-toggle:hover {
    transform: scale(1.1);
}

/* Sections */
.section {
    margin-bottom: 60px;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.section.visible {
    opacity: 1;
    transform: translateY(0);
}

.section-title {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 30px;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: "";
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 50px;
    height: 4px;
    background: linear-gradient(90deg, #007aff, #34c759);
    border-radius: 2px;
}

/* App Cards */
.app-card {
    background-color: var(--ios-card-light);
    border-radius: 18px;
    padding: 25px;
    margin-bottom: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    cursor: pointer;
    overflow: hidden;
    position: relative;
}

.app-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.app-card-header {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.app-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    background: linear-gradient(135deg, #007aff, #00c7ff);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    margin-right: 15px;
    flex-shrink: 0;
}

.app-title {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 3px;
}

.app-subtitle {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.app-description {
    color: var(--text-secondary);
    margin-bottom: 15px;
    line-height: 1.5;
}

.tech-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 15px;
}

.tech-badge {
    padding: 5px 12px;
    background-color: rgba(0, 122, 255, 0.1);
    border-radius: 50px;
    font-size: 0.8rem;
    color: var(--ios-blue);
}

body.dark-mode .tech-badge {
    background-color: rgba(0, 122, 255, 0.2);
}

/* Skills Grid */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

.skill-category {
    background-color: var(--ios-card-light);
    border-radius: 18px;
    padding: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

.skill-category:hover {
    transform: translateY(-5px);
}

body.dark-mode .skill-category {
    background-color: var(--ios-card-dark);
}

.skill-category-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
}

body.dark-mode .skill-category-title {
    color: white;
}

.skill-category-title i {
    margin-right: 10px;
    color: var(--ios-blue);
}

.skill-item {
    margin-bottom: 12px;
}

.skill-name {
    display: flex;
    justify-content: space-between;
    margin-bottom: 5px;
    font-size: 0.9rem;
}

body.dark-mode .skill-name {
    color: #E5E5EA;
}

.skill-bar {
    height: 6px;
    background-color: rgba(0, 122, 255, 0.1);
    border-radius: 3px;
    overflow: hidden;
}

body.dark-mode .skill-bar {
    background-color: rgba(255, 255, 255, 0.1);
}

.skill-progress {
    height: 100%;
    background: linear-gradient(90deg, #007AFF, #00C7FF);
    border-radius: 3px;
    transition: width 1s ease;
}

/* Timeline */
.timeline {
    position: relative;
    padding-left: 30px;
}

.timeline::before {
    content: "";
    position: absolute;
    top: 0;
    left: 10px;
    height: 100%;
    width: 2px;
    background-color: rgba(0, 122, 255, 0.2);
}

.timeline-item {
    position: relative;
    padding-bottom: 30px;
}

.timeline-item:last-child {
    padding-bottom: 0;
}

.timeline-dot {
    position: absolute;
    left: -30px;
    top: 5px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: linear-gradient(135deg, #007aff, #00c7ff);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.6rem;
}

.timeline-date {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 5px;
}

.timeline-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 5px;
}

.timeline-description {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* Footer */
.footer {
    text-align: center;
    padding: 40px 0;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 20px;
}

.footer-link {
    color: var(--ios-blue);
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-link:hover {
    text-decoration: underline;
}

/* Modal */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background-color: var(--ios-card-light);
    border-radius: 20px;
    width: 90%;
    max-width: 700px;
    max-height: 80vh;
    overflow-y: auto;
    padding: 30px;
    position: relative;
    transform: translateY(20px);
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

body.dark-mode .modal-content {
    background-color: var(--ios-card-dark);
}

.modal.active .modal-content {
    transform: translateY(0);
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background-color: rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border: none;
    transition: all 0.3s ease;
}

.modal-close:hover {
    background-color: rgba(0, 0, 0, 0.2);
}

.modal-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 15px;
}

.modal-subtitle {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.modal-image {
    width: 100%;
    border-radius: 12px;
    margin-bottom: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.modal-description {
    line-height: 1.6;
    margin-bottom: 20px;
    color: var(--text-secondary);
}

.modal-features {
    margin-bottom: 20px;
}

.modal-feature {
    display: flex;
    align-items: flex-start;
    margin-bottom: 10px;
}

.modal-feature i {
    color: var(--ios-blue);
    margin-right: 10px;
    margin-top: 3px;
}

/* Responsive */
@media (max-width: 768px) {
    .name {
        font-size: 2rem;
    }

    .title {
        font-size: 1rem;
    }

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

    .contact-badges {
        flex-wrap: wrap;
    }
}

/* Animations */
@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

.floating {
    animation: float 3s ease-in-out infinite;
}