/* Modern Eidogen-Sertanty Design - Keeping Original Colors */

/* 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;
    background: linear-gradient(135deg, #f8f8f8 0%, #e9e9e9 100%);
    min-height: 100vh;
}

/* Container and Layout */
#wrapper {
    max-width: 1200px;
    margin: 0 auto;
    background: #fff;
    box-shadow: 0 0 20px rgba(0,0,0,0.1);
    border-radius: 8px;
    overflow: hidden;
    min-height: 100vh;
}

/* Header Styles */
#header {
    background: white;
    color: #333;
    padding: 20px 30px;
    position: relative;
    height: auto;
    min-height: 120px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    border-bottom: 3px solid #99cc33;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

#header #logo {
    position: relative;
    left: auto;
    top: auto;
}

#header #logo img {
    position: relative;
    left: auto;
    top: auto;
    max-height: 50px;
    width: auto;
}

/* Contact Info Styling */
.contact-info {
    background: #f8f8f8;
    border-radius: 25px;
    padding: 12px 20px;
    font-size: 14px;
    border: 1px solid #ddd;
}

.contact-info a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-info a:hover {
    color: #99cc33;
}

/* Navigation Styles */
#navigation {
    background: #f8f8f8;
    padding: 0;
    width: 100%;
    margin-top: 15px;
    border-radius: 10px;
}

#navigation ul {
    list-style: none;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    padding: 0;
    margin: 0;
}

#navigation li {
    position: relative;
}

#navigation li a {
    display: block;
    padding: 12px 25px;
    color: white;
    background: linear-gradient(135deg, #99cc33 0%, #7aa328 100%);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border-radius: 25px;
    margin: 0 5px;
    box-shadow: 0 2px 8px rgba(153, 204, 51, 0.3);
    border: 2px solid transparent;
}

#navigation li a:hover {
    background: linear-gradient(135deg, #7aa328 0%, #99cc33 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(153, 204, 51, 0.4);
    border-color: #99cc33;
}

/* Content Area */
#content {
    padding: 40px 30px;
}

/* Hero Section with Rotator */
.hero-section {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 40px;
    align-items: center;
    margin-bottom: 0;
    padding: 20px 0 10px 0;
}

#features {
    position: relative;
    width: 100%;
    height: 350px;
    margin: 0;
    float: none;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    background: #f8f8f8;
}

/* Rotator Images */
#demo {
    list-style: none;
    margin: 0;
    padding: 0;
    position: relative;
    width: 100%;
    height: 350px;
}

#demo li {
    display: none;
    margin: 0;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
}

#demo li:first-child {
    display: block;
}

#demo li img {
    width: auto;
    max-width: 100%;
    height: 350px;
    object-fit: contain;
    margin: 0 auto;
    display: block;
}

/* Hero Text */
.hero-text {
    background: linear-gradient(135deg, #99cc33 0%, #7aa328 100%);
    color: white;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 15px 40px rgba(153, 204, 51, 0.3);
    text-align: center;
}

.hero-text h1 {
    font-size: 28px;
    margin-bottom: 25px;
    font-weight: 600;
    line-height: 1.3;
}

.hero-text .cta-button {
    display: inline-block;
    background: white;
    color: #99cc33;
    padding: 15px 30px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.hero-text .cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
}

/* Product Features Section */
.features-section {
    margin: 10px 0 60px 0;
}

.features-section h2 {
    text-align: center;
    font-size: 32px;
    color: #2c3e50;
    margin-bottom: 30px;
    font-weight: 600;
}

.feature-card {
    background: white;
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 25px;
    min-height: 180px;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 50px rgba(0,0,0,0.15);
}

.feature-content {
    flex: 1;
}

.feature-content h3 {
    color: #2c3e50;
    font-size: 24px;
    margin-bottom: 15px;
    font-weight: 600;
}

.feature-content p {
    color: #666;
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 20px;
}

.feature-link {
    display: inline-flex;
    align-items: center;
    color: #99cc33;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.feature-link:hover {
    color: #7aa328;
    transform: translateX(5px);
}

/* Gallery Grid */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin: 40px 0;
}

.gallery-item {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    background: white;
    height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.2);
}

.gallery-item img {
    width: auto;
    max-width: 100%;
    height: auto;
    max-height: 240px;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

/* Dropdown Navigation */
#navigation li {
    position: relative;
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    padding: 10px 0;
    min-width: 200px;
    z-index: 1000;
    margin-top: 5px;
}

#navigation li:hover .dropdown-menu {
    display: block;
}

/* Add invisible bridge to prevent menu from disappearing */
#navigation li .dropdown-menu::before {
    content: '';
    position: absolute;
    top: -5px;
    left: 0;
    right: 0;
    height: 5px;
}

.dropdown-menu a {
    display: block;
    padding: 10px 20px;
    color: #333 !important;
    background: transparent !important;
    box-shadow: none !important;
    border: none !important;
    border-radius: 0 !important;
    margin: 0 !important;
    font-weight: 500 !important;
    font-size: 14px;
}

.dropdown-menu a:hover {
    background: #f0f8e8 !important;
    transform: translateY(0) !important;
    color: #99cc33 !important;
}

/* Responsive Design */
@media (max-width: 768px) {
    #header {
        flex-direction: column;
        text-align: center;
        padding: 20px;
    }
    
    .contact-info {
        margin: 15px 0;
    }
    
    #navigation ul {
        flex-direction: column;
        width: 100%;
    }
    
    #navigation li {
        width: 100%;
        margin: 5px 0;
    }
    
    #navigation li a {
        width: 100%;
        text-align: center;
    }
    
    .dropdown-menu {
        position: static;
        display: none;
        box-shadow: none;
        background: #f8f8f8;
        margin-top: 0;
    }
    
    #navigation li:hover .dropdown-menu {
        display: none;
    }
    
    .hero-section {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    #features {
        margin-bottom: 30px;
    }
    
    #demo li img {
        height: 250px;
    }
    
    #content {
        padding: 20px;
    }
    
    .feature-card {
        flex-direction: column;
        text-align: center;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
    }
    
    .gallery-item {
        height: auto;
    }
    
    .publication-item {
        padding: 15px;
    }
    
    .publication-links {
        justify-content: center;
    }
}

/* Footer Styles */
#footer {
    background: #2c3e50;
    color: white;
    padding: 20px 0;
    margin-top: 60px;
    text-align: center;
}

#footer #foot p {
    margin: 0;
    font-size: 14px;
}

#footer #foot a {
    color: #99cc33;
    text-decoration: none;
}

#footer #foot a:hover {
    text-decoration: underline;
}

/* Publication & Content Styles */
.publication-item {
    padding: 20px;
    margin-bottom: 15px;
    background: #f8f9fa;
    border-left: 4px solid #99cc33;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.publication-item:hover {
    background: #f0f8e8;
    transform: translateX(5px);
    box-shadow: 0 3px 10px rgba(153, 204, 51, 0.2);
}

.publication-title {
    font-weight: 600;
    color: #333;
    font-size: 1.1em;
    margin-bottom: 8px;
}

.publication-authors {
    color: #666;
    font-size: 0.95em;
    margin-bottom: 5px;
}

.publication-journal {
    color: #99cc33;
    font-style: italic;
    margin-bottom: 5px;
}

.publication-links {
    margin-top: 10px;
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.pub-link {
    display: inline-block;
    padding: 5px 15px;
    background: #99cc33;
    color: white;
    text-decoration: none;
    border-radius: 15px;
    font-size: 0.9em;
    font-weight: 600;
    transition: all 0.3s ease;
}

.pub-link:hover {
    background: #7aa328;
    transform: translateY(-1px);
}

/* Section Styling */
.section {
    background: white;
    padding: 30px;
    margin-bottom: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.section h2 {
    color: #99cc33;
    font-size: 2em;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e0e0e0;
}

.section h3 {
    color: #444;
    font-size: 1.4em;
    margin: 30px 0 20px 0;
}

/* Utilities */
.text-center {
    text-align: center;
}

.mt-4 {
    margin-top: 40px;
}

.mb-4 {
    margin-bottom: 40px;
}

/* Keep original rotator functionality */
.rotator {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    margin-bottom: 30px;
    position: relative;
}

.rotator .feature-content {
    position: absolute;
    right: 30px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(10px);
    padding: 25px;
    border-radius: 10px;
    max-width: 350px;
}

.rotator p {
    margin-bottom: 15px;
    color: #333;
}