:root {
    --bg-color: #0f1116;
    --bg-secondary: #171a21;
    --bg-card: #1c1f28;
    --text-color: #e6e6e6;
    --text-secondary: #a0a0a0;
    --accent-red: #c8303e;
    --accent-red-hover: #d84554;
    --accent-white: #f5f5f5;
    --border-color: rgba(200, 48, 62, 0.3);
    --border-radius: 6px;
    --transition: all 0.25s ease;
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

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

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.7;
    overflow-x: hidden;
}

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

header {
    padding: 20px 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 100;
    background-color: rgba(15, 17, 22, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(200, 48, 62, 0.1);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.logo {
    font-family: 'JetBrains Mono', monospace;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-color);
    text-decoration: none;
    display: inline-block;
}

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

.main-nav {
    display: inline-block;
    float: right;
}

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

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

.main-nav a {
    color: var(--text-color);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    position: relative;
    transition: var(--transition);
}

.main-nav a::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--accent-red);
    transform: scaleX(0);
    transform-origin: bottom right;
    transition: transform 0.3s;
}

.main-nav a:hover::after,
.main-nav a:focus::after {
    transform: scaleX(1);
    transform-origin: bottom left;
}

section {
    padding: 100px 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

h1, h2, h3 {
    font-family: 'JetBrains Mono', monospace;
    margin-bottom: 20px;
    line-height: 1.3;
    font-weight: 700;
}

h1 {
    font-size: 2.75rem;
    letter-spacing: -0.5px;
    background: linear-gradient(90deg, var(--accent-white), var(--accent-red));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

h2 {
    font-size: 2rem;
    color: var(--accent-white);
    position: relative;
    display: inline-block;
    margin-bottom: 40px;
}

p {
    margin-bottom: 20px;
}

.btn {
    display: inline-block;
    padding: 12px 25px;
    background-color: transparent;
    color: var(--accent-white);
    text-decoration: none;
    border: 2px solid var(--accent-red);
    border-radius: var(--border-radius);
    font-weight: 500;
    transition: var(--transition);
    cursor: pointer;
}

.btn:hover {
    background-color: var(--accent-red);
    transform: translateY(-2px);
}

.hook {
    font-size: 1.1rem;
    color: var(--accent-red);
    margin-bottom: 25px;
    font-weight: 500;
}

/* Hero Section */
#hero {
    background: linear-gradient(rgba(15, 17, 22, 0.95), rgba(15, 17, 22, 0.9)), url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><path d="M0,50 Q25,0 50,50 T100,50" fill="none" stroke="%23c8303e" stroke-width="1" opacity="0.2"/></svg>');
    background-size: 100px;
    position: relative;
    padding-top: 120px;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 650px;
}

.hero-content p {
    font-size: 1.1rem;
    margin-bottom: 30px;
}

/* Contact Section */
#contact {
    background-color: var(--bg-secondary);
}

.section-intro {
    max-width: 700px;
    margin-bottom: 50px;
}

.contact-form {
    max-width: 600px;
    margin: 40px auto 0;
    padding: 40px;
    background-color: var(--bg-card);
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow);
}

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

label {
    display: block;
    margin-bottom: 8px;
    color: var(--accent-white);
    font-weight: 500;
}

input, textarea, select {
    width: 100%;
    padding: 12px 15px;
    background-color: var(--bg-color);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    color: var(--text-color);
    font-family: 'Inter', sans-serif;
    resize: vertical;
    transition: var(--transition);
}

input:focus, textarea:focus, select:focus {
    outline: none;
    border-color: var(--accent-red);
    box-shadow: 0 0 0 2px rgba(200, 48, 62, 0.2);
}

button.btn {
    background-color: var(--accent-red);
    color: var(--accent-white);
    border: none;
}

button.btn:hover {
    background-color: var(--accent-red-hover);
}

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

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.footer-logo {
    font-family: 'JetBrains Mono', monospace;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--accent-white);
}

.footer-logo span {
    color: var(--accent-red);
}

.footer-links {
    margin-top: 15px;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    margin: 0 15px;
    transition: var(--transition);
    font-size: 0.9rem;
}

.footer-links a:hover {
    color: var(--accent-red);
}

/* Koru SVG */
.koru-svg {
    position: absolute;
    width: 300px;
    height: 300px;
    opacity: 0.05;
    z-index: 1;
}

.koru-top-right {
    top: 50px;
    right: -100px;
    transform: rotate(45deg);
}

.koru-bottom-left {
    bottom: -100px;
    left: -100px;
    transform: rotate(135deg);
}

/* Privacy Policy Specific */
.privacy-section {
    min-height: auto;
    padding: 40px 0;
}

.privacy-container {
    background-color: var(--bg-secondary);
    border-radius: var(--border-radius);
    padding: 40px;
    margin-top: 100px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
}

.last-updated {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 30px;
}

.email-protection {
    color: var(--accent-red);
    cursor: pointer;
    text-decoration: underline;
    display: inline-block;
}

/* Rotating Text */
.rotating-text-container {
    position: relative;
    height: 6em; /* Increased base height for desktop */
    margin-bottom: 20px;
    overflow: hidden;
}

.rotating-text {
    position: absolute;
    width: 100%;
    opacity: 0;
    transform: translateY(15px);
    transition: opacity 0.8s ease-in-out, transform 0.8s ease-in-out;
    color: var(--text-secondary);
    line-height: 1.7;
}

.rotating-text.active {
    opacity: 1;
    transform: translateY(0);
    text-shadow: 0 0 1px rgba(200, 48, 62, 0.1);
}

/* Adjust rotating text container height for different screen sizes */
@media (max-width: 1200px) {
    .rotating-text-container {
        height: 7.5em; /* Large screens */
    }
}

@media (max-width: 992px) {
    .rotating-text-container {
        height: 9em; /* Medium screens */
    }
}

@media (max-width: 768px) {
    .rotating-text-container {
        height: 10.5em; /* Small screens */
    }
}

@media (max-width: 576px) {
    .rotating-text-container {
        height: 12em; /* Extra small screens */
    }
}

@media (max-width: 480px) {
    .rotating-text-container {
        height: 14em; /* Mobile screens */
    }
}

/* Scroll Animation */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Terminal Cursor Effect */
.terminal-cursor {
    display: inline-block;
    width: 8px;
    height: 1.2em;
    background-color: var(--accent-red);
    margin-left: 5px;
    animation: blink 1s step-end infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

/* Responsive */
@media (max-width: 768px) {
    h1 {
        font-size: 2.2rem;
    }
    
    h2 {
        font-size: 1.8rem;
    }
    
    section {
        padding: 80px 0;
    }
    
    .cards {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-links {
        margin-top: 20px;
    }
    
    .koru-svg {
        width: 200px;
        height: 200px;
    }
    
    .rotating-text-container {
        height: 7em; /* Increase height for smaller screens */
    }
    
    .privacy-container {
        padding: 30px 20px;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 1.8rem;
    }
    
    .container {
        width: 95%;
        padding: 0 10px;
    }
    
    .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    
    .contact-form {
        padding: 25px;
    }
    
    .rotating-text-container {
        height: 9em; /* Further increase for mobile */
    }
    
    .privacy-container {
        padding: 20px 15px;
    }
}
