/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
    overflow-x: hidden;
}

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

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: normal;
    line-height: 1.2;
}

a {
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}

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

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo {
    flex-shrink: 0;
}

.logo img {
    display: block;
    transition: transform 0.3s ease;
    height: 50px;
    width: auto;
}

.logo:hover img {
    transform: scale(1.05);
}

.main-nav {
    margin-left: auto;
}

.main-nav ul {
    display: flex;
    list-style: none;
    gap: 30px;
    margin: 0;
    padding: 0;
}

.nav-link {
    font-size: 16px;
    font-weight: 500;
    letter-spacing: 0.05em;
    padding: 10px 15px;
    border-radius: 5px;
    transition: all 0.3s ease;
    position: relative;
    text-decoration: none;
    color: #333;
}

.nav-link:hover,
.nav-link.active {
    background: #f0f0f0;
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 2px;
    background: #333;
}

/* Responsive design for mobile */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        height: auto;
        padding: 15px 20px;
        gap: 15px;
    }
    
    .main-nav {
        margin-left: 0;
        width: 100%;
    }
    
    .main-nav ul {
        justify-content: center;
        gap: 20px;
        flex-wrap: wrap;
    }
    
    .nav-link {
        font-size: 14px;
        padding: 8px 12px;
    }
}

/* Main Content */
main {
    margin-top: 180px;
}

/* Hero Section */
.hero-section {
    padding: 80px 0;
    min-height: 80vh;
    display: flex;
    align-items: center;
}

.hero-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-image {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.hero-img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
}

.hero-image:hover .hero-img {
    transform: scale(1.05);
}

.hero-text {
    padding: 20px 0;
}

.hero-title {
    font-size: 35px;
    margin-bottom: 20px;
    font-weight: normal;
}

.hero-subtitle {
    font-size: 20px;
    margin-bottom: 25px;
    color: #666;
    font-weight: normal;
}

.hero-description {
    font-size: 18px;
    line-height: 1.8;
    margin-bottom: 30px;
    color: #555;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #333;
    color: white;
    padding: 15px 30px;
    border-radius: 5px;
    font-size: 16px;
    font-weight: 500;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.cta-button:hover {
    background: #555;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.arrow-icon {
    fill: currentColor;
    transition: transform 0.3s ease;
}

.cta-button:hover .arrow-icon {
    transform: translateX(5px);
}

/* Section Styles */
.portfolio-section,
.about-section,
.contact-section {
    padding: 80px 0;
}

.portfolio-section {
    background: #f8f8f8;
}

.section-title {
    font-size: 35px;
    text-align: center;
    margin-bottom: 60px;
    font-weight: normal;
}

/* Portfolio Grid */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.portfolio-item {
    background: #fff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    text-align: center;
    cursor: pointer;
}

.portfolio-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.portfolio-image {
    margin-bottom: 20px;
    overflow: hidden;
    border-radius: 8px;
}

.portfolio-image img {
    width: 100%;
    height: 200px;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.portfolio-item:hover .portfolio-image img {
    transform: scale(1.05);
}

.portfolio-item h3 {
    font-size: 24px;
    margin-bottom: 10px;
    font-weight: normal;
}

.portfolio-item p {
    color: #666;
    font-size: 16px;
}

/* About Section */
.about-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.about-content p {
    font-size: 18px;
    line-height: 1.8;
    margin-bottom: 25px;
    color: #555;
}

/* Contact Section */
.contact-section {
    background: #f8f8f8;
}

.contact-content {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.contact-content p {
    font-size: 18px;
    line-height: 1.8;
    margin-bottom: 30px;
    color: #555;
}

.contact-info {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.contact-info p {
    font-size: 20px;
    font-weight: 500;
    color: #333;
    margin: 0 0 20px 0;
}

.contact-button {
    margin-top: 20px;
}

.availability-info {
    background: #f8f8f8;
    padding: 15px 20px;
    border-radius: 8px;
    margin-top: 20px;
    border: 1px solid #e0e0e0;
    display: inline-block;
}

.availability-info p {
    font-size: 14px;
    font-weight: 500;
    color: #666;
    margin: 0;
    text-align: center;
}

/* Footer */
.footer {
    background: #333;
    color: white;
    padding: 40px 0;
    text-align: center;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-content p {
    flex: 1;
    text-align: center;
    order: 2;
}

.social-links {
    order: 1;
}

.social-links-spacer {
    order: 3;
    width: 78px; /* Same width as social-links to balance the layout */
}

.footer p {
    font-size: 14px;
    opacity: 0.8;
    margin: 0;
}

.social-links {
    display: flex;
    gap: 15px;
    align-items: center;
}

.social-link {
    color: white;
    opacity: 0.8;
    transition: all 0.3s ease;
    padding: 8px;
    border-radius: 4px;
}

.social-link:hover {
    opacity: 1;
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.social-link svg {
    width: 24px;
    height: 24px;
    fill: currentColor;
}

/* Responsive Design */
@media (max-width: 768px) {
    .header-content {
        padding: 0 15px;
    }
    
    .main-nav ul {
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
    }
    
    .nav-link {
        font-size: 14px;
        padding: 8px 12px;
    }
    
    .site-title {
        font-size: 28px;
    }
    
    main {
        margin-top: 220px;
    }
    
    .hero-content {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }
    
    .hero-title {
        font-size: 28px;
    }
    
    .hero-subtitle {
        font-size: 18px;
    }
    
    .hero-description {
        font-size: 16px;
    }
    
    .section-title {
        font-size: 28px;
        margin-bottom: 40px;
    }
    
    .portfolio-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .portfolio-item {
        padding: 30px 20px;
    }
    
    .container {
        padding: 0 15px;
    }
}

@media (max-width: 480px) {
    .hero-section,
    .portfolio-section,
    .about-section,
    .contact-section {
        padding: 60px 0;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .hero-title {
        font-size: 24px;
    }
    
    .section-title {
        font-size: 24px;
    }
    
    .cta-button {
        padding: 12px 24px;
        font-size: 14px;
    }
}

/* Smooth animations */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    html {
        scroll-behavior: auto;
    }
}

/* Focus styles for accessibility */
.nav-link:focus,
.cta-button:focus,
.logo:focus {
    outline: 2px solid #333;
    outline-offset: 2px;
}

/* Loading animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-content,
.portfolio-item,
.about-content,
.contact-content {
    animation: fadeIn 0.6s ease-out;
}