/* ===== Root & Typography ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #1f2937;
    --secondary-color: #4f46e5;
    --accent-color: #3b82f6;
    --light-bg: #f9fafb;
    --white: #ffffff;
    --text-primary: #1f2937;
    --text-secondary: #6b7280;
    --border-color: #e5e7eb;
    --transition: all 0.3s ease;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    color: var(--text-primary);
    line-height: 1.6;
    background-color: var(--white);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===== Navbar ===== */
.navbar {
    background-color: var(--white);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.nav-logo a {
    font-size: 28px;
    font-weight: 700;
    color: var(--secondary-color);
    text-decoration: none;
    letter-spacing: -1px;
    transition: var(--transition);
}

.nav-logo a:hover {
    color: var(--accent-color);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 0;
}

.nav-item {
    position: relative;
}

.nav-link {
    display: block;
    padding: 10px 16px;
    color: var(--text-primary);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: var(--transition);
    border-radius: 4px;
}

.nav-link:hover {
    color: var(--secondary-color);
    background-color: var(--light-bg);
}

.nav-link-btn {
    background-color: var(--secondary-color);
    color: var(--white);
    padding: 10px 20px;
    border-radius: 4px;
    margin-left: 10px;
}

.nav-link-btn:hover {
    background-color: var(--accent-color);
    color: var(--white);
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background-color: var(--text-primary);
    margin: 4px 0;
    transition: var(--transition);
    border-radius: 2px;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* ===== Hero Section ===== */
.hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: var(--white);
    padding: 120px 20px;
    text-align: center;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-content {
    max-width: 800px;
}

.hero-title {
    font-size: 64px;
    font-weight: 700;
    margin-bottom: 10px;
    letter-spacing: -1px;
    animation: slideInDown 0.8s ease;
}

.hero-subtitle {
    font-size: 32px;
    font-weight: 300;
    margin-bottom: 20px;
    opacity: 0.95;
    animation: slideInUp 0.8s ease 0.2s backwards;
}

.hero-description {
    font-size: 18px;
    margin-bottom: 40px;
    opacity: 0.9;
    line-height: 1.8;
    animation: slideInUp 0.8s ease 0.4s backwards;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-bottom: 80px;
    flex-wrap: wrap;
    animation: slideInUp 0.8s ease 0.6s backwards;
}

.btn {
    padding: 14px 32px;
    font-size: 16px;
    font-weight: 600;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    text-decoration: none;
    transition: var(--transition);
    display: inline-block;
}

.btn-primary {
    background-color: var(--white);
    color: var(--secondary-color);
}

.btn-primary:hover {
    background-color: var(--light-bg);
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

.btn-secondary {
    background-color: transparent;
    color: var(--white);
    border: 2px solid var(--white);
}

.btn-secondary:hover {
    background-color: var(--white);
    color: var(--secondary-color);
    transform: translateY(-2px);
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 60px;
    flex-wrap: wrap;
    animation: slideInUp 0.8s ease 0.8s backwards;
}

.stat {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stat-number {
    font-size: 36px;
    font-weight: 700;
    display: block;
    margin-bottom: 5px;
}

.stat-label {
    font-size: 14px;
    opacity: 0.9;
}

/* ===== About Section ===== */
.about {
    padding: 100px 20px;
    background-color: var(--light-bg);
}

.section-title {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 60px;
    text-align: center;
    color: var(--primary-color);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-text p {
    font-size: 16px;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.about-highlights {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.highlight-item {
    background-color: var(--white);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: var(--transition);
}

.highlight-item:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    transform: translateY(-4px);
}

.highlight-icon {
    font-size: 36px;
    margin-bottom: 15px;
}

.highlight-item h3 {
    font-size: 18px;
    margin-bottom: 10px;
    color: var(--primary-color);
}

.highlight-item p {
    font-size: 14px;
    color: var(--text-secondary);
    margin: 0;
}

/* ===== Expertise Section ===== */
.expertise {
    padding: 100px 20px;
    background-color: var(--white);
}

.expertise-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.expertise-card {
    background-color: var(--light-bg);
    padding: 40px 30px;
    border-radius: 8px;
    border-left: 4px solid var(--secondary-color);
    transition: var(--transition);
}

.expertise-card:hover {
    background-color: var(--white);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    transform: translateY(-8px);
}

.expertise-card h3 {
    font-size: 20px;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.skill-list {
    list-style: none;
}

.skill-list li {
    padding: 10px 0;
    padding-left: 20px;
    position: relative;
    font-size: 15px;
    color: var(--text-secondary);
}

.skill-list li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--secondary-color);
    font-weight: bold;
}

/* ===== Achievements Section ===== */
.achievements {
    padding: 100px 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: var(--white);
}

.achievements .section-title {
    color: var(--white);
    margin-bottom: 60px;
}

.achievements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.achievement-card {
    background-color: rgba(255, 255, 255, 0.95);
    padding: 40px;
    border-radius: 8px;
    text-align: center;
    transition: var(--transition);
    color: var(--primary-color);
}

.achievement-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.15);
}

.achievement-number {
    font-size: 44px;
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: 15px;
    display: block;
}

.achievement-card h3 {
    font-size: 22px;
    margin-bottom: 15px;
}

.achievement-card p {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ===== Experience Section ===== */
.experience {
    padding: 100px 20px;
    background-color: var(--light-bg);
}

.experience-timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.experience-timeline::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background-color: var(--secondary-color);
    transform: translateX(-1px);
}

.timeline-item {
    position: relative;
    margin-bottom: 50px;
    padding: 40px;
    width: calc(50% - 20px);
}

.timeline-item:nth-child(odd) {
    margin-left: 0;
    text-align: right;
    padding-right: 60px;
}

.timeline-item:nth-child(even) {
    margin-left: calc(50%);
    padding-left: 60px;
}

.timeline-marker {
    position: absolute;
    width: 16px;
    height: 16px;
    background-color: var(--secondary-color);
    border: 4px solid var(--white);
    border-radius: 50%;
    left: 50%;
    top: 40px;
    transform: translateX(-50%);
    box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.1);
}

.timeline-content {
    background-color: var(--white);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: var(--transition);
}

.timeline-content:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.timeline-content h3 {
    font-size: 20px;
    color: var(--primary-color);
    margin-bottom: 8px;
}

.company {
    font-size: 16px;
    color: var(--secondary-color);
    font-weight: 600;
    margin-bottom: 5px;
}

.date {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 15px;
}

.experience-details {
    list-style: none;
    font-size: 14px;
    color: var(--text-secondary);
}

.experience-details li {
    padding: 8px 0;
    padding-left: 20px;
    position: relative;
}

.experience-details li:before {
    content: "→";
    position: absolute;
    left: 0;
    color: var(--secondary-color);
}

/* ===== Projects Section ===== */
.projects {
    padding: 100px 20px;
    background-color: var(--white);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.project-card {
    background-color: var(--light-bg);
    padding: 30px;
    border-radius: 8px;
    border-top: 4px solid var(--secondary-color);
    transition: var(--transition);
}

.project-card:hover {
    background-color: var(--white);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.15);
    transform: translateY(-8px);
}

.project-header {
    font-size: 18px;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.project-description {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 20px;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tech-tag {
    display: inline-block;
    background-color: var(--secondary-color);
    color: var(--white);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
}

/* ===== Contact Section ===== */
.contact {
    padding: 100px 20px;
    background-color: var(--light-bg);
}

.contact-subtitle {
    text-align: center;
    font-size: 18px;
    color: var(--text-secondary);
    margin-bottom: 60px;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    max-width: 1000px;
    margin: 0 auto;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.info-item {
    text-align: center;
}

.info-icon {
    font-size: 48px;
    margin-bottom: 15px;
    display: block;
}

.info-item h3 {
    font-size: 18px;
    margin-bottom: 10px;
    color: var(--primary-color);
}

.info-item a {
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
}

.info-item a:hover {
    text-decoration: underline;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 14px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-family: inherit;
    font-size: 14px;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

/* ===== Footer ===== */
.footer {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 60px 20px 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
    margin-bottom: 40px;
}

.footer-section h3,
.footer-section h4 {
    margin-bottom: 15px;
    font-size: 18px;
}

.footer-section p {
    font-size: 14px;
    opacity: 0.8;
}

.footer-section ul {
    list-style: none;
}

.footer-section li {
    margin-bottom: 10px;
}

.footer-section a {
    color: var(--white);
    text-decoration: none;
    font-size: 14px;
    opacity: 0.8;
    transition: var(--transition);
}

.footer-section a:hover {
    opacity: 1;
    color: var(--accent-color);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 14px;
}

.footer-bottom p {
    margin: 5px 0;
    opacity: 0.8;
}

/* ===== Animations ===== */
@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== Responsive Design ===== */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-menu {
        position: absolute;
        top: 70px;
        left: -100%;
        flex-direction: column;
        background-color: var(--white);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-item {
        padding: 15px 0;
    }

    .nav-link-btn {
        background-color: var(--secondary-color);
        display: inline-block;
        margin: 15px 0;
    }

    .hero-title {
        font-size: 40px;
    }

    .hero-subtitle {
        font-size: 24px;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 15px;
    }

    .btn {
        width: 100%;
    }

    .hero-stats {
        gap: 30px;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .section-title {
        font-size: 36px;
        margin-bottom: 40px;
    }

    .experience-timeline::before {
        left: 20px;
    }

    .timeline-item {
        width: 100%;
        padding: 20px;
        padding-left: 80px;
        text-align: left !important;
        margin-left: 0 !important;
    }

    .timeline-marker {
        left: 20px;
    }

    .contact-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .projects-grid {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 32px;
    }

    .hero-subtitle {
        font-size: 18px;
    }

    .hero-description {
        font-size: 16px;
    }

    .section-title {
        font-size: 28px;
    }

    .hero-stats {
        flex-direction: column;
        gap: 20px;
    }

    .expertise-grid {
        grid-template-columns: 1fr;
    }

    .achievement-card {
        padding: 25px;
    }

    .achievement-number {
        font-size: 32px;
    }

    .btn {
        padding: 12px 24px;
        font-size: 14px;
    }
}
