/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
}

/* Container */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

p {
    margin-bottom: 1rem;
    color: #4b5563;
}

a {
    color: #2563eb;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #1d4ed8;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 500;
    text-align: center;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.btn--primary {
    background-color: #2563eb;
    color: white;
}

.btn--primary:hover {
    background-color: #1d4ed8;
    color: white;
    transform: translateY(-2px);
}

.btn--secondary {
    background-color: transparent;
    color: black;
    border: 2px solid #2563eb;
}

.btn--secondary:hover {
    background-color: #2563eb;
    color: white;
    transform: translateY(-2px);
}

/* Header */
.header {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    border-bottom: 1px solid #e5e7eb;
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.nav__logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: #2563eb;
}

.nav__menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav__link {
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav__link:hover,
.nav__link--active {
    color: #2563eb;
}

.nav__toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.nav__toggle span {
    width: 25px;
    height: 3px;
    background-color: #333;
    margin: 3px 0;
    transition: 0.3s;
}

/* Main content */
.main {
    margin-top: 80px;
}

/* Hero section */
.hero {
    padding: 4rem 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-align: center;
}

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

.hero__title {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.hero__highlight {
    color: #fbbf24;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.hero__subtitle {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: white;
    font-weight: 500;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.hero__description {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    color: #f8fafc;
    line-height: 1.7;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.hero__buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.hero__image {
    margin-top: 3rem;
}

.hero__avatar {
    display: inline-block;
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
}

/* Features section */
.features {
    padding: 4rem 0;
    background-color: #f8fafc;
}

.section__title {
    text-align: center;
    margin-bottom: 3rem;
    color: #1f2937;
}

.features__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.feature {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

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

.feature__icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.feature__title {
    color: #1f2937;
    margin-bottom: 1rem;
}

.feature p {
    color: #4b5563;
    line-height: 1.6;
}

/* CTA section */
.cta {
    padding: 4rem 0;
    background-color: #1f2937;
    color: white;
    text-align: center;
}

.cta__title {
    color: white;
    margin-bottom: 1rem;
}

.cta__description {
    color: #d1d5db;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Page styles */
.page__title {
    font-size: 3rem;
    color: #1f2937;
    margin-bottom: 1rem;
}

.page__description {
    font-size: 1.2rem;
    color: #4b5563;
    margin-bottom: 3rem;
    line-height: 1.6;
}

/* About page */
.about {
    padding: 4rem 0;
}

.about__header {
    text-align: center;
    margin-bottom: 4rem;
}

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

.about__text h2,
.about__skills h2,
.about__experience h2 {
    color: #1f2937;
    margin-bottom: 1.5rem;
}

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

.skill__category h3 {
    color: #2563eb;
    margin-bottom: 1rem;
}

.skill__list {
    list-style: none;
}

.skill__list li {
    padding: 0.5rem 0;
    border-bottom: 1px solid #e5e7eb;
}

.skill__list li:last-child {
    border-bottom: none;
}

.experience__timeline {
    position: relative;
}

.experience__item {
    display: flex;
    margin-bottom: 2rem;
    position: relative;
}

.experience__year {
    min-width: 120px;
    font-weight: 600;
    color: #2563eb;
}

.experience__content h3 {
    color: #1f2937;
    margin-bottom: 0.5rem;
}

/* Projects page */
.projects {
    padding: 4rem 0;
}

.projects__header {
    text-align: center;
    margin-bottom: 4rem;
}

.projects__grid {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    margin-bottom: 4rem;
}

.projects__grid .project {
    flex: 1 1 calc(33.333% - 1.33rem);
    min-width: 300px;
}

.project {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

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

.project__image {
    height: 200px;
    background-color: #f3f4f6;
    display: flex;
    align-items: center;
    justify-content: center;
}

.project__placeholder {
    font-size: 4rem;
}

.project__content {
    padding: 1.5rem;
}

.project__title {
    color: #1f2937;
    margin-bottom: 1rem;
}

.project__description {
    color: #6b7280;
    margin-bottom: 1rem;
}

.project__tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.tech__tag {
    background-color: #e5e7eb;
    color: #374151;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 500;
}

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

.project__link {
    color: #2563eb;
    font-weight: 500;
}

.projects__cta {
    text-align: center;
    background-color: #f8fafc;
    padding: 3rem;
    border-radius: 12px;
}

.projects__cta h2 {
    color: #1f2937;
    margin-bottom: 1rem;
}

.projects__cta p {
    color: #6b7280;
    margin-bottom: 2rem;
}

/* Contact page */
.contact {
    padding: 4rem 0;
}

.contact__header {
    text-align: center;
    margin-bottom: 4rem;
}

.contact__content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    max-width: 1000px;
    margin: 0 auto;
}

.contact__info h2,
.contact__form h2 {
    color: #1f2937;
    margin-bottom: 1.5rem;
}

.contact__methods {
    margin-top: 2rem;
}

.contact__method {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
}

.contact__icon {
    font-size: 2rem;
    margin-right: 1rem;
    min-width: 40px;
}

.contact__details h3 {
    color: #1f2937;
    margin-bottom: 0.5rem;
}

.contact__details a {
    color: #2563eb;
}

/* Form styles */
.form__group {
    margin-bottom: 1.5rem;
}

.form__label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #374151;
}

.form__input,
.form__textarea {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form__input:focus,
.form__textarea:focus {
    outline: none;
    border-color: #2563eb;
}

.form__textarea {
    resize: vertical;
    min-height: 120px;
}

/* Footer */
.footer {
    background-color: #1f2937;
    color: white;
    padding: 3rem 0 1rem;
}

.footer__content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer__title {
    color: white;
    margin-bottom: 1rem;
}

.footer__description {
    color: #d1d5db;
}

.footer__subtitle {
    color: white;
    margin-bottom: 1rem;
}

.footer__list {
    list-style: none;
}

.footer__list li {
    margin-bottom: 0.5rem;
}

.footer__link {
    color: #d1d5db;
    transition: color 0.3s ease;
}

.footer__link:hover {
    color: white;
}

.footer__bottom {
    border-top: 1px solid #374151;
    padding-top: 1rem;
    text-align: center;
    color: #9ca3af;
}

/* Responsive design */
@media (max-width: 768px) {
    .nav__menu {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background: white;
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        padding: 2rem 0;
        transition: left 0.3s ease;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
        z-index: 1000;
    }
    
    .nav__menu--active {
        left: 0;
    }
    
    .nav__toggle {
        display: flex;
    }
    
    .nav__toggle--active span:nth-child(1) {
        transform: rotate(-45deg) translate(-5px, 6px);
    }
    
    .nav__toggle--active span:nth-child(2) {
        opacity: 0;
    }
    
    .nav__toggle--active span:nth-child(3) {
        transform: rotate(45deg) translate(-5px, -6px);
    }
    
    .nav__menu .nav__link {
        font-size: 1.2rem;
        padding: 1rem 2rem;
        width: 100%;
        text-align: center;
        border-bottom: 1px solid #f3f4f6;
    }
    
    .nav__menu .nav__link:last-child {
        border-bottom: none;
    }
    
    .hero__title {
        font-size: 2.5rem;
    }
    
    .hero__buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .contact__content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .footer__content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .page__title {
        font-size: 2rem;
    }
    
    .projects__grid .project {
        flex: 1 1 calc(50% - 1rem);
        min-width: 250px;
    }
    
    .features__grid {
        grid-template-columns: 1fr;
    }
    
    .skills__grid {
        grid-template-columns: 1fr;
    }
    
    .experience__item {
        flex-direction: column;
    }
    
    .experience__year {
        margin-bottom: 0.5rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .hero__title {
        font-size: 2rem;
    }
    
    .hero__subtitle {
        font-size: 1.2rem;
    }
    
    .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    
    .projects__grid .project {
        flex: 1 1 100%;
        min-width: 100%;
    }
}

/* 404 Error Page */
.error-page {
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 4rem 0;
}

.error__content {
    max-width: 600px;
    margin: 0 auto;
}

.error__title {
    font-size: 8rem;
    font-weight: 700;
    color: #2563eb;
    margin: 0;
    line-height: 1;
}

.error__subtitle {
    font-size: 2rem;
    font-weight: 600;
    color: #1f2937;
    margin: 1rem 0;
}

.error__description {
    font-size: 1.1rem;
    color: #6b7280;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.error__actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Print Styles */
@media print {
    .header,
    .footer,
    .nav__toggle,
    .btn {
        display: none !important;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.4;
        color: #000;
        background: #fff;
    }
    
    .container {
        max-width: none;
        margin: 0;
        padding: 0;
    }
    
    .hero,
    .features,
    .cta {
        page-break-inside: avoid;
    }
    
    .project,
    .experience__item,
    .education__item {
        page-break-inside: avoid;
        margin-bottom: 1rem;
    }
    
    a {
        color: #000;
        text-decoration: underline;
    }
    
    .tech__tag {
        border: 1px solid #000;
        background: #fff;
        color: #000;
    }
}
