/* Base Styles */
:root {
    --primary: #00bcd4;
    --primary-dark: #008ba3;
    --primary-light: #62efff;
    --secondary: #ffffff;
    --text: #333333;
    --text-light: #666666;
    --background: #f9f9f9;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --border: 1px solid #e0e0e0;
    --radius: 8px;
    --spacing: 20px;
    --container-width: 1200px;
}

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

body {
    font-family: 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text);
    background-color: var(--background);
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--primary-dark);
}

img {
    max-width: 100%;
    height: auto;
}

.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--spacing);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    margin-bottom: 20px;
    font-weight: 600;
    line-height: 1.3;
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.5rem;
}

p {
    margin-bottom: 1.5rem;
}

.center {
    text-align: center;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 24px;
    background-color: var(--primary);
    color: white;
    border: none;
    border-radius: var(--radius);
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.btn:hover {
    background-color: var(--primary-dark);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.glow-btn {
    position: relative;
    overflow: hidden;
}

.glow-btn:after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.3) 0%, rgba(255,255,255,0) 70%);
    transform: scale(0);
    opacity: 0;
    transition: transform 0.5s, opacity 0.3s;
}

.glow-btn:hover:after {
    transform: scale(1);
    opacity: 1;
}

.btn-accept {
    background-color: var(--primary);
}

.btn-customize {
    background-color: #555;
}

.btn-reject {
    background-color: #999;
}

.submit-btn {
    width: 100%;
    font-size: 1.1em;
    padding: 15px;
    margin-top: 10px;
}

/* Header */
header {
    background-color: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px var(--spacing);
}

.logo img {
    height: 50px;
}

nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    margin-left: 30px;
}

nav ul li a {
    color: var(--text);
    font-weight: 500;
    position: relative;
    padding: 5px 0;
}

nav ul li a:hover, nav ul li a.active {
    color: var(--primary);
}

nav ul li a:after {
    content: '';
    position: absolute;
    width: 100%;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--primary);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

nav ul li a:hover:after, nav ul li a.active:after {
    transform: scaleX(1);
}

/* Hero Section */
.hero {
    padding: 80px 0;
    background: linear-gradient(135deg, #f9f9f9 0%, #e6f7f9 100%);
}

.hero-content {
    max-width: 600px;
}

.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 15px;
    color: var(--text);
}

.hero-content h2 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: var(--primary);
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    color: var(--text-light);
}

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

.hero-image {
    width: 45%;
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
    100% {
        transform: translateY(0px);
    }
}

/* Features Section */
.features {
    padding: 80px 0;
    background-color: white;
}

.features h2 {
    text-align: center;
    margin-bottom: 50px;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.feature-item {
    text-align: center;
    padding: 30px;
    border-radius: var(--radius);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-item:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow);
}

.feature-icon {
    margin-bottom: 20px;
    display: flex;
    justify-content: center;
}

.feature-item h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: var(--primary);
}

/* Latest Posts */
.latest-posts {
    padding: 80px 0;
    background-color: var(--background);
}

.latest-posts h2 {
    text-align: center;
    margin-bottom: 50px;
}

.post-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.post-full-grid {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.post-card {
    background: white;
    border-radius: var(--radius);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.post-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.post-image {
    height: 200px;
    overflow: hidden;
}

.post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

.post-content {
    padding: 20px;
}

.post-content h3, .post-content h2 {
    margin-bottom: 10px;
    font-size: 1.3rem;
    color: var(--text);
}

.post-content p {
    color: var(--text-light);
    margin-bottom: 15px;
}

.post-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 15px;
}

.read-more {
    display: inline-block;
    margin-top: 10px;
    font-weight: 500;
}

/* Real-time Section */
.real-time, .real-time-section {
    padding: 60px 0;
    background-color: white;
}

.real-time .container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.time-widget, .calculator-widget {
    text-align: center;
    padding: 30px;
    background-color: var(--background);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.time-widget h2, .calculator-widget h2 {
    margin-bottom: 20px;
    color: var(--primary);
}

.clock {
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--primary);
    text-shadow: 0 2px 10px rgba(0, 188, 212, 0.2);
    margin-bottom: 20px;
}

.calculator {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.calc-input {
    display: flex;
    flex-direction: column;
    text-align: left;
}

.calc-input label {
    margin-bottom: 5px;
    font-weight: 500;
}

.calc-input input {
    padding: 10px;
    border: var(--border);
    border-radius: var(--radius);
}

.calc-result {
    margin-top: 20px;
    font-size: 1.1rem;
}

.calc-result span {
    font-weight: bold;
    color: var(--primary);
}

/* Page Banner */
.page-banner {
    padding: 80px 0;
    background: linear-gradient(135deg, #f9f9f9 0%, #e6f7f9 100%);
    text-align: center;
}

.page-banner h1 {
    font-size: 3rem;
    margin-bottom: 15px;
    color: var(--text);
}

.page-banner p {
    font-size: 1.2rem;
    color: var(--text-light);
    max-width: 700px;
    margin: 0 auto;
}

/* About Page */
.about-story, .about-values {
    padding: 80px 0;
}

.about-story {
    background-color: white;
}

.about-values {
    background-color: var(--background);
}

.story-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.story-image img {
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

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

.value-item {
    background-color: white;
    padding: 30px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transition: transform 0.3s ease;
}

.value-item:hover {
    transform: translateY(-10px);
}

.value-icon {
    margin-bottom: 20px;
}

.value-item h3 {
    color: var(--primary);
    margin-bottom: 15px;
}

/* Team Section */
.team {
    padding: 80px 0;
    background-color: white;
}

.team h2 {
    text-align: center;
    margin-bottom: 50px;
}

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

.team-member {
    text-align: center;
    transition: transform 0.3s ease;
}

.team-member:hover {
    transform: translateY(-10px);
}

.team-member img {
    border-radius: 50%;
    width: 200px;
    height: 200px;
    object-fit: cover;
    margin-bottom: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.team-member h3 {
    font-size: 1.3rem;
    margin-bottom: 5px;
    color: var(--text);
}

.team-member p {
    color: var(--text-light);
}

.team-member p:first-of-type {
    font-weight: 500;
    color: var(--primary);
    margin-bottom: 10px;
}

/* Contact Page */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    margin-top: 40px;
}

.contact-details {
    background-color: white;
    padding: 40px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.contact-details h2 {
    margin-bottom: 30px;
    color: var(--primary);
}

.contact-item {
    display: flex;
    margin-bottom: 30px;
}

.contact-icon {
    margin-right: 20px;
}

.contact-text h3 {
    font-size: 1.2rem;
    margin-bottom: 5px;
    color: var(--text);
}

.contact-text p, .contact-text address {
    color: var(--text-light);
    font-style: normal;
}

.contact-form-wrapper {
    background-color: white;
    padding: 40px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.contact-form-wrapper h2 {
    margin-bottom: 30px;
    color: var(--primary);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    margin-bottom: 5px;
    font-weight: 500;
}

.form-group input, .form-group textarea {
    padding: 12px;
    border: var(--border);
    border-radius: var(--radius);
    transition: border-color 0.3s ease;
}

.form-group input:focus, .form-group textarea:focus {
    border-color: var(--primary);
    outline: none;
}

.required {
    color: #f44336;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
}

.checkbox-label input {
    width: auto;
    margin-right: 10px;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1001;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background-color: white;
    padding: 40px;
    border-radius: var(--radius);
    max-width: 500px;
    width: 90%;
    text-align: center;
    position: relative;
    animation: modalOpen 0.3s ease-in-out;
}

@keyframes modalOpen {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.close-modal {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 24px;
    cursor: pointer;
    color: #aaa;
}

.modal-icon {
    margin-bottom: 20px;
}

.modal h2 {
    margin-bottom: 15px;
    color: var(--primary);
}

.close-btn {
    margin-top: 20px;
}

/* Blog Post */
.blog-post {
    padding: 60px 0;
}

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

.post-header h1 {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.post-featured-image {
    margin-top: 30px;
}

.post-featured-image img {
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.post-content {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text);
}

.post-content h2 {
    margin-top: 40px;
    margin-bottom: 20px;
    font-size: 1.8rem;
    color: var(--primary-dark);
}

.post-content h3 {
    margin-top: 30px;
    margin-bottom: 15px;
    font-size: 1.4rem;
    color: var(--primary-dark);
}

.post-content ul, .post-content ol {
    margin-bottom: 30px;
    margin-left: 20px;
}

.post-content li {
    margin-bottom: 10px;
}

.post-navigation {
    margin-top: 60px;
    padding-top: 30px;
    border-top: var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.post-back-link {
    display: inline-block;
    padding: 10px 20px;
    background-color: var(--background);
    border-radius: var(--radius);
    font-weight: 500;
}

.post-share {
    display: flex;
    align-items: center;
    gap: 15px;
}

.post-share span {
    color: var(--text-light);
}

.post-share a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: var(--background);
    color: var(--text);
    transition: all 0.3s ease;
}

.post-share a:hover {
    background-color: var(--primary);
    color: white;
}

/* Cookie Notice */
.cookie-notice {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    padding: 15px 0;
    backdrop-filter: blur(10px);
}

.cookie-content {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    text-align: center;
}

.cookie-content p {
    margin-bottom: 0;
    max-width: 800px;
}

.cookie-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
}

/* Footer */
footer {
    background-color: #333;
    color: white;
    padding: 60px 0 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-info .footer-logo {
    height: 50px;
    margin-bottom: 15px;
}

.footer-links h3, .footer-legal h3, .footer-contact h3 {
    color: var(--primary);
    margin-bottom: 20px;
    font-size: 1.2rem;
}

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

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

.footer-links a, .footer-legal a, .footer-contact a {
    color: #ccc;
    transition: color 0.3s ease;
}

.footer-links a:hover, .footer-legal a:hover, .footer-contact a:hover {
    color: var(--primary);
}

.footer-contact address {
    margin-bottom: 20px;
    font-style: normal;
    line-height: 1.8;
}

.social-icons {
    display: flex;
    gap: 15px;
}

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: #444;
    color: white;
    transition: all 0.3s ease;
}

.social-icons a:hover {
    background-color: var(--primary);
    transform: translateY(-3px);
}

.copyright {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #444;
    font-size: 0.9rem;
    color: #999;
}

/* Responsive Adjustments */
@media (max-width: 992px) {
    .hero .container {
        flex-direction: column;
        text-align: center;
    }
    
    .hero-content {
        max-width: 100%;
        margin-bottom: 40px;
    }
    
    .hero-image {
        width: 70%;
    }
    
    .story-grid {
        grid-template-columns: 1fr;
    }
    
    .story-image {
        order: 1;
    }
    
    .story-content {
        order: 2;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    header .container {
        flex-direction: column;
        padding: 15px;
    }
    
    .logo {
        margin-bottom: 15px;
    }
    
    nav ul {
        justify-content: center;
    }
    
    nav ul li {
        margin: 0 10px;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.6rem;
    }
    
    .hero-content h1 {
        font-size: 2.2rem;
    }
    
    .hero-content h2 {
        font-size: 1.6rem;
    }
    
    .feature-grid, .post-grid {
        grid-template-columns: 1fr;
    }
    
    .values-grid, .team-grid {
        grid-template-columns: 1fr;
    }
    
    .team-member img {
        width: 150px;
        height: 150px;
    }
    
    .cookie-content {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 576px) {
    nav ul {
        flex-wrap: wrap;
        gap: 15px;
    }
    
    nav ul li {
        margin: 0;
    }
    
    .hero {
        padding: 50px 0;
    }
    
    .feature-item, .value-item, .team-member {
        padding: 20px;
    }
    
    .contact-details, .contact-form-wrapper {
        padding: 20px;
    }
    
    .cookie-buttons {
        flex-direction: column;
        width: 100%;
    }
    
    .cookie-buttons button {
        width: 100%;
    }
}
