/* 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 {
    max-width: 1200px;
    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: 3.5rem; }
h2 { font-size: 2.5rem; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.5rem; }

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

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

.btn--primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.btn--primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.3);
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 1rem 0;
    transition: all 0.3s ease;
}

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

.logo__text {
    font-size: 1.5rem;
    font-weight: 700;
    color: #333;
    text-decoration: none;
}

.nav__menu {
    display: flex;
    gap: 2rem;
}

.nav__link {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav__link:hover {
    color: #667eea;
}

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

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

/* Hero Section */
.hero {
    padding: 120px 0 80px;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.hero__content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero__title {
    font-size: 3.5rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 1rem;
}

.hero__subtitle {
    font-size: 1.5rem;
    color: #667eea;
    margin-bottom: 1.5rem;
    font-weight: 500;
}

.hero__description {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 2rem;
    line-height: 1.8;
}

.hero__image {
    text-align: center;
}

.hero__img {
    max-width: 100%;
    height: auto;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

/* Section Styles */
.section__header {
    text-align: center;
    margin-bottom: 4rem;
}

.section__title {
    font-size: 2.5rem;
    color: #333;
    margin-bottom: 1rem;
}

.section__description {
    font-size: 1.1rem;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
}

/* About Section */
.about {
    padding: 80px 0;
    background: #fff;
}

.about__content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about__text {
    font-size: 1.1rem;
    line-height: 1.8;
}

.skills {
    margin-top: 2rem;
}

.skills h3 {
    margin-bottom: 1rem;
    color: #333;
}

.skills__grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.skill__tag {
    background: #f0f4ff;
    color: #667eea;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 500;
}

.about__image {
    text-align: center;
}

.about__img {
    max-width: 100%;
    height: auto;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

/* Portfolio Section */
.portfolio {
    padding: 80px 0;
    background: #f8fafc;
}

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

.portfolio__item {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.portfolio__item:hover {
    transform: translateY(-10px);
}

.portfolio__image {
    position: relative;
    overflow: hidden;
}

.portfolio__img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.portfolio__overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(102, 126, 234, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.portfolio__item:hover .portfolio__overlay {
    opacity: 1;
}

.portfolio__item:hover .portfolio__img {
    transform: scale(1.1);
}

.portfolio__info {
    text-align: center;
    color: white;
    padding: 2rem;
}

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

.portfolio__info p {
    margin-bottom: 1.5rem;
    color: rgba(255, 255, 255, 0.9);
}

.portfolio__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
}

.tag {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.8rem;
}

/* Services Section */
.services {
    padding: 80px 0;
    background: white;
}

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

.service__card {
    text-align: center;
    padding: 2rem;
    border-radius: 15px;
    background: #f8fafc;
    transition: transform 0.3s ease;
}

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

.service__icon {
    color: #667eea;
    margin-bottom: 1.5rem;
}

.service__card h3 {
    margin-bottom: 1rem;
    color: #333;
}

.service__card p {
    color: #666;
    line-height: 1.6;
}

/* Contact Section */
.contact {
    padding: 80px 0;
    background: #f8fafc;
}

.contact__content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.contact__item {
    display: flex;
    align-items: center;
    margin-bottom: 2rem;
}

.contact__icon {
    color: #667eea;
    margin-right: 1rem;
    flex-shrink: 0;
}

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

.contact__details p {
    color: #666;
    margin-bottom: 0;
}

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

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

.form__input:focus,
.form__textarea:focus {
    outline: none;
    border-color: #667eea;
}

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

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

.footer__content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

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

.footer__info p {
    color: #ccc;
    margin-bottom: 0;
}

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

.social__link {
    color: #ccc;
    transition: color 0.3s ease;
}

.social__link:hover {
    color: #667eea;
}

.footer__bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #444;
}

.footer__bottom p {
    color: #ccc;
    margin-bottom: 0;
}

/* Mobile Navigation */
@media (max-width: 768px) {
    .nav__menu {
        position: fixed;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(10px);
        flex-direction: column;
        padding: 2rem;
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
    }
    
    .nav__menu.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }
    
    .nav__toggle {
        display: flex;
    }
    
    .nav__toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .nav__toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .nav__toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }
    
    .hero__content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero__title {
        font-size: 2.5rem;
    }
    
    .about__content {
        grid-template-columns: 1fr;
    }
    
    .contact__content {
        grid-template-columns: 1fr;
    }
    
    .footer__content {
        flex-direction: column;
        text-align: center;
        gap: 2rem;
    }
    
    .portfolio__grid {
        grid-template-columns: 1fr;
    }
    
    .services__grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .hero__title {
        font-size: 2rem;
    }
    
    .section__title {
        font-size: 2rem;
    }
}

/* Animation Classes */
.animate-in {
    animation: fadeInUp 0.6s ease forwards;
}

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

/* Loading Animation */
body {
    opacity: 0;
    transition: opacity 0.3s ease;
}

body.loaded {
    opacity: 1;
}

/* Header scroll effect */
.header.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
} 