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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #333;
    font-size: 16px;
}

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

/* Navigation */
.nav {
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: #2c3e50;
    text-decoration: none;
}

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

.nav-menu a {
    color: #555;
    text-decoration: none;
    transition: color 0.3s;
}

.nav-menu a:hover {
    color: #8F0D0D;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #8F0D0D 0%, #450808 100%);
    color: white;
    padding: 100px 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.15) 2px, transparent 2px);
    background-size: 60px 60px;
    animation: drift 15s linear infinite;
    opacity: 0.8;
}

@keyframes drift {
    0% { transform: translate(0, 0) rotate(0deg); }
    50% { transform: translate(25px, 25px) rotate(180deg); }
    100% { transform: translate(50px, 50px) rotate(360deg); }
}

.hero-title {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    animation: fadeInUp 1.2s ease-out;
    position: relative;
    z-index: 1;
}

.hero-subtitle {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    animation: fadeInUp 1.2s ease-out 0.3s backwards;
    position: relative;
    z-index: 1;
}

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

.hero-cta {
    display: flex;
    gap: 1rem;
    justify-content: center;
    animation: fadeInUp 1.2s ease-out 0.6s backwards;
    position: relative;
    z-index: 1;
}

/* Buttons */
.btn {
    padding: 12px 30px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    display: inline-block;
}

.btn-primary {
    background: #E7D192;
    color: #450808;
    font-weight: 700;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.btn-secondary:hover {
    background: #E7D192;
    color: #450808;
    border-color: #E7D192;
}

/* Sections */
.section {
    padding: 80px 20px;
}

.section-dark {
    background: #f8f9fa;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #450808;
    border-bottom: 3px solid #E7D192;
    padding-bottom: 10px;
    display: inline-block;
}

.section-subtitle {
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 2rem;
    text-align: center;
}

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

.about-content p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    color: #555;
}

/* Services Grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.service-card {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    animation: fadeIn 0.8s ease-out backwards;
}

.service-card:nth-child(1) { animation-delay: 0.2s; }
.service-card:nth-child(2) { animation-delay: 0.35s; }
.service-card:nth-child(3) { animation-delay: 0.5s; }
.service-card:nth-child(4) { animation-delay: 0.65s; }
.service-card:nth-child(5) { animation-delay: 0.8s; }
.service-card:nth-child(6) { animation-delay: 0.95s; }

.section-dark .service-card {
    background: white;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(231, 209, 146, 0.4);
    border-top: 3px solid #E7D192;
}

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

.service-card h3 {
    color: #8F0D0D;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

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

.service-list {
    list-style: none;
    padding-left: 0;
}

.service-list li {
    padding: 0.5rem 0;
    color: #555;
    padding-left: 1.5rem;
    position: relative;
}

.service-list li:before {
    content: "✓";
    color: #8F0D0D;
    font-weight: bold;
    position: absolute;
    left: 0;
}

/* Timeline */
.timeline {
    max-width: 900px;
    margin: 3rem auto;
}

.timeline-item {
    padding: 2rem;
    border-left: 3px solid #E7D192;
    margin-bottom: 2rem;
    position: relative;
}

.timeline-item:before {
    content: "";
    width: 15px;
    height: 15px;
    background: #8F0D0D;
    border-radius: 50%;
    position: absolute;
    left: -9px;
    top: 2rem;
}

.timeline-date {
    color: #8F0D0D;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.timeline-content h3 {
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

.timeline-location {
    color: #999;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

/* Skills Grid */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.skill-category h3 {
    color: #2c3e50;
    margin-bottom: 1rem;
}

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

.tag {
    background: #8F0D0D;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.tag:hover {
    background: #450808;
    transform: scale(1.05);
    box-shadow: 0 3px 10px rgba(231, 209, 146, 0.3);
}

/* Contact Section */
.contact-wrapper {
    max-width: 900px;
    margin: 3rem auto;
}

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

.contact-detail h3 {
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

.contact-detail p {
    color: #666;
}

.email-box {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.email-box h3 {
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

.email-box p {
    color: #666;
    margin-bottom: 1.5rem;
}

/* Footer */
.footer {
    background: #2c3e50;
    color: white;
    text-align: center;
    padding: 2rem;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .nav-menu {
        gap: 1rem;
        font-size: 0.9rem;
    }
    
    .services-grid,
    .skills-grid {
        grid-template-columns: 1fr;
    }
}
