/* ===== GENERAL RESET & BASE STYLES ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --accent-color: #3ec6ff;
    --bg-dark: #0f1116;
    --bg-card: #1a1d28;
    --text-light: #ffffff;
    --text-gray: #b4b4b4;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
    font-family: 'Inter', 'Segoe UI', Arial, sans-serif;
    background: var(--bg-dark);
    color: var(--text-light);
    line-height: 1.6;
    overflow-x: hidden;
}

html {
    scroll-behavior: smooth;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.accent {
    color: var(--accent-color);
}

/* ===== NAVBAR ===== */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(15, 17, 22, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    box-shadow: 0 2px 20px rgba(62, 198, 255, 0.1);
    transition: var(--transition);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
}

.nav-logo {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--text-light);
    cursor: pointer;
    transition: var(--transition);
}

.nav-logo span {
    color: var(--accent-color);
}

.nav-logo:hover {
    transform: scale(1.05);
}

.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.mobile-toggle span {
    width: 25px;
    height: 3px;
    background: var(--accent-color);
    border-radius: 3px;
    transition: var(--transition);
}

.mobile-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.mobile-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    color: var(--text-light);
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    transition: var(--transition);
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--accent-color);
    transition: var(--transition);
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 80%;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--accent-color);
}

/* ===== HERO SECTION ===== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: url('https://media.giphy.com/media/jaOXKCxtBPLieRLI0c/giphy.gif') center center/cover no-repeat;
    position: relative;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(15, 17, 22, 0.9) 0%, rgba(26, 29, 40, 0.85) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 0 2rem;
    max-width: 900px;
}

.hero-text h2 {
    font-size: 1.5rem;
    color: var(--text-gray);
    font-weight: 400;
    margin-bottom: 1rem;
    animation: fadeIn 0.8s ease;
}

.hero-text h1 {
    font-size: clamp(2.5rem, 8vw, 4.5rem);
    font-weight: 800;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--accent-color), #fff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: fadeInUp 1s ease;
}

.hero-text h3 {
    font-size: clamp(1.2rem, 4vw, 1.8rem);
    color: var(--accent-color);
    font-weight: 400;
    margin-bottom: 2rem;
    animation: fadeInUp 1.2s ease;
}

.hero-text p {
    font-size: clamp(1rem, 2vw, 1.2rem);
    color: var(--text-gray);
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    animation: fadeInUp 1.4s ease;
}

.socials {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    animation: fadeInUp 1.6s ease;
}

.socials a {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(62, 198, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-color);
    font-size: 1.5rem;
    transition: var(--transition);
    border: 2px solid transparent;
}

.socials a:hover {
    background: var(--accent-color);
    color: var(--bg-dark);
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(62, 198, 255, 0.3);
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
}

.scroll-indicator span {
    display: block;
    width: 20px;
    height: 30px;
    border: 2px solid var(--accent-color);
    border-radius: 15px;
    position: relative;
}

.scroll-indicator span::before {
    content: '';
    position: absolute;
    top: 5px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 8px;
    background: var(--accent-color);
    border-radius: 2px;
    animation: scroll 2s infinite;
}

@keyframes scroll {
    0%, 100% { opacity: 0; transform: translateX(-50%) translateY(0); }
    50% { opacity: 1; transform: translateX(-50%) translateY(10px); }
}

/* ===== ANIMATIONS ===== */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ===== SECTION TITLES ===== */
.section-title {
    font-size: clamp(2rem, 5vw, 2.5rem);
    font-weight: 700;
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
    padding-bottom: 1rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, transparent, var(--accent-color), transparent);
    border-radius: 2px;
}

/* ===== ABOUT SECTION ===== */
.about {
    padding: 100px 0;
    background: var(--bg-dark);
}

.about-card {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 3rem;
    background: var(--bg-card);
    border-radius: 20px;
    padding: 3rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(62, 198, 255, 0.1);
    transition: var(--transition);
    opacity: 0;
    transform: translateY(30px);
}

.about-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.about-card:hover {
    border-color: var(--accent-color);
    box-shadow: 0 15px 50px rgba(62, 198, 255, 0.2);
}

.about-image {
    display: flex;
    align-items: center;
    justify-content: center;
}

.profile-placeholder {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(62, 198, 255, 0.2), rgba(62, 198, 255, 0.05));
    display: flex;
    align-items: center;
    justify-content: center;
    border: 3px solid var(--accent-color);
}

.profile-placeholder i {
    font-size: 5rem;
    color: var(--accent-color);
}

.about-text p {
    font-size: 1.1rem;
    color: var(--text-gray);
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.about-text strong {
    color: var(--accent-color);
    font-weight: 600;
}

/* ===== EDUCATION TIMELINE ===== */
.education {
    padding: 100px 0;
    background: linear-gradient(180deg, var(--bg-dark) 0%, var(--bg-card) 100%);
}

.timeline {
    position: relative;
    padding: 2rem 0;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 30px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(180deg, var(--accent-color), transparent);
}

.timeline-item {
    position: relative;
    padding-left: 80px;
    margin-bottom: 3rem;
    opacity: 0;
    transform: translateX(-30px);
    transition: var(--transition);
}

.timeline-item.visible {
    opacity: 1;
    transform: translateX(0);
}

.timeline-marker {
    position: absolute;
    left: 20px;
    top: 0;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--accent-color);
    border: 4px solid var(--bg-dark);
    box-shadow: 0 0 20px rgba(62, 198, 255, 0.5);
    z-index: 10;
}

.timeline-card {
    background: var(--bg-card);
    border-radius: 15px;
    padding: 2rem;
    border-left: 4px solid var(--accent-color);
    transition: var(--transition);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

.timeline-card:hover {
    transform: translateX(10px);
    box-shadow: 0 10px 30px rgba(62, 198, 255, 0.2);
}

.timeline-date {
    color: var(--accent-color);
    font-weight: 600;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1rem;
}

.timeline-content h3 {
    font-size: 1.4rem;
    color: var(--text-light);
    margin-bottom: 0.5rem;
}

.timeline-content h4 {
    font-size: 1.1rem;
    color: var(--text-gray);
    margin-bottom: 0.8rem;
    font-weight: 500;
}

.timeline-content .location {
    font-size: 0.9rem;
    color: var(--text-gray);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.timeline-content .location i {
    color: var(--accent-color);
}

.timeline-content p {
    color: var(--text-gray);
    line-height: 1.7;
}

/* ===== SKILLS SECTION ===== */
.skills {
    padding: 100px 0;
    background: var(--bg-dark);
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 2rem;
    max-width: 900px;
    margin: 0 auto;
}

.skill-item {
    background: var(--bg-card);
    border-radius: 15px;
    padding: 2rem 1rem;
    text-align: center;
    border: 1px solid rgba(62, 198, 255, 0.1);
    transition: var(--transition);
    opacity: 0;
    transform: translateY(20px);
}

.skill-item.visible {
    opacity: 1;
    transform: translateY(0);
}

.skill-item:hover {
    border-color: var(--accent-color);
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(62, 198, 255, 0.2);
}

.skill-item i {
    font-size: 3rem;
    color: var(--accent-color);
    margin-bottom: 1rem;
    display: block;
}

.skill-item span {
    display: block;
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-light);
}

/* ===== PROJECTS SECTION ===== */
.projects {
    padding: 100px 0;
    background: linear-gradient(180deg, var(--bg-dark) 0%, var(--bg-card) 100%);
}

.portfolio-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.project {
    background: var(--bg-card);
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid rgba(62, 198, 255, 0.1);
    transition: var(--transition);
    opacity: 0;
    transform: translateY(30px);
}

.project.visible {
    opacity: 1;
    transform: translateY(0);
}

.project:hover {
    border-color: var(--accent-color);
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(62, 198, 255, 0.2);
}

.project-image {
    position: relative;
    overflow: hidden;
    height: 200px;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.project:hover .project-image img {
    transform: scale(1.1);
}

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 17, 22, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

.project:hover .project-overlay {
    opacity: 1;
}

.project-link {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--accent-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--bg-dark);
    font-size: 1.5rem;
    transition: var(--transition);
}

.project-link:hover {
    transform: scale(1.2);
    box-shadow: 0 10px 30px rgba(62, 198, 255, 0.5);
}

.project-content {
    padding: 2rem;
}

.project-content h3 {
    font-size: 1.5rem;
    color: var(--text-light);
    margin-bottom: 1rem;
}

.project-content p {
    color: var(--text-gray);
    line-height: 1.6;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.btn {
    display: inline-block;
    padding: 0.8rem 1.8rem;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 30px;
    transition: var(--transition);
}

.btn-outline {
    color: var(--accent-color);
    border: 2px solid var(--accent-color);
    background: transparent;
}

.btn-outline:hover {
    background: var(--accent-color);
    color: var(--bg-dark);
    box-shadow: 0 10px 30px rgba(62, 198, 255, 0.3);
}

/* ===== CONTACT SECTION ===== */
.contact {
    padding: 100px 0;
    background: var(--bg-dark);
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 3rem;
    max-width: 1000px;
    margin: 0 auto;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    background: var(--bg-card);
    padding: 1.5rem;
    border-radius: 15px;
    border: 1px solid rgba(62, 198, 255, 0.1);
    transition: var(--transition);
}

.contact-item:hover {
    border-color: var(--accent-color);
    transform: translateX(10px);
}

.contact-item i {
    font-size: 2rem;
    color: var(--accent-color);
}

.contact-item h4 {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 0.3rem;
}

.contact-item p {
    font-size: 0.95rem;
    color: var(--text-gray);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 1rem 1.5rem;
    background: var(--bg-card);
    border: 1px solid rgba(62, 198, 255, 0.1);
    border-radius: 10px;
    color: var(--text-light);
    font-size: 1rem;
    font-family: inherit;
    transition: var(--transition);
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 20px rgba(62, 198, 255, 0.2);
}

.contact-form textarea {
    resize: vertical;
    min-height: 150px;
}

.contact-form .btn {
    background: var(--accent-color);
    color: var(--bg-dark);
    border: none;
    cursor: pointer;
    font-weight: 700;
    align-self: flex-start;
}

.contact-form .btn:hover {
    background: var(--text-light);
    box-shadow: 0 10px 30px rgba(62, 198, 255, 0.4);
}

/* ===== FOOTER ===== */
footer {
    background: var(--bg-card);
    padding: 2rem 0;
    border-top: 1px solid rgba(62, 198, 255, 0.1);
}

footer .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

footer p {
    color: var(--text-gray);
    font-size: 0.95rem;
}

.footer-socials {
    display: flex;
    gap: 1rem;
}

.footer-socials a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(62, 198, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-color);
    font-size: 1.2rem;
    transition: var(--transition);
}

.footer-socials a:hover {
    background: var(--accent-color);
    color: var(--bg-dark);
    transform: translateY(-5px);
}

/* ===== SWEETALERT2 CUSTOM STYLES ===== */
.swal2-popup {
    background: var(--bg-card) !important;
    border: 1px solid rgba(62, 198, 255, 0.3) !important;
}

.swal2-title {
    color: var(--text-light) !important;
}

.swal2-html-container {
    color: var(--text-gray) !important;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 968px) {
    .nav-links {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: rgba(15, 17, 22, 0.98);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 2rem;
        transition: left 0.3s ease;
    }

    .nav-links.active {
        left: 0;
    }

    .mobile-toggle {
        display: flex;
    }

    .about-card {
        grid-template-columns: 1fr;
        text-align: center;
        padding: 2rem;
    }

    .contact-wrapper {
        grid-template-columns: 1fr;
    }

    .timeline::before {
        left: 10px;
    }

    .timeline-item {
        padding-left: 50px;
    }

    .timeline-marker {
        left: 0;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 1.5rem;
    }

    .nav-container {
        padding: 1rem 1.5rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .hero-text h1 {
        font-size: 2.5rem;
    }

    .portfolio-gallery {
        grid-template-columns: 1fr;
    }

    .skills-grid {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
        gap: 1.5rem;
    }

    .timeline-card {
        padding: 1.5rem;
    }

    footer .container {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .nav-logo {
        font-size: 1.5rem;
    }

    .hero-text h1 {
        font-size: 2rem;
    }

    .hero-text h3 {
        font-size: 1.2rem;
    }

    .about-card {
        padding: 1.5rem;
    }

    .profile-placeholder {
        width: 150px;
        height: 150px;
    }

    .profile-placeholder i {
        font-size: 4rem;
    }

    .contact-item {
        padding: 1rem;
    }

    .skills-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

