/* 
    Plate Compass - Premium CSS Styles
    Modern, Responsive, and Scientific Aesthetic
*/

:root {
    --primary-color: #2c3e50;
    --secondary-color: #1abc9c;
    --accent-color: #3498db;
    --text-color: #333;
    --light-text: #666;
    --bg-color: #f8f9fa;
    --white: #ffffff;
    --gradient-primary: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    --gradient-accent: linear-gradient(135deg, #1abc9c 0%, #16a085 100%);
    --shadow: 0 10px 30px rgba(0,0,0,0.1);
    --transition: all 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-color);
    overflow-x: hidden;
}

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

/* Typography */
h1, h2, h3, h4 {
    line-height: 1.2;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
}

p {
    margin-bottom: 1.2rem;
}

.highlight {
    color: var(--secondary-color);
    position: relative;
    display: inline-block;
}

.highlight::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 0;
    width: 100%;
    height: 8px;
    background: rgba(26, 188, 156, 0.2);
    z-index: -1;
}

/* Navbar */
.navbar {
    background: var(--white);
    padding: 20px 0;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

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

.logo {
    font-size: 1.8rem;
    font-weight: 800;
    text-decoration: none;
    color: var(--primary-color);
    letter-spacing: -1px;
}

.logo span {
    color: var(--secondary-color);
}

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

.nav-links li {
    margin-left: 30px;
}

.nav-links a {
    text-decoration: none;
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.95rem;
    transition: var(--transition);
}

.nav-links a:hover {
    color: var(--secondary-color);
}

.menu-toggle {
    display: none;
    cursor: pointer;
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    background-color: var(--primary-color);
    transition: var(--transition);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    font-size: 0.95rem;
}

.btn-primary {
    background: var(--gradient-accent);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(26, 188, 156, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(26, 188, 156, 0.4);
}

.btn-secondary {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    margin-left: 15px;
}

.btn-secondary:hover {
    background: var(--primary-color);
    color: var(--white);
}

/* Hero Section */
.hero {
    padding: 160px 0 100px;
    background: var(--white);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -10%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(26, 188, 156, 0.05) 0%, transparent 70%);
    z-index: 0;
}

.hero .container {
    display: flex;
    align-items: center;
    gap: 50px;
}

.hero-content {
    flex: 1;
    z-index: 1;
}

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

.hero-content p {
    font-size: 1.1rem;
    color: var(--light-text);
    margin-bottom: 2.5rem;
    max-width: 500px;
}

.hero-visual {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.css-plate {
    width: 300px;
    height: 220px;
    background: #e0e0e0;
    border-radius: 10px;
    padding: 20px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(4, 1fr);
    gap: 10px;
    box-shadow: 20px 20px 60px #d1d1d1, -20px -20px 60px #ffffff;
    transform: rotateX(20deg) rotateZ(-10deg);
}

.well {
    background: #f0f0f0;
    border-radius: 50%;
    box-shadow: inset 2px 2px 5px rgba(0,0,0,0.1), inset -2px -2px 5px rgba(255,255,255,0.8);
    position: relative;
}

.well::after {
    content: '';
    position: absolute;
    top: 20%;
    left: 20%;
    width: 60%;
    height: 60%;
    background: rgba(26, 188, 156, 0.3);
    border-radius: 50%;
    filter: blur(2px);
}

/* Article Section */
.article-section {
    padding: 100px 0;
    background: var(--bg-color);
}

.main-content {
    background: var(--white);
    padding: 60px;
    border-radius: 20px;
    box-shadow: var(--shadow);
    max-width: 900px;
    margin: 0 auto;
}

.article-header {
    margin-bottom: 40px;
    text-align: center;
}

.category {
    display: inline-block;
    background: rgba(26, 188, 156, 0.1);
    color: var(--secondary-color);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 15px;
}

.article-header h2 {
    font-size: 2.5rem;
    margin-bottom: 0;
}

.content-body h3 {
    font-size: 1.8rem;
    margin-top: 2.5rem;
    padding-left: 15px;
    border-left: 4px solid var(--secondary-color);
}

.content-body h4 {
    font-size: 1.3rem;
    margin-top: 2rem;
    color: var(--accent-color);
}

.content-body ul {
    margin: 1.5rem 0 1.5rem 2rem;
}

.content-body li {
    margin-bottom: 0.5rem;
}

.conclusion {
    margin-top: 40px;
    padding: 30px;
    background: linear-gradient(to right, #f8f9fa, #e9ecef);
    border-radius: 10px;
    border-top: 3px solid var(--secondary-color);
}

/* Services Section */
.services-section {
    padding: 100px 0;
    background: var(--white);
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 2.5rem;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.service-card {
    background: var(--white);
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: var(--transition);
    border: 1px solid #eee;
    text-align: center;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow);
    border-color: var(--secondary-color);
}

.service-icon {
    width: 60px;
    height: 60px;
    background: var(--gradient-accent);
    color: var(--white);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 800;
    margin: 0 auto 25px;
}

.service-card h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

.service-card p {
    color: var(--light-text);
    font-size: 0.95rem;
}

/* About Section */
.about-section {
    padding: 100px 0;
    background: var(--bg-color);
}

.about-grid {
    display: flex;
    align-items: center;
    gap: 80px;
}

.about-image {
    flex: 1;
    display: flex;
    justify-content: center;
}

.css-illustration {
    width: 300px;
    height: 300px;
    position: relative;
}

.flask {
    width: 150px;
    height: 200px;
    background: rgba(52, 152, 219, 0.1);
    border: 4px solid var(--primary-color);
    border-radius: 20px 20px 80px 80px;
    position: absolute;
    bottom: 20px;
    left: 75px;
    overflow: hidden;
}

.flask::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 60%;
    background: var(--secondary-color);
    opacity: 0.6;
}

.bubble {
    width: 20px;
    height: 20px;
    background: var(--secondary-color);
    border-radius: 50%;
    position: absolute;
    bottom: 150px;
    left: 120px;
    animation: float 3s infinite ease-in-out;
}

.bubble.b2 {
    width: 15px;
    height: 15px;
    left: 160px;
    bottom: 180px;
    animation-delay: 1s;
}

@keyframes float {
    0%, 100% { transform: translateY(0); opacity: 0; }
    50% { transform: translateY(-50px); opacity: 1; }
    90% { opacity: 0; }
}

.about-text {
    flex: 1.2;
}

.stats {
    display: flex;
    gap: 40px;
    margin-top: 30px;
}

.stat-item strong {
    display: block;
    font-size: 2rem;
    color: var(--secondary-color);
}

.stat-item span {
    color: var(--light-text);
    font-weight: 600;
}

/* Contact Section */
.contact-section {
    padding: 100px 0;
    background: var(--white);
}

.contact-card {
    display: flex;
    background: var(--primary-color);
    border-radius: 30px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.contact-info {
    flex: 1;
    padding: 60px;
    color: var(--white);
    background: var(--gradient-primary);
}

.contact-info h2 {
    color: var(--white);
    font-size: 2.5rem;
}

.info-list {
    margin-top: 40px;
}

.info-item {
    margin-bottom: 20px;
}

.info-item span {
    font-weight: 700;
    color: var(--secondary-color);
    margin-right: 10px;
}

.contact-form {
    flex: 1.5;
    padding: 60px;
    background: var(--white);
}

.form-group {
    margin-bottom: 20px;
}

.form-group input, 
.form-group textarea {
    width: 100%;
    padding: 15px 20px;
    border: 1px solid #ddd;
    border-radius: 10px;
    font-family: inherit;
    font-size: 1rem;
    outline: none;
    transition: var(--transition);
}

.form-group input:focus, 
.form-group textarea:focus {
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 3px rgba(26, 188, 156, 0.1);
}

/* Footer */
.footer {
    padding: 80px 0 30px;
    background: #1a252f;
    color: #bdc3c7;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 50px;
    margin-bottom: 50px;
}

.footer-brand .logo {
    color: var(--white);
    margin-bottom: 20px;
    display: block;
}

.footer-links h4, 
.footer-legal h4 {
    color: var(--white);
    margin-bottom: 25px;
}

.footer-links ul, 
.footer-legal ul {
    list-style: none;
}

.footer-links li, 
.footer-legal li {
    margin-bottom: 12px;
}

.footer-links a, 
.footer-legal a {
    text-decoration: none;
    color: #bdc3c7;
    transition: var(--transition);
}

.footer-links a:hover, 
.footer-legal a:hover {
    color: var(--secondary-color);
    padding-left: 5px;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255,255,255,0.05);
    font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 992px) {
    .hero .container, 
    .about-grid {
        flex-direction: column;
        text-align: center;
    }
    
    .hero-content h1 {
        font-size: 2.8rem;
    }
    
    .hero-content p {
        margin: 0 auto 2.5rem;
    }
    
    .contact-card {
        flex-direction: column;
    }
    
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 80px;
        left: 0;
        width: 100%;
        background: var(--white);
        flex-direction: column;
        padding: 20px 0;
        box-shadow: 0 10px 10px rgba(0,0,0,0.05);
    }
    
    .nav-links.active {
        display: flex;
    }
    
    .nav-links li {
        margin: 15px 0;
        text-align: center;
    }
    
    .menu-toggle {
        display: block;
    }
    
    .hero-content h1 {
        font-size: 2.2rem;
    }
    
    .main-content {
        padding: 30px;
    }
    
    .article-header h2 {
        font-size: 1.8rem;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
    }
}
