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

:root {
    --bg-primary: #e6f0fa;
    --bg-secondary: #ffffff;
    --text-primary: #1e3a5f;
    --text-secondary: #2c5282;
    --accent: #0077be;
    --accent-light: #4aa3ff;
    --accent-soft: #b8d9ff;
    --border: #c9e0ff;
    --card-bg: #ffffff;
    --nav-bg: rgba(255, 255, 255, 0.95);
    --footer-bg: #1e3a5f;
    --footer-text: #ffffff;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background: var(--bg-primary);
}

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

/* Navbar */
.navbar {
    background: var(--nav-bg);
    backdrop-filter: blur(10px);
    color: var(--text-primary);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid var(--border);
}

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

.logo {
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--accent);
    text-shadow: 0 2px 4px rgba(0, 119, 190, 0.2);
}

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

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    transition: all 0.3s;
}

.nav-links a:hover {
    color: var(--accent);
    background: var(--accent-soft);
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #4aa3ff 0%, #0077be 100%);
    color: white;
    padding: 120px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" opacity="0.1"><path d="M0 0 L100 100 M100 0 L0 100" stroke="white" stroke-width="1"/></svg>');
    pointer-events: none;
}

.hero .container {
    position: relative;
    z-index: 1;
}

.hero h1 {
    font-size: 4rem;
    margin-bottom: 1rem;
    text-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.hero h1 span {
    color: #ffd966;
    display: inline-block;
    animation: float 3s ease-in-out infinite;
}

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

.hero p {
    font-size: 1.3rem;
    color: rgba(255,255,255,0.95);
    margin-bottom: 2rem;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.btn {
    display: inline-block;
    padding: 14px 35px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.15);
}

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

.btn-primary:hover {
    background: var(--accent-soft);
}

.btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.btn-secondary:hover {
    background: rgba(255,255,255,0.1);
}

/* Features Section */
.features {
    padding: 80px 0;
    background: var(--bg-primary);
}

.features h2 {
    text-align: center;
    font-size: 2.8rem;
    margin-bottom: 3rem;
    color: var(--text-primary);
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
}

.features h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
    border-radius: 2px;
}

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

.feature-card {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 15px;
    border: 1px solid var(--border);
    transition: all 0.3s;
    box-shadow: 0 4px 6px rgba(0, 119, 190, 0.1);
}

.feature-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent);
    box-shadow: 0 8px 15px rgba(0, 119, 190, 0.2);
}

.feature-card h3 {
    color: var(--accent);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.feature-card p {
    color: var(--text-secondary);
}

/* PH's Note Section */
.ph-note {
    margin-top: 4rem;
    padding: 2.5rem;
    background: linear-gradient(135deg, #ffffff 0%, #e6f0fa 100%);
    border-radius: 20px;
    border: 2px solid var(--accent-light);
    box-shadow: 0 10px 30px rgba(0, 119, 190, 0.15);
}

.ph-note-content {
    display: flex;
    align-items: flex-start;
    gap: 2rem;
    flex-wrap: wrap;
}

.ph-avatar {
    font-size: 4rem;
    background: var(--accent);
    color: white;
    width: 100px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    box-shadow: 0 4px 10px rgba(0, 119, 190, 0.3);
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.ph-note-text h3 {
    color: var(--accent);
    margin-bottom: 1rem;
    font-size: 2rem;
}

.ph-note-text p {
    color: var(--text-primary);
    line-height: 1.8;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.ph-note-text blockquote {
    color: var(--accent);
    font-style: italic;
    font-size: 1.2rem;
    margin-top: 1rem;
    padding-left: 1rem;
    border-left: 4px solid var(--accent);
}

/* Screenshots Section */
.screenshots {
    padding: 80px 0;
    background: var(--bg-secondary);
}

.screenshots h2 {
    text-align: center;
    font-size: 2.8rem;
    margin-bottom: 3rem;
    color: var(--text-primary);
}

.screenshot-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.screenshot-item {
    background: var(--card-bg);
    border-radius: 15px;
    overflow: hidden;
    border: 1px solid var(--border);
    transition: all 0.3s;
    box-shadow: 0 4px 6px rgba(0, 119, 190, 0.1);
}

.screenshot-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 119, 190, 0.2);
}

.screenshot-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
    border-bottom: 1px solid var(--border);
}

.screenshot-item p {
    padding: 1rem;
    text-align: center;
    color: var(--text-secondary);
    font-weight: 500;
}

/* Download Section */
.download {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--accent-light) 0%, var(--accent) 100%);
    color: white;
    text-align: center;
}

.download h2 {
    font-size: 2.8rem;
    margin-bottom: 1rem;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.download p {
    color: rgba(255,255,255,0.95);
    margin-bottom: 2rem;
    font-size: 1.2rem;
}

.download-options {
    display: flex;
    gap: 2rem;
    justify-content: center;
    flex-wrap: wrap;
}

.download-card {
    background: rgba(255,255,255,0.95);
    padding: 2rem;
    border-radius: 15px;
    min-width: 280px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.download-card h3 {
    color: var(--accent);
    margin-bottom: 1rem;
    font-size: 1.8rem;
}

.download-card .size {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.download-card .btn {
    background: var(--accent);
    color: white;
    width: 100%;
    border: none;
}

.download-card .btn:hover {
    background: var(--accent-light);
}

/* Footer */
footer {
    background: var(--footer-bg);
    color: var(--footer-text);
    text-align: center;
    padding: 2rem 0;
    border-top: 1px solid var(--accent-light);
}

/* Responsive */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero p {
        font-size: 1.1rem;
    }
    
    .buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        width: 100%;
        max-width: 300px;
    }
    
    .ph-note-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .ph-note-text blockquote {
        border-left: none;
        border-top: 4px solid var(--accent);
        padding-top: 1rem;
        padding-left: 0;
    }
    
    .screenshot-grid {
        grid-template-columns: 1fr;
    }
    
    .download-options {
        flex-direction: column;
        align-items: center;
    }
    
    .download-card {
        width: 100%;
        max-width: 350px;
    }
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
    background: var(--accent);
    border-radius: 6px;
    border: 3px solid var(--bg-primary);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent-light);
}

/* Selection Styling */
::selection {
    background: var(--accent);
    color: white;
}
