/* ---------- Base & Reset ---------- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #333;
    background: linear-gradient(135deg, #0f2027 0%, #203a43 50%, #2c5364 100%);
    min-height: 100vh;
}

/* ---------- Navigation ---------- */
nav {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 15px;
    background: rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
}

nav a {
    color: white;
    text-decoration: none;
    font-size: 1.1em;
    font-weight: bold;
    margin: 0 15px;
    padding: 8px 20px;
    border-radius: 20px;
    transition: background 0.3s, transform 0.3s;
}

nav a:hover,
nav a.active {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

/* ---------- Typography & Utility ---------- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.container-sm {
    max-width: 600px;
}

header {
    text-align: center;
    color: white;
    padding: 80px 0;
}

header.contact-header {
    padding: 40px 0 20px;
}

h1.index-title {
    font-size: 4em;
    margin-bottom: 15px;
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.5);
}

h1.gradient-title {
    font-size: 2.8em;
    margin-bottom: 30px;
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-align: center;
}

h1.contact-title {
    font-size: 2.5em;
    margin-bottom: 10px;
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.subtitle {
    font-size: 1.6em;
    margin-bottom: 25px;
    opacity: 0.95;
}

.subtitle-contact {
    text-align: center;
    color: #666;
    margin-bottom: 40px;
    font-size: 1.2em;
}

/* ---------- Index Page Components ---------- */
.hero-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.15);
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: bold;
    backdrop-filter: blur(10px);
}

section {
    background: rgba(255, 255, 255, 0.95);
    margin: 40px 0;
    border-radius: 25px;
    padding: 50px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    animation: slideUp 0.8s ease-out;
    backdrop-filter: blur(10px);
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

h2 {
    font-size: 2.8em;
    margin-bottom: 30px;
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-align: center;
}

.about-section p {
    font-size: 1.15em;
    line-height: 1.8;
    color: #444;
    text-align: justify;
}

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

.skill-card {
    background: linear-gradient(145deg, #f8f9fa, #e9ecef);
    padding: 30px 25px;
    border-radius: 20px;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 2px solid rgba(17, 153, 142, 0.2);
}

.skill-card:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: 0 25px 80px rgba(17, 153, 142, 0.3);
    border-color: #11998e;
}

.skill-icon {
    font-size: 3.5em;
    margin-bottom: 15px;
    display: block;
}

.tanknote-section {
    text-align: center;
}

.tanknote-mockup {
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
    color: white;
    padding: 40px;
    border-radius: 20px;
    margin: 30px auto;
    font-family: monospace;
    max-width: 900px;
}

.promo-text {
    font-size: 1.3em;
    font-weight: bold;
    margin-bottom: 20px;
    background: rgba(255, 255, 255, 0.2);
    padding: 15px;
    border-radius: 10px;
}

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

.feature-card {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
}

.feature-card:hover {
    transform: translateY(-5px);
}

.feature-emoji {
    font-size: 2.5em;
    display: block;
    margin-bottom: 15px;
}

.cta-button {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 20px 50px;
    border-radius: 50px;
    display: inline-block;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.2em;
    transition: all 0.3s;
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.4);
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(102, 126, 234, 0.6);
}

/* ---------- Contact Form Components ---------- */
.card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 25px;
    padding: 60px 50px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(15px);
    animation: slideUp 0.8s ease-out;
    margin-top: 20px;
    margin-bottom: 40px;
}

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

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #444;
}

input,
textarea,
select {
    width: 100%;
    padding: 15px 20px;
    border: 2px solid #e1e5e9;
    border-radius: 12px;
    font-size: 16px;
    transition: all 0.3s;
    font-family: inherit;
}

input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: #11998e;
    box-shadow: 0 0 0 3px rgba(17, 153, 142, 0.1);
    transform: translateY(-2px);
}

textarea {
    height: 120px;
    resize: vertical;
}

.captcha-container {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 15px;
    border: 2px solid #e9ecef;
    margin-bottom: 25px;
}

.captcha-display {
    font-size: 4em;
    font-weight: bold;
    text-align: center;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
    line-height: 1;
    min-height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.color-options {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 10px;
    margin-top: 15px;
}

.color-btn {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    border: 3px solid transparent;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.color-btn:hover {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.color-btn.selected {
    border-color: #11998e;
    transform: scale(1.15);
    box-shadow: 0 0 0 3px rgba(17, 153, 142, 0.3), 0 8px 25px rgba(0, 0, 0, 0.4);
}

.captcha-status {
    margin-top: 10px;
    padding: 10px;
    border-radius: 8px;
    font-weight: 500;
    text-align: center;
}

.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.submit-btn {
    width: 100%;
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
    color: white;
    padding: 18px 30px;
    border: none;
    border-radius: 15px;
    font-size: 1.2em;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.submit-btn:hover:not(:disabled) {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(17, 153, 142, 0.4);
}

.submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.success-message {
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    color: #155724;
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    display: none;
    margin-top: 25px;
}

.success-message.show {
    display: block;
    animation: fadeIn 0.5s;
}

.error-message {
    background: linear-gradient(135deg, #f8d7da 0%, #f5c6cb 100%);
    color: #721c24;
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    display: none;
    margin-top: 25px;
}

.error-message.show {
    display: block;
    animation: fadeIn 0.5s;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

@media (max-width: 768px) {
    h1.index-title {
        font-size: 2.8em;
    }

    h1.contact-title {
        font-size: 2em;
    }

    section {
        padding: 40px 25px;
        margin: 20px 0;
    }

    .skills-grid,
    .features-grid {
        grid-template-columns: 1fr;
    }

    .card {
        padding: 40px 30px;
        margin: 10px;
    }

    .color-options {
        grid-template-columns: repeat(4, 1fr);
    }
}