/* Universal reset for margins and paddings */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #1d1d1f;
    background: #fbfbfd;
    scroll-behavior: smooth;
    overflow-x: hidden;
}

/* Navigation */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(251, 251, 253, 0);
    backdrop-filter: blur(0px);
    -webkit-backdrop-filter: blur(0px);
    z-index: 1000;
    padding: 1rem 0;
    opacity: 0;
    visibility: hidden;
    transition: all 0.5s ease;
}

nav.visible {
    opacity: 1;
    visibility: visible;
    background: rgba(251, 251, 253, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

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

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1d1d1f;
    text-decoration: none;
    background: linear-gradient(135deg, #1d1d1f 0%, #ff00a2 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    transition: all 0.3s ease;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
    transition: all 0.3s ease;
}

.nav-links a {
    text-decoration: none;
    color: #1d1d1f;
    font-weight: 400;
    transition: color 0.3s ease;
    position: relative;
}

.nav-links a:hover {
    color: #ff00a2;
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 50%;
    background: #ff00a2;
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

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

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: linear-gradient(135deg, #fbfbfd 0%, #f5f5f7 100%);
    position: relative;
    overflow: hidden;
    width: 100vw;
}

.hero::before {
    content: '';
    position: absolute;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(0, 122, 255, 0.03) 0%, transparent 70%);
    animation: float 20s ease-in-out infinite;
}

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

.hero-content {
    position: relative;
    z-index: 2;
    animation: fadeInUp 1s ease-out;
    max-width: 90%;
    padding: 0 1rem;
}

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

.hero h1 {
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 700;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #1d1d1f 0%, #ff00a2 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: slideIn 1.2s ease-out 0.3s both;
}

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

.hero p {
    font-size: 1.3rem;
    color: #86868b;
    max-width: 600px;
    margin: 0 auto 2rem;
    animation: slideIn 1.2s ease-out 0.6s both;
}

.cta-button {
    display: inline-block;
    padding: 1rem 2rem;
    background: #ff00a2;
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 500;
    transition: all 0.3s ease;
    animation: slideIn 1.2s ease-out 0.9s both;
    box-shadow: 0 10px 30px rgba(255,0,162, 0.2);
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(255,0,162, 0.5);
}

/* Sections */
section {
    padding: 5rem 0;
    background: #fbfbfd;
}

.section-content-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 3rem;
    color: #1d1d1f;
}

/* Projects Section */
.projects-carousel {
    width: 100vw;
    position: relative;
    overflow: hidden;
    margin-bottom: 3rem;
    background: #fbfbfd;
}

.carousel-container {
    display: flex;
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    gap: 2rem;
    width: max-content;
    padding: 0 2rem;
}

.project-card {
    background: white;
    border-radius: 24px;
    padding: 3rem 2rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    overflow: hidden;
    max-width: 380px;
    max-height: 600px;
    text-align: center;
    cursor: pointer;
}

.project-icon {
    width: 120px;
    height: 120px;
    border-radius: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 2rem;
    color: white;
    font-size: 3rem;
    font-weight: 600;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.project-icon::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 30px;
    opacity: 0.9;
    transition: opacity 0.3s ease;
}

.project-card:hover .project-icon {
    transform: scale(1.1) rotate(-5deg);
}

.project-card:hover .project-icon::before {
    opacity: 1;
}

/* Individual project icon gradients */
.project-icon.ods {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.project-icon.traffic {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.project-icon.spotify {
    background: linear-gradient(135deg, #1db10d 0%, #1ED760 100%);
}

.project-icon.archive {
    background: linear-gradient(135deg, #B4000F 0%, #1C2D41 100%);
}

.project-icon.litematic {
    background: linear-gradient(135deg, #fbfbfb 0%, #eff30a 100%);
}

.project-icon.sailing {
    background: linear-gradient(135deg, #0aecf8 0%, #2615e5 100%);
}

.project-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #1d1d1f;
}

.project-card p {
    color: #86868b;
    margin-bottom: 2rem;
    line-height: 1.6;
    font-size: 1rem;
}

.project-link {
    color: #ff00a2;
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    font-size: 1.1rem;
}

.project-link:hover {
    transform: translateX(5px);
    color: #d70189;
}

/* Carousel Navigation */
.carousel-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-top: 2rem;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 2rem;
}

.carousel-btn {
    background: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    color: #ff00a2;
    font-size: 1.2rem;
    font-weight: bold;
}

.carousel-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
    background: #ff00a2;
    color: white;
}

.carousel-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
    transform: none;
}

.carousel-btn:disabled:hover {
    background: white;
    color: #ff00a2;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.carousel-dots {
    display: flex;
    gap: 0.5rem;
}

.carousel-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #d1d1d6;
    cursor: pointer;
    transition: all 0.3s ease;
}

.carousel-dot.active {
    background: #ff00a2;
    transform: scale(1.2);
}

.carousel-dot:hover {
    background: #ff00a2;
    opacity: 0.7;
}

/* About Section */
.about {
    background: white;
    border-radius: 30px;
    padding: 3rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.about-avatar {
    width: 120px;
    height: 120px;
    background: linear-gradient(135deg, #007AFF, #5856D6);
    border-radius: 50%;
    margin: 0 auto 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 3rem;
    font-weight: bold;
}
.about-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}
.about h2 {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #1d1d1f;
}

.about p {
    color: #86868b;
    max-width: 600px;
    margin: 0 auto;
    font-size: 1.1rem;
}

/* Footer */
footer {
    background: #1d1d1f;
    color: white;
    text-align: center;
    padding: 3rem 0;
    margin-top: 5rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2rem;
}

.social-links a {
    color: #86868b;
    text-decoration: none;
    font-size: 1.5rem;
    transition: color 0.3s ease;
}

.social-links a:hover {
    color: white;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

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

    .hero p {
        font-size: 1.1rem;
    }

    .section-content-wrapper {
        padding: 0 1rem;
    }

    .projects-carousel {
        padding: 0 1rem;
    }

    .project-card {
        min-width: 280px;
    }

    .about {
        padding: 2rem;
    }
}

/* Scroll animations */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}