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

/* Scroll Reveal Animation */
.scroll-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.6;
    color: #1A1A1A;
    scroll-behavior: smooth;
}

/* Side Navigation */
.side-nav {
    position: fixed;
    right: 2rem;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.nav-dot {
    position: relative;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #CBD5E1;
    border: 2px solid transparent;
    transition: all 0.3s;
    cursor: pointer;
}

.nav-dot:hover,
.nav-dot.active {
    background: #2563EB;
    transform: scale(1.2);
}

.nav-label {
    position: absolute;
    right: 25px;
    top: 50%;
    transform: translateY(-50%);
    background: #1A1A1A;
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 0.25rem;
    font-size: 0.875rem;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
}

.nav-dot:hover .nav-label {
    opacity: 1;
}

@media (max-width: 768px) {
    .side-nav {
        right: 1rem;
    }
    
    .nav-label {
        display: none;
    }
}

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

section {
    padding: 5rem 1rem;
}

h1 { font-size: 3rem; }
h2 { font-size: 2.5rem; text-align: center; margin-bottom: 3rem; }
h3 { font-size: 1.25rem; margin-bottom: 0.5rem; }

/* Hero */
#hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #FFFFFF 0%, #F8F8F8 50%, #F0F0F0 100%);
    text-align: center;
}

#hero h1 { margin-bottom: 1rem; }
#hero h2 { font-size: 1.5rem; color: #4A4A4A; margin-bottom: 1.5rem; }
#hero p { font-size: 1.125rem; color: #5A5A5A; max-width: 42rem; margin: 0 auto 2rem; }

.highlight { color: #1A1A1A; }

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

/* Buttons */
.btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 0.375rem;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-block;
}

.btn-primary {
    background: #1A1A1A;
    color: white;
}

.btn-primary:hover { background: #2D2D2D; }

.btn-outline {
    background: transparent;
    border: 1px solid #D0D0D0;
    color: #1A1A1A;
}

.btn-outline:hover { background: #F8F8F8; }

.btn-small, .btn-primary-small {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

.btn-primary-small {
    background: #1A1A1A;
    color: white;
}

.btn-primary-small:hover { background: #2D2D2D; }

/* Social Icons */
.social-icons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin: 2rem 0;
}

.social-icons a {
    color: #6A6A6A;
    transition: color 0.3s;
}

.social-icons a:hover {
    color: #1A1A1A;
}

/* Scroll Arrow */
.scroll-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    border: none;
    background: transparent;
    color: #9A9A9A;
    cursor: pointer;
    transition: all 0.3s;
    animation: bounce 2s infinite;
}

.scroll-arrow:hover {
    color: #4A4A4A;
    animation: none;
}

.scroll-arrow svg {
    transition: transform 0.3s;
}

.scroll-arrow:hover svg {
    transform: translateY(2px);
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

/* About */
#about { background: #FFFFFF; }

.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.card {
    background: #FFFFFF;
    border: 1px solid #E0E0E0;
    border-radius: 0.5rem;
    padding: 1.5rem;
    text-align: center;
    transition: box-shadow 0.3s;
}

.card:hover { box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1); }
.card p { color: #5A5A5A; }

.about-text {
    max-width: 48rem;
    margin: 0 auto;
    text-align: center;
}

.about-text p {
    font-size: 1.125rem;
    margin-bottom: 1rem;
}

/* Skills */
#skills { background: #FAFAFA; }

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

.tab {
    padding: 0.75rem 1.5rem;
    background: #FFFFFF;
    border: 1px solid #E0E0E0;
    border-radius: 0.375rem;
    cursor: pointer;
    transition: all 0.3s;
}

.tab.active {
    background: #1A1A1A;
    color: white;
}

.tab-content { display: none; }
.tab-content.active { display: block; }

.note {
    background: #F5F5F5;
    border: 1px solid #D0D0D0;
    border-radius: 0.5rem;
    padding: 1rem;
    margin-bottom: 1.5rem;
    color: #2A2A2A;
    font-size: 0.875rem;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 1rem;
    margin-bottom: 3rem;
}

.skill {
    background: #FFFFFF;
    border: 1px solid #E0E0E0;
    border-radius: 0.5rem;
    padding: 1rem;
    text-align: center;
    transition: box-shadow 0.3s;
}

.skill:hover { box-shadow: 0 1px 3px rgba(0,0,0,0.1); }

#skills h3 {
    text-align: center;
    font-size: 1.5rem;
    margin: 2rem 0 1.5rem;
}

.badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
}

.badges span {
    padding: 0.5rem 1rem;
    background: #FFFFFF;
    border: 1px solid #E0E0E0;
    border-radius: 0.375rem;
    font-size: 0.875rem;
}

/* Projects */
#projects { background: #FFFFFF; }

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.5rem;
}

.project {
    background: #FFFFFF;
    border: 1px solid #E0E0E0;
    border-radius: 0.5rem;
    overflow: hidden;
    transition: box-shadow 0.3s;
    position: relative;
}

.project:hover { box-shadow: 0 20px 25px -5px rgba(0,0,0,0.1); }

.project img {
    width: 100%;
    height: 12rem;
    object-fit: cover;
}

.project .badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    padding: 0.25rem 0.75rem;
    border-radius: 0.25rem;
    font-size: 0.75rem;
    color: white;
}

.badge.dev { background: #2563EB; }
.badge.qa { background: #64748B; }
.badge.design { background: #8B5CF6; }

.project h3, .project p { padding: 0 1.5rem; }
.project h3 { padding-top: 1.5rem; }
.project p { color: #5A5A5A; margin-bottom: 1rem; }

.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding: 0 1.5rem;
    margin-bottom: 1rem;
}

.tags span {
    padding: 0.25rem 0.75rem;
    border: 1px solid #E2E8F0;
    border-radius: 0.25rem;
    font-size: 0.75rem;
}

.links {
    display: flex;
    gap: 0.5rem;
    padding: 0 1.5rem 1.5rem;
}

.links .btn { flex: 1; text-align: center; }

/* Contact */
#contact { background: #FAFAFA; }

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.contact-grid > div:first-child p {
    font-size: 1.125rem;
    margin-bottom: 2rem;
}

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

.contact-info h3 { margin-bottom: 0.25rem; }

.contact-info a {
    color: #4A4A4A;
    text-decoration: none;
}

.contact-info a:hover { color: #1A1A1A; }
.contact-info p { color: #5A5A5A; }

.contact-placeholder {
    background: #FFFFFF;
    border: 1px solid #E0E0E0;
    border-radius: 0.5rem;
    padding: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.placeholder-content h3 {
    margin-bottom: 1rem;
    color: #1A1A1A;
}

.placeholder-content p {
    color: #5A5A5A;
    line-height: 1.6;
}

textarea { resize: vertical; }

/* Footer */
footer {
    background: #000;
    color: white;
    padding: 3rem 1rem;
}

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

.footer-grid h3 { margin-bottom: 1rem; }
.footer-grid p, .footer-grid a { color: #94A3B8; }
.footer-grid a {
    text-decoration: none;
    display: block;
    margin-bottom: 0.5rem;
}

.footer-grid a:hover { color: white; }

.social {
    display: flex;
    gap: 1rem;
}

.copyright {
    border-top: 1px solid #334155;
    padding-top: 2rem;
    text-align: center;
    color: #94A3B8;
}

/* Responsive */
@media (max-width: 768px) {
    h1 { font-size: 2rem; }
    h2 { font-size: 2rem; }
    #hero h2 { font-size: 1.25rem; }
    .hero-buttons { flex-direction: column; }
    .contact-grid { grid-template-columns: 1fr; }
    .skills-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
}
