/*
 * Main site stylesheet modeled on oldindex.html
 */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333;
    background: #f8f9fa;
}

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

/* Remove underline from all links by default */
a {
    text-decoration: none;
}

a:hover, a:focus {
    text-decoration: underline;
}

/* Header */
header {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    color: white;
    padding: 1rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

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

.logo {
    font-size: 1.8rem;
    font-weight: bold;
    color: #ffd700;
}

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

.nav-links a {
    color: white;
    text-decoration: none;
    transition: color 0.3s ease;
    font-weight: 500;
}

.nav-links a:hover {
    color: #ffd700;
}

/* Hero Section */
.hero {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 70vh;
    height: 100vh;
    position: relative;
    background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)), 
               url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 600"><rect fill="%23333" width="1200" height="600"/><circle fill="%23555" cx="200" cy="100" r="50"/><circle fill="%23777" cx="800" cy="200" r="30"/><circle fill="%23555" cx="1000" cy="400" r="40"/></svg>');
    background-size: cover;
    background-position: center;
    color: white;
    margin-top: 80px;
    text-align: center;
}

.hero-overlay {
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.4);
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-content {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    font-weight: 300;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-button {
    display: inline-block;
    background: linear-gradient(45deg, #ffd700, #ffed4a);
    color: #333;
    padding: 15px 30px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(255, 215, 0, 0.4);
}

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

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: #333;
    font-weight: 300;
}

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

.service-card {
    background: white;
    padding: 2.5rem;
    border-radius: 12px;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(45deg, #ffd700, #ffed4a);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
    border-color: #ffd700;
}

.service-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(45deg, #333, #555);
    border-radius: 50%;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffd700;
    font-size: 2.5rem;
    transition: all 0.3s ease;
}

.service-card:hover .service-icon {
    transform: scale(1.1);
    background: linear-gradient(45deg, #ffd700, #ffed4a);
    color: #333;
}

/* About Section */
.about {
    padding: 100px 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

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

.about-text h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: #333;
    font-weight: 300;
}

.about-text p {
    margin-bottom: 1.5rem;
    color: #666;
    font-size: 1.1rem;
    line-height: 1.8;
}

.about-image {
    background: linear-gradient(45deg, #333, #555);
    height: 400px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffd700;
    font-size: 3rem;
}

/* Portfolio Section */
.portfolio {
    padding: 100px 0;
    background: white;
}

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

.portfolio-item {
    background: #f8f9fa;
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.portfolio-item:hover {
    transform: scale(1.02);
}

.portfolio-image {
    height: 200px;
    background: linear-gradient(45deg, #333, #666);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffd700;
    font-size: 2rem;
}

.portfolio-content {
    padding: 1.5rem;
}

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

.portfolio-content p {
    color: #666;
}

/* Contact Section */
.contact {
    padding: 100px 0;
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    color: white;
}

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

.contact-info h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #ffd700;
}

.contact-info p {
    margin-bottom: 1rem;
    line-height: 1.8;
}

.contact-form {
    background: rgba(255,255,255,0.1);
    padding: 2rem;
    border-radius: 10px;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #ffd700;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 10px;
    border: none;
    border-radius: 5px;
    background: rgba(255,255,255,0.9);
    color: #333;
}

.form-group textarea {
    height: 120px;
    resize: vertical;
}

.submit-btn {
    background: linear-gradient(45deg, #ffd700, #ffed4a);
    color: #333;
    padding: 12px 30px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    transition: transform 0.3s ease;
}

.submit-btn:hover {
    transform: translateY(-2px);
}

/* Footer */
footer {
    background: #1a1a1a;
    color: white;
    text-align: center;
    padding: 2rem 0;
}

/* Enhanced Content Block Styling */
.content-section {
    padding: 100px 0;
    position: relative;
}

.content-section:nth-child(even) {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.content-section:nth-child(odd) {
    background: white;
}

.content-blocks-container {
    display: grid;
    gap: 2rem;
    margin-top: 3rem;
}

.content-block {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.content-block::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(45deg, #ffd700, #ffed4a);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.content-block:hover::before {
    transform: scaleX(1);
}

.content-block:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

/* Text Content Blocks */
.content-block.text-block {
    border-left: 4px solid #007bff;
}

.content-block.text-block h3 {
    color: #007bff;
    font-size: 1.5rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.content-block.text-block .content {
    color: #555;
    line-height: 1.8;
    font-size: 1.05rem;
}

/* Image Content Blocks */
.content-block.image-block {
    border-left: 4px solid #28a745;
    display: flex;
    align-items: center;
    gap: 2rem;
}

.content-block.image-block .image-container {
    flex-shrink: 0;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.content-block.image-block img {
    max-width: 300px;
    max-height: 200px;
    width: 100%;
    height: auto;
    object-fit: cover;
}

.content-block.image-block .text-content {
    flex: 1;
}

.content-block.image-block h3 {
    color: #28a745;
    font-size: 1.5rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

/* HTML Content Blocks */
.content-block.html-block {
    border-left: 4px solid #ffc107;
}

.content-block.html-block h3 {
    color: #f57c00;
    font-size: 1.5rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.content-block.html-block .content {
    color: #555;
}

.content-block.html-block .content a {
    color: #ffc107;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.content-block.html-block .content a:hover {
    color: #f57c00;
    text-decoration: underline;
}

/* Icon Box Content Blocks */
.content-block.iconbox-block {
    border-left: 4px solid #6f42c1;
    text-align: center;
}

.content-block.iconbox-block .icon {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    display: block;
    opacity: 0.9;
}

.content-block.iconbox-block h3 {
    color: #6f42c1;
    font-size: 1.5rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.content-block.iconbox-block .content {
    color: #555;
    line-height: 1.8;
}

/* Grid layouts for different block counts */
.content-blocks-container.single-column {
    grid-template-columns: 1fr;
}

.content-blocks-container.two-columns {
    grid-template-columns: repeat(2, 1fr);
}

.content-blocks-container.three-columns {
    grid-template-columns: repeat(3, 1fr);
}

.content-blocks-container.four-columns {
    grid-template-columns: repeat(4, 1fr);
}

/* Special layouts for mixed content */
.content-blocks-container.mixed-layout {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.content-blocks-container.featured-layout {
    grid-template-columns: 2fr 1fr 1fr;
}

.content-block.featured {
    grid-row: span 2;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.8), rgba(255, 240, 240, 0.6));
}

/* Flash Messages */
.flash-messages {
    margin-bottom: 2rem;
}

.flash-message {
    padding: 12px 20px;
    border-radius: 5px;
    margin-bottom: 1rem;
    border-left: 4px solid;
    font-weight: 500;
    transition: all 0.3s ease;
}

.flash-success, .flash-message.success {
    background: #d4edda;
    color: #155724;
    border-left-color: #28a745;
}

.flash-error, .flash-message.error {
    background: #f8d7da;
    color: #721c24;
    border-left-color: #dc3545;
}

.flash-warning, .flash-message.warning {
    background: #fff3cd;
    color: #856404;
    border-left-color: #ffc107;
}

.flash-info, .flash-message.info {
    background: #d1ecf1;
    color: #0c5460;
    border-left-color: #17a2b8;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .about-content,
    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .content-blocks-container.two-columns,
    .content-blocks-container.three-columns,
    .content-blocks-container.four-columns,
    .content-blocks-container.featured-layout {
        grid-template-columns: 1fr;
    }
    
    .content-block.image-block {
        flex-direction: column;
        text-align: center;
    }
    
    .content-block.image-block .image-container {
        width: 100%;
        max-width: 300px;
    }
    
    .content-section {
        padding: 60px 0;
    }
}

@media (max-width: 480px) {
    .content-block {
        padding: 1.5rem;
    }
    
    .content-block.iconbox-block .icon {
        font-size: 2.5rem;
    }
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Animation for elements coming into view */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}
