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

:root {
    --primary-color: #000000;
    --secondary-color: #ffffff;
    --accent-color: #3b82f6;
    --light-bg: #1a1a1a;
    --border-color: #333333;
    --text-primary: #ffffff;
    --text-secondary: #b3b3b3;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: #000000;
}

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

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

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

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

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

/* Navigation */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    background-color: var(--primary-color);
    z-index: 100;
    animation: fadeIn 0.8s ease;
}

.logo {
    height: 35px;
    width: auto;
    cursor: pointer;
    transition: transform 0.3s ease;
    animation: pulse 2s ease-in-out infinite;
}

.logo img {
    height: 100%;
    width: auto;
    display: block;
}

.logo:hover {
    transform: scale(1.1);
}

.nav-links {
    display: flex;
    gap: 40px;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-primary);
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

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

.nav-links a:hover {
    color: var(--accent-color);
    transform: translateY(-2px);
}

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

/* Hero Section */
.hero {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 60vh;
    text-align: center;
    padding: 40px 0;
}

.hero-content h1 {
    font-size: 96px;
    font-weight: 900;
    margin-bottom: 20px;
    color: var(--secondary-color);
    letter-spacing: -3px;
    animation: fadeInUp 1s ease 0.2s both;
    line-height: 1;
}

.subtitle {
    font-size: 32px;
    color: var(--text-secondary);
    margin-bottom: 15px;
    font-weight: 700;
    animation: fadeInUp 1s ease 0.4s both;
    letter-spacing: 2px;
}

.tagline {
    font-size: 20px;
    color: var(--accent-color);
    font-weight: 500;
    animation: fadeInUp 1s ease 0.6s both;
    margin-bottom: 0;
}

.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 1s ease 0.8s both;
}

.btn {
    padding: 12px 32px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    display: inline-block;
}

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

.btn-primary:hover {
    background-color: #2563eb;
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(59, 130, 246, 0.4);
}

.btn-secondary {
    background-color: var(--light-bg);
    color: var(--accent-color);
    border: 2px solid var(--accent-color);
}

.btn-secondary:hover {
    background-color: var(--accent-color);
    color: white;
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 15px 30px rgba(59, 130, 246, 0.3);
}

/* Sections */
.section {
    padding: 80px 0;
    border-bottom: 1px solid var(--border-color);
}

.section h2 {
    font-size: 42px;
    margin-bottom: 50px;
    text-align: center;
    font-weight: 700;
    animation: fadeInUp 0.8s ease;
    position: relative;
    display: inline-block;
    width: 100%;
}

.section h2::after {
    content: '';
    position: absolute;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--accent-color), transparent);
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    animation: slideInRight 1s ease;
}

/* Intro Section */
.intro {
    text-align: center;
    padding: 60px 0;
}

.intro h2 {
    font-size: 48px;
    font-weight: 600;
    letter-spacing: -1px;
    line-height: 1.2;
}

/* About Section */
.about {
    padding: 100px 0;
}

.about h2 {
    font-size: 52px;
    font-weight: 600;
    letter-spacing: -1px;
    line-height: 1.2;
    margin-bottom: 60px;
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
}

.about-content p {
    font-size: 18px;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 25px;
    text-align: left;
}

.cta-box {
    margin-top: 50px;
    text-align: center;
    padding: 40px;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    background-color: var(--light-bg);
}

.cta-text {
    font-size: 20px;
    font-weight: 600;
    color: var(--secondary-color);
    margin-bottom: 20px;
}

.btn-large {
    padding: 16px 48px;
    background-color: var(--accent-color);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 700;
    font-size: 16px;
    display: inline-block;
    transition: all 0.3s ease;
    letter-spacing: 1px;
}

.btn-large:hover {
    background-color: #2563eb;
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(59, 130, 246, 0.4);
}

/* Timeline Section */
.timeline {
    background-color: var(--light-bg);
}

.timeline-container {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    padding-left: 50px;
}

.timeline-container::before {
    content: '';
    position: absolute;
    left: 20px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(180deg, transparent, var(--accent-color), transparent);
}

.timeline-item {
    position: relative;
    margin-bottom: 50px;
    animation: fadeInUp 0.6s ease both;
}

.timeline-item:nth-child(1) { animation-delay: 0.1s; }
.timeline-item:nth-child(2) { animation-delay: 0.2s; }
.timeline-item:nth-child(3) { animation-delay: 0.3s; }
.timeline-item:nth-child(4) { animation-delay: 0.4s; }
.timeline-item:nth-child(5) { animation-delay: 0.5s; }

.timeline-year {
    position: absolute;
    left: -90px;
    top: 0;
    font-size: 18px;
    font-weight: 700;
    color: var(--accent-color);
    width: 70px;
    text-align: right;
}

.timeline-year::before {
    content: '';
    position: absolute;
    right: -30px;
    top: 5px;
    width: 12px;
    height: 12px;
    background-color: var(--accent-color);
    border-radius: 50%;
    box-shadow: 0 0 0 4px var(--light-bg), 0 0 0 6px var(--accent-color);
}

.timeline-content {
    background-color: rgba(59, 130, 246, 0.05);
    padding: 25px;
    border-radius: 8px;
    border-left: 3px solid var(--accent-color);
    transition: all 0.3s ease;
}

.timeline-content:hover {
    background-color: rgba(59, 130, 246, 0.1);
    transform: translateX(10px);
    box-shadow: 0 5px 20px rgba(59, 130, 246, 0.2);
}

.timeline-content h3 {
    font-size: 20px;
    color: var(--secondary-color);
    margin-bottom: 10px;
    font-weight: 600;
}

.timeline-content p {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
}

/* Skills Section */
.skills {
    background-color: var(--light-bg);
}

.skills h2 {
    font-size: 42px;
    margin-bottom: 50px;
}

.skills-list {
    max-width: 700px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 15px;
}

.skill-item {
    font-size: 16px;
    color: var(--text-secondary);
    padding: 12px 0;
    transition: all 0.3s ease;
    animation: fadeIn 0.5s ease both;
}

.skill-item:hover {
    color: var(--accent-color);
    transform: translateX(10px);
}

/* Portfolio CTA Section */
.portfolio-cta {
    text-align: center;
    padding: 100px 0;
}

.portfolio-cta h2 {
    font-size: 52px;
    font-weight: 800;
    margin-bottom: 30px;
    letter-spacing: -1px;
}

.portfolio-text {
    font-size: 18px;
    color: var(--text-secondary);
    margin-bottom: 15px;
}

/* Projects Section */
.project-filters {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 50px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 10px 24px;
    border: 2px solid var(--border-color);
    background-color: transparent;
    color: var(--text-primary);
    border-radius: 20px;
    cursor: pointer;
    font-weight: 500;
    font-size: 14px;
    transition: all 0.3s ease;
    animation: fadeIn 0.5s ease both;
}

.filter-btn:hover {
    border-color: var(--accent-color);
    color: var(--accent-color);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(59, 130, 246, 0.2);
}

.filter-btn.active {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
    color: black;
    transform: scale(1.05);
}
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.project-card {
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.4s ease;
    background-color: var(--light-bg);
    opacity: 1;
    animation: fadeInUp 0.6s ease both;
}

.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;
}

.project-card:hover {
    border-color: var(--accent-color);
    box-shadow: 0 20px 50px rgba(59, 130, 246, 0.3);
    transform: translateY(-10px) scale(1.02);
}

.project-placeholder {
    background: linear-gradient(135deg, #3b82f6 0%, #1e40af 100%);
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 64px;
    transition: transform 0.3s ease;
}

.project-placeholder span {
    animation: float 3s ease-in-out infinite;
}

.project-placeholder span img {
    max-width: 100px;
    max-height: 100px;
    width: auto;
    height: auto;
    display: block;
}

.project-card:hover .project-placeholder {
    transform: scale(1.1);
}

.project-card:hover .project-placeholder span {
    animation: float 1.5s ease-in-out infinite;
}

.project-card h3 {
    padding: 20px 20px 10px;
    font-size: 20px;
    color: var(--secondary-color);
}

.project-card p {
    padding: 0 20px 20px;
    color: var(--text-secondary);
    font-size: 14px;
}

/* Contact Section */
.contact {
    text-align: center;
    padding: 100px 0;
}

.contact h2 {
    font-size: 52px;
    font-weight: 800;
    letter-spacing: -1px;
    margin-bottom: 30px;
}

.contact-intro {
    font-size: 18px;
    color: var(--text-secondary);
    margin-bottom: 50px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.contact-links {
    display: flex;
    gap: 40px;
    justify-content: center;
    flex-wrap: wrap;
}

.contact-link {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px 30px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    text-decoration: none;
    color: var(--text-primary);
    transition: all 0.3s ease;
    background-color: var(--light-bg);
    min-width: 280px;
}

.contact-link:hover {
    border-color: var(--accent-color);
    background-color: var(--primary-color);
    box-shadow: 0 15px 35px rgba(59, 130, 246, 0.4);
    transform: translateY(-5px) scale(1.02);
}

.contact-link .icon {
    font-size: 32px;
    flex-shrink: 0;
}

.contact-link .icon img {
    width: 32px;
    height: 32px;
    display: block;
}

.contact-link .label {
    font-size: 12px;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 0;
}

.contact-link .value {
    font-size: 16px;
    font-weight: 600;
    color: var(--secondary-color);
    margin: 0;
}

/* Footer */
.footer {
    text-align: center;
    padding: 40px 0;
    color: var(--text-secondary);
    font-size: 14px;
    border-top: 1px solid var(--border-color);
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-links {
        gap: 20px;
    }

    .hero-content h1 {
        font-size: 56px;
    }

    .subtitle {
        font-size: 24px;
    }

    .tagline {
        font-size: 16px;
    }

    .section h2 {
        font-size: 28px;
        margin-bottom: 30px;
    }

    .intro h2,
    .about h2,
    .portfolio-cta h2,
    .contact h2 {
        font-size: 32px;
    }

    .projects-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .contact-links {
        flex-direction: column;
        gap: 20px;
    }

    .contact-link {
        min-width: auto;
    }

    .cta-buttons {
        flex-direction: column;
    }

    .btn {
        width: 100%;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .navbar {
        flex-direction: column;
        gap: 15px;
    }

    .nav-links {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }

    .hero-content h1 {
        font-size: 36px;
    }

    .subtitle {
        font-size: 18px;
    }

    .section {
        padding: 40px 0;
    }

    .section h2 {
        font-size: 24px;
    }
}
