:root {
    --primary-color: #3498db;
    --primary-dark: #2980b9;
    --secondary-color: #2c3e50;
    --text-color: #000000;
    --light-bg: #f8f9fa;
    --white: #ffffff;
    --notch-height: 60px;
    --notch-width: 80%;
    --notch-max-width: 800px;
    --font-color-light: #000000;
    --font-color-dark: #ffffff;
    --bg-color-light: #f8f9fa;
    --bg-color-dark: #1a1a1a;
    --card-bg-light: #ffffff;
    --card-bg-dark: #2c2c2c;
    --footer-bg-light: #2c3e50;
    --footer-bg-dark: #f0f0f0;
    --footer-text-light: #f8f9fa;
    --footer-text-dark: #333;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: var(--bg-color-light);
    color: var(--font-color-light);
    line-height: 1.6;
    transition: background-color 0.3s, color 0.3s;
}

body.dark-mode {
    background-color: var(--bg-color-dark);
    color: var(--font-color-dark);
}

/* Color Picker */
.color-picker {
    position: fixed;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    background: var(--card-bg-light);
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    width: 220px;
    transition: background-color 0.3s;
}

body.dark-mode .color-picker {
    background: var(--card-bg-dark);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.color-picker h3 {
    margin-bottom: 15px;
    font-size: 16px;
    text-align: center;
    color: var(--secondary-color);
}

.color-section {
    margin-top: 20px;
}

.color-section h4 {
    margin-bottom: 10px;
    font-size: 14px;
    color: var(--secondary-color);
}

.color-picker input[type="color"] {
    width: 100%;
    height: 40px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.color-presets {
    display: flex;
    justify-content: space-between;
    margin-top: 15px;
}

.preset {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 2px solid transparent;
    cursor: pointer;
    transition: transform 0.2s;
}

.preset:hover {
    transform: scale(1.1);
}

/* Text Color Options */
.text-color-section {
    margin-top: 20px;
    transition: opacity 0.3s, visibility 0.3s;
}

body.dark-mode .text-color-section {
    opacity: 0;
    visibility: hidden;
    height: 0;
    margin: 0;
    padding: 0;
    overflow: hidden;
}

.text-color-section h4 {
    margin-bottom: 10px;
    font-size: 14px;
    color: var(--secondary-color);
}

.text-color-options {
    display: flex;
    justify-content: space-between;
    margin-top: 10px;
}

.text-color-option {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 2px solid transparent;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    transition: transform 0.2s, border-color 0.2s;
}

.text-color-option:hover {
    transform: scale(1.1);
}

.text-color-option.active {
    border-color: var(--primary-color);
}

/* Dark Mode Toggle */
.theme-controls {
    margin-bottom: 20px;
}

.mode-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}

.switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: 0.4s;
    border-radius: 24px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 16px;
    width: 16px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: 0.4s;
    border-radius: 50%;
}

input:checked + .slider {
    background-color: var(--primary-color);
}

input:checked + .slider:before {
    transform: translateX(26px);
}

/* Dynamic Island Header */
.dynamic-header {
    position: relative;
    height: var(--notch-height);
    display: flex;
    justify-content: center;
    align-items: center;
}

.notch {
    width: var(--notch-width);
    max-width: var(--notch-max-width);
    height: calc(var(--notch-height) - 20px);
    background: var(--primary-color);
    border-radius: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    z-index: 10;
    padding: 0 20px;
}

.notch-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    color: white;
}

.logo {
    font-size: 1.2rem;
    font-weight: bold;
}

.notch-nav {
    flex-grow: 1;
    margin-left: 30px;
    position: relative;
}

.notch-links {
    display: flex;
    list-style: none;
    gap: 1.5rem;
}

.notch-links a {
    color: white;
    text-decoration: none;
    transition: opacity 0.3s;
}

.notch-links a:hover {
    opacity: 0.8;
}

/* Dropdown Menu */
.dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;
}

.dropdown-toggle i {
    font-size: 0.8rem;
    transition: transform 0.3s;
}

.dropdown.active .dropdown-toggle i {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    color: #333;
    min-width: 200px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: opacity 0.3s, visibility 0.3s, transform 0.3s;
    z-index: 100;
}

.dropdown.active .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li {
    list-style: none;
}

.dropdown-menu li a {
    display: block;
    padding: 10px 15px;
    color: #333;
    text-decoration: none;
    transition: background 0.3s;
}

.dropdown-menu li a:hover {
    background: #f5f5f5;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Main Content */
.content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 5%;
}

.hero {
    text-align: center;
    padding: 3rem 0;
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-button {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 12px 30px;
    font-size: 1rem;
    border-radius: 30px;
    cursor: pointer;
    transition: background 0.3s;
}

.cta-button:hover {
    background: var(--primary-dark);
}

.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.feature-card {
    background: var(--card-bg-light);
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s, background-color 0.3s;
}

body.dark-mode .feature-card {
    background: var(--card-bg-dark);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.feature-card:hover {
    transform: translateY(-5px);
}

.feature-card i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    transition: color 0.3s;
}

.feature-card h3 {
    margin-bottom: 1rem;
    color: var(--primary-color);
    transition: color 0.3s;
}

.feature-card p {
    color: var(--text-color);
    transition: color 0.3s;
}

/* Footer */
.footer {
    background: var(--footer-bg-light);
    color: var(--footer-text-light);
    margin-top: 4rem;
    transition: background-color 0.3s, color 0.3s;
}

body.dark-mode .footer {
    background: var(--footer-bg-dark);
    color: var(--footer-text-dark);
}

.footer-layer-1 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    padding: 3rem 5%;
}

.footer-column h4 {
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 10px;
    color: inherit;
}

.footer-column h4::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 50px;
    height: 2px;
    background: var(--primary-color);
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 1rem;
    color: inherit;
}

.footer-column ul {
    list-style: none;
}

.footer-column ul li {
    margin-bottom: 10px;
}

.footer-column ul li a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-column ul li a:hover {
    color: var(--primary-color);
}

.contact-info li {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.contact-info i {
    color: var(--primary-color);
    width: 20px;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 1.5rem;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: inherit;
    transition: background 0.3s, color 0.3s;
}

body.dark-mode .social-links a {
    background: rgba(0, 0, 0, 0.1);
}

.social-links a:hover {
    background: var(--primary-color);
    color: white;
}

.footer-layer-2 {
    background: rgba(0, 0, 0, 0.2);
    padding: 1.5rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

body.dark-mode .footer-layer-2 {
    background: rgba(0, 0, 0, 0.05);
}

.footer-bottom-links a {
    color: inherit;
    text-decoration: none;
    margin-left: 1.5rem;
    transition: color 0.3s;
}

.footer-bottom-links a:hover {
    color: var(--primary-color);
}

/* Responsive Design */
@media (max-width: 768px) {
    .color-picker {
        left: 10px;
        width: 180px;
        padding: 15px;
    }

    .notch {
        width: 90%;
        height: calc(var(--notch-height) - 10px);
        padding: 0 15px;
    }

    .notch-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--primary-color);
        border-radius: 0 0 20px 20px;
        padding: 1rem;
        margin-left: 0;
        z-index: 50;
    }

    .notch-nav.active {
        display: block;
    }

    .notch-links {
        flex-direction: column;
        gap: 1rem;
    }

    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        background: rgba(255, 255, 255, 0.1);
        margin-top: 10px;
        border-radius: 8px;
        display: none;
    }

    .dropdown.active .dropdown-menu {
        display: block;
    }

    .dropdown-menu li a {
        color: white;
        padding: 8px 15px;
    }

    .dropdown-menu li a:hover {
        background: rgba(255, 255, 255, 0.2);
    }

    .menu-toggle {
        display: block;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .footer-layer-2 {
        flex-direction: column;
        text-align: center;
    }

    .footer-bottom-links {
        margin-top: 1rem;
    }

    .footer-bottom-links a {
        margin: 0 10px;
    }
}

@media (max-width: 480px) {
    .notch {
        width: 95%;
        height: calc(var(--notch-height) - 5px);
        padding: 0 10px;
    }

    .logo {
        font-size: 1rem;
    }

    .hero h1 {
        font-size: 1.8rem;
    }

    .features {
        grid-template-columns: 1fr;
    }
}
