/* ===== Reset & Base Styles ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #6366f1;
    --primary-dark: #4f46e5;
    --secondary: #8b5cf6;
    --cyber: #06b6d4;
    --system: #10b981;
    --dark: #0f172a;
    --dark-light: #1e293b;
    --dark-lighter: #334155;
    --text: #f1f5f9;
    --text-muted: #94a3b8;
    --gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-cyber: linear-gradient(135deg, #06b6d4 0%, #3b82f6 100%);
    --gradient-system: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background: var(--dark);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===== Navigation ===== */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid rgba(148, 163, 184, 0.1);
    transition: all 0.3s ease;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.2rem 20px;
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    background: var(--gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-decoration: none;
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: scale(1.05);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.nav-link {
    color: var(--text);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.nav-link:hover {
    color: var(--primary);
}

.btn-contact {
    padding: 0.6rem 1.5rem;
    background: var(--gradient);
    border-radius: 8px;
    color: white !important;
}

.btn-contact::after {
    display: none;
}

.btn-contact:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(102, 102, 241, 0.3);
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--text);
    border-radius: 3px;
    transition: all 0.3s ease;
}

/* ===== Hero Section ===== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
}

.hero-particles {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.hero-particles::before {
    content: '';
    position: absolute;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.15) 0%, transparent 70%);
    top: -250px;
    right: -250px;
    animation: float 20s infinite;
}

.hero-particles::after {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.15) 0%, transparent 70%);
    bottom: -200px;
    left: -200px;
    animation: float 15s infinite reverse;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(50px, 50px); }
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 900px;
    padding: 2rem;
    animation: fadeInUp 1s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-title {
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.gradient-text {
    background: var(--gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 2rem;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.hero-description {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.hero-cta {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    padding: 1rem 2rem;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    border: none;
    font-size: 1rem;
}

.btn-primary {
    background: var(--gradient);
    color: white;
    box-shadow: 0 10px 25px rgba(102, 102, 241, 0.2);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(102, 102, 241, 0.4);
}

.btn-secondary {
    background: transparent;
    color: var(--text);
    border: 2px solid var(--primary);
}

.btn-secondary:hover {
    background: var(--primary);
    transform: translateY(-3px);
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
}

.scroll-indicator span {
    display: block;
    width: 24px;
    height: 40px;
    border: 2px solid var(--text-muted);
    border-radius: 20px;
    position: relative;
}

.scroll-indicator span::before {
    content: '';
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 6px;
    height: 6px;
    background: var(--text-muted);
    border-radius: 50%;
    animation: scroll 2s infinite;
}

@keyframes scroll {
    0% { opacity: 1; top: 8px; }
    100% { opacity: 0; top: 20px; }
}

/* ===== Profile Section ===== */
.profile {
    padding: 100px 0;
    background: var(--dark);
}

.section-title {
    font-size: 3rem;
    text-align: center;
    margin-bottom: 3rem;
    font-weight: 700;
}

.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: var(--gradient);
    margin: 1rem auto;
    border-radius: 2px;
}

.profile-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 3rem;
    margin-top: 4rem;
}

.profile-card {
    background: var(--dark-light);
    padding: 3rem;
    border-radius: 20px;
    border: 1px solid rgba(148, 163, 184, 0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.profile-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--gradient);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.profile-card:hover::before {
    transform: scaleX(1);
}

.profile-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.card-icon {
    width: 70px;
    height: 70px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.card-icon.cyber {
    background: var(--gradient-cyber);
}

.card-icon.system {
    background: var(--gradient-system);
}

.card-icon svg {
    width: 35px;
    height: 35px;
    color: white;
}

.profile-card h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.profile-card p {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.skills-list {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.8rem;
}

.skills-list li {
    padding: 0.6rem 1rem;
    background: rgba(99, 102, 241, 0.1);
    border-radius: 8px;
    font-size: 0.9rem;
    color: var(--text);
    border-left: 3px solid var(--primary);
}

/* ===== CV Section ===== */
.cv-section {
    padding: 100px 0;
    background: linear-gradient(180deg, var(--dark) 0%, var(--dark-light) 100%);
}

.section-description {
    text-align: center;
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-top: -2rem;
    margin-bottom: 3rem;
}

.cv-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 3rem;
    margin-top: 4rem;
}

.cv-card {
    background: var(--dark-light);
    padding: 3rem;
    border-radius: 20px;
    text-align: center;
    border: 1px solid rgba(148, 163, 184, 0.1);
    transition: all 0.3s ease;
    position: relative;
}

.cv-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.cv-icon {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 2rem;
    position: relative;
}

.cv-icon::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: inherit;
    opacity: 0.3;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 0.3; }
    50% { transform: scale(1.15); opacity: 0; }
}

.cv-icon.cyber-bg {
    background: var(--gradient-cyber);
}

.cv-icon.system-bg {
    background: var(--gradient-system);
}

.cv-icon svg {
    width: 45px;
    height: 45px;
    color: white;
    z-index: 1;
}

.cv-card h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.cv-card p {
    color: var(--text-muted);
    margin-bottom: 2rem;
    line-height: 1.8;
}

.btn-download {
    background: var(--dark-lighter);
    color: var(--text);
    border: 2px solid var(--primary);
    width: 100%;
    justify-content: center;
    font-size: 1rem;
}

.btn-download:hover {
    background: var(--gradient);
    border-color: transparent;
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(102, 102, 241, 0.3);
}

.btn-download svg {
    width: 20px;
    height: 20px;
}

/* ===== CTA Section ===== */
.cta-section {
    padding: 80px 0;
    background: var(--dark-light);
    text-align: center;
}

.cta-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.cta-content p {
    color: var(--text-muted);
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

.btn-primary-alt {
    background: white;
    color: var(--dark);
    font-weight: 700;
    padding: 1.2rem 3rem;
}

.btn-primary-alt:hover {
    background: var(--gradient);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(102, 102, 241, 0.4);
}

/* ===== Testimonial Section ===== */
.testimonial-section {
    padding: 100px 0;
    background: var(--dark);
}

.testimonial-card {
    max-width: 900px;
    margin: 0 auto;
    background: var(--dark-light);
    padding: 3rem;
    border-radius: 20px;
    border: 1px solid rgba(148, 163, 184, 0.1);
    position: relative;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.testimonial-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 2rem;
}

.testimonial-author {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.author-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.3rem;
    color: white;
    flex-shrink: 0;
}

.author-info h4 {
    font-size: 1.3rem;
    margin-bottom: 0.3rem;
    font-weight: 600;
}

.author-info p {
    color: var(--text-muted);
    margin: 0;
    font-size: 0.95rem;
}

.author-relation {
    color: var(--primary) !important;
    font-size: 0.9rem !important;
    margin-top: 0.3rem !important;
}

.testimonial-content {
    line-height: 1.8;
    color: var(--text);
    font-size: 1.05rem;
}

.testimonial-content p {
    margin-bottom: 1.5rem;
}

.testimonial-content strong {
    color: var(--primary);
    font-weight: 600;
}

.testimonial-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(148, 163, 184, 0.1);
}

.testimonial-date {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.testimonial-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.testimonial-link:hover {
    color: var(--secondary);
    transform: translateX(5px);
}

.testimonial-link svg {
    width: 16px;
    height: 16px;
}

/* ===== Certifications ===== */
.certification-item {
    display: flex;
    gap: 1.2rem;
    padding: 1.2rem 0;
    border-bottom: 1px solid rgba(148, 163, 184, 0.1);
    align-items: flex-start;
}

.certification-item:last-child {
    border-bottom: none;
}

.cert-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.cert-icon svg {
    width: 26px;
    height: 26px;
    color: white;
}

.cert-content h4 {
    font-size: 1.1rem;
    margin-bottom: 0.3rem;
    font-weight: 600;
}

.cert-content p {
    color: var(--text-muted);
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.5;
}

/* ===== Footer ===== */
.footer {
    background: var(--dark);
    padding: 2rem 0;
    border-top: 1px solid rgba(148, 163, 184, 0.1);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-content p {
    color: var(--text-muted);
}

.footer-links a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--secondary);
}

/* ===== Contact Page ===== */
.contact-hero {
    min-height: 40vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    margin-top: 70px;
}

.contact-content {
    padding: 80px 0;
    background: var(--dark);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    margin-top: 3rem;
}

.contact-info h3 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

.contact-info p {
    color: var(--text-muted);
    margin-bottom: 2rem;
    line-height: 1.8;
}

.contact-methods {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-method {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1.5rem;
    background: var(--dark-light);
    border-radius: 15px;
    border: 1px solid rgba(148, 163, 184, 0.1);
    transition: all 0.3s ease;
}

.contact-method:hover {
    transform: translateX(10px);
    border-color: var(--primary);
}

.contact-method-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    background: var(--gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-method-icon svg {
    width: 25px;
    height: 25px;
    color: white;
}

.contact-method-text h4 {
    font-size: 1.1rem;
    margin-bottom: 0.3rem;
}

.contact-method-text p {
    color: var(--text-muted);
    margin: 0;
}

.contact-method-text a {
    color: var(--primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-method-text a:hover {
    color: var(--secondary);
}

.contact-form-container {
    background: var(--dark-light);
    padding: 3rem;
    border-radius: 20px;
    border: 1px solid rgba(148, 163, 184, 0.1);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    background: var(--dark);
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 10px;
    color: var(--text);
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.form-group textarea {
    min-height: 150px;
    resize: vertical;
}

.form-submit {
    width: 100%;
    background: var(--gradient);
    color: white;
    padding: 1.2rem;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.form-submit:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(102, 102, 241, 0.4);
}

/* ===== Responsive Design ===== */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background: rgba(15, 23, 42, 0.98);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        padding: 2rem 0;
        border-bottom: 1px solid rgba(148, 163, 184, 0.1);
    }

    .nav-menu.active {
        left: 0;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.5rem;
    }

    .hero-description {
        font-size: 1rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .profile-grid,
    .cv-grid {
        grid-template-columns: 1fr;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .hero-cta {
        flex-direction: column;
    }

    .btn {
        width: 100%;
        justify-content: center;
    }

    .testimonial-card {
        padding: 2rem;
    }

    .testimonial-header {
        flex-direction: column;
        gap: 1rem;
    }

    .testimonial-footer {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1.2rem;
    }

    .profile-card,
    .cv-card,
    .contact-form-container {
        padding: 2rem;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .testimonial-card {
        padding: 1.5rem;
    }

    .author-avatar {
        width: 50px;
        height: 50px;
        font-size: 1.1rem;
    }

    .testimonial-content {
        font-size: 0.95rem;
    }
}