:root {
    --bg-color: #0d1117;
    --text-color: #c9d1d9;
    --primary-color: #58a6ff;
    --secondary-color: #8b949e;
    --card-bg: rgba(22, 27, 34, 0.7);
    --border-color: #30363d;
    --ad-bg: #fffbe6;
    --ad-text: #111;
    --ad-border: #fbbc04;
    --gradient-start: #1f6feb;
    --gradient-end: #ab7df8;
}

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

html {
    scroll-behavior: smooth;
}

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

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

header {
    background: rgba(13, 17, 23, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--border-color);
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo {
    font-size: 1.75rem;
    font-weight: 800;
    background: linear-gradient(90deg, var(--gradient-start), var(--gradient-end));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.5px;
}

nav a {
    color: var(--text-color);
    text-decoration: none;
    margin-left: 30px;
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.3s ease;
}

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

.section {
    padding: 120px 0;
}

.section-subtitle {
    text-align: center;
    color: var(--secondary-color);
    margin-bottom: 60px;
    font-size: 1.1rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero {
    min-height: 85vh;
    display: flex;
    align-items: center;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at center, rgba(31,111,235,0.15) 0%, rgba(13,17,23,1) 40%);
    z-index: -1;
}

.hero h2 {
    font-size: 4.5rem;
    font-weight: 800;
    margin-bottom: 24px;
    line-height: 1.1;
    letter-spacing: -1.5px;
    color: #ffffff;
}

.hero p {
    font-size: 1.3rem;
    color: var(--secondary-color);
    margin-bottom: 40px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.btn {
    display: inline-block;
    padding: 16px 36px;
    background: linear-gradient(90deg, var(--gradient-start), var(--gradient-end));
    color: white;
    text-decoration: none;
    font-weight: 600;
    border-radius: 40px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    font-size: 1.1rem;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(171, 125, 248, 0.3);
}

h2 {
    font-size: 2.75rem;
    margin-bottom: 60px;
    text-align: center;
    font-weight: 800;
    letter-spacing: -1px;
    color: #ffffff;
}

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

.card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 40px 30px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), border-color 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}

.card:hover {
    transform: translateY(-10px);
    border-color: var(--primary-color);
    box-shadow: 0 10px 30px rgba(88, 166, 255, 0.1);
}

.skills .card {
    text-align: center;
}

.card-icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

.skills h3 {
    font-weight: 600;
    font-size: 1.2rem;
    color: #e6edf3;
}

.timeline {
    max-width: 700px;
    margin: 0 auto;
    border-left: 2px solid var(--border-color);
    padding-left: 40px;
    position: relative;
}

.timeline-item {
    margin-bottom: 60px;
    position: relative;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -46px;
    top: 5px;
    width: 14px;
    height: 14px;
    background: var(--gradient-end);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--gradient-end);
}

.timeline-item h3 {
    font-size: 1.5rem;
    margin-bottom: 5px;
    color: #ffffff;
}

.timeline-date {
    color: var(--primary-color);
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 15px;
}

.ad-placeholder {
    background: var(--ad-bg);
    border: 3px dashed var(--ad-border);
    color: var(--ad-text);
    padding: 50px 30px;
    text-align: center;
    margin: 60px 0;
    border-radius: 12px;
    position: relative;
    box-shadow: inset 0 0 20px rgba(251, 188, 4, 0.2), 0 10px 30px rgba(0,0,0,0.3);
    overflow: hidden;
}

.ad-placeholder::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: repeating-linear-gradient(
        45deg,
        transparent,
        transparent 10px,
        rgba(251, 188, 4, 0.05) 10px,
        rgba(251, 188, 4, 0.05) 20px
    );
    pointer-events: none;
}

.ad-placeholder span {
    position: absolute;
    top: 8px;
    right: 12px;
    font-size: 0.75rem;
    color: #666;
    font-weight: bold;
    z-index: 2;
}

.ad-content {
    position: relative;
    z-index: 1;
}

.ad-content h3 {
    color: #d93025;
    font-weight: 900;
    font-size: 1.8rem;
    margin-bottom: 15px;
    animation: flash 1s infinite alternate;
}

@keyframes flash {
    0% { opacity: 1; text-shadow: 0 0 5px #d93025; }
    100% { opacity: 0.7; text-shadow: 0 0 15px #d93025; }
}

.ad-content p {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 20px;
}

.ad-btn {
    background: #1a73e8;
    color: white;
    border: none;
    padding: 12px 30px;
    font-size: 1.1rem;
    font-weight: bold;
    border-radius: 4px;
    cursor: pointer;
    animation: pulseAd 1.5s infinite;
}

@keyframes pulseAd {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); background: #174ea6; }
    100% { transform: scale(1); }
}

.incident-date {
    color: var(--secondary-color);
    font-size: 0.85rem;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.incident-agent {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 1.4rem;
}

.incident-desc strong, .incident-res strong {
    color: #fff;
}

.incident-desc {
    margin-bottom: 15px;
}

.testimonials .testimonial {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 40px;
    position: relative;
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}

.testimonial::before {
    content: '"';
    position: absolute;
    top: 10px;
    left: 20px;
    font-size: 4rem;
    color: rgba(88, 166, 255, 0.2);
    font-family: serif;
    line-height: 1;
}

.testimonial blockquote {
    font-size: 1.1rem;
    font-style: italic;
    margin-bottom: 25px;
    position: relative;
    z-index: 1;
    color: #e6edf3;
}

.testimonial cite {
    font-weight: 600;
    color: var(--gradient-end);
    display: block;
    font-size: 0.95rem;
}

footer {
    text-align: center;
    padding: 50px 0;
    border-top: 1px solid var(--border-color);
    color: var(--secondary-color);
    font-size: 0.9rem;
    background: rgba(13, 17, 23, 0.5);
}

.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

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

/* Form Styles */
.contact-form {
    max-width: 600px;
    margin: 0 auto;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #e6edf3;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 14px 15px;
    background: rgba(13, 17, 23, 0.8);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-color);
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(88, 166, 255, 0.2);
}

.submit-btn {
    width: 100%;
    cursor: pointer;
    border: none;
    font-size: 1.1rem;
    margin-top: 10px;
}

@media (max-width: 768px) {
    .hero h2 { font-size: 3rem; }
    header .container { flex-direction: column; height: auto; padding: 20px; }
    nav { margin-top: 20px; }
    nav a { margin: 0 10px; font-size: 0.9rem; }
    .timeline { padding-left: 20px; }
    .timeline-item::before { left: -27px; }
}
