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

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
}

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

/* Header */
#header {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 16px 24px;
    transition: all 0.3s ease;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 24px;
    font-weight: bold;
}

nav {
    display: flex;
    align-items: center;
}

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

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

.nav-links a {
    text-decoration: none;
    color: #333;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: #007bff;
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 10px;
}

.icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #ffffff;
    color: #111111;
    border: 1px solid #d9d9d9;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.25s ease;
    animation: float 3s ease-in-out infinite;
}

.icon:hover {
    transform: translateY(-2px) scale(1.06);
    background: #111111;
    color: #ffffff;
    border-color: #111111;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.whatsapp-icon {
    position: fixed;
    right: 16px;
    bottom: 150px;
    z-index: 1200;
    width: 54px;
    height: 54px;
    color: #25d366;
    border-color: #25d366;
    animation: float 3s ease-in-out infinite, whatsappShake 0.8s ease-in-out infinite;
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.25);
}

.whatsapp-icon:hover {
    background: #25d366;
    color: #ffffff;
    border-color: #25d366;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: #333;
    margin: 3px 0;
    transition: 0.3s;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
}

.nav-links.active {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    right: 0;
    width: 50vw;
    max-width: 360px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 20px 0;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
}

.nav-links.active li {
    margin: 10px 0;
    text-align: center;
}

/* Hero Section */
.hero {
    min-height: 100svh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    padding-top: 100px;
    padding-bottom: 40px;
}

.hero-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
    width: min(1120px, 92%);
    margin: 0 auto;
    z-index: 2;
}

.photo-orbit {
    width: 260px;
    height: 260px;
    position: relative;
    display: grid;
    place-items: center;
    margin-right: 22px;
}

.photo-orbit::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 2px dashed rgba(255, 255, 255, 0.45);
    animation: orbitSpin 12s linear infinite;
}

.orbit-dot {
    position: absolute;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #ffffff;
    box-shadow: 0 0 14px rgba(255, 255, 255, 0.85);
}

.dot-1 {
    top: 14px;
    left: 50%;
    transform: translateX(-50%);
    animation: orbitPulse 1.8s ease-in-out infinite;
}

.dot-2 {
    right: 20px;
    bottom: 40px;
    animation: orbitPulse 2.1s ease-in-out infinite;
}

.dot-3 {
    left: 22px;
    bottom: 56px;
    animation: orbitPulse 1.5s ease-in-out infinite;
}

.photo-placeholder {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    overflow: hidden;
    animation: pulse 2s infinite, float 3s ease-in-out infinite, glow 2s ease-in-out infinite alternate;
    border: 5px solid transparent;
    background: linear-gradient(45deg, #007bff, #28a745) border-box;
    position: relative;
    box-shadow: 0 0 20px rgba(0, 123, 255, 0.3);
}

.photo-placeholder::before {
    content: '';
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    border-radius: 50%;
    background: linear-gradient(45deg, #007bff, #28a745);
    z-index: -1;
    animation: rotate 3s linear infinite;
}

.photo-placeholder::after {
    content: '';
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    border-radius: 50%;
    background: linear-gradient(45deg, #007bff, #28a745);
    z-index: -2;
    animation: rotate 4s linear infinite reverse;
    opacity: 0.5;
}

.photo-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.text-content h1 {
    font-size: clamp(1.9rem, 4vw, 3rem);
    margin-bottom: 20px;
    line-height: 1.2;
}

.animated-headline {
    font-size: clamp(1.1rem, 2.3vw, 1.5rem);
    margin-bottom: 30px;
    overflow: hidden;
}

.animated-headline span {
    display: inline-block;
    animation: typing 2s steps(10, end), blink-caret 0.75s step-end infinite;
}

.cta-buttons {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    min-height: 46px;
    padding: 12px 24px;
    border: none;
    border-radius: 25px;
    background: linear-gradient(45deg, #007bff, #28a745);
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 16px;
    text-align: center;
}

.btn:hover {
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(0, 123, 255, 0.5);
}

.background-animation {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, #667eea 0%, #764ba2 100%);
    animation: gradientShift 10s ease infinite;
    z-index: 1;
}

/* About Section */
.about {
    padding: clamp(72px, 10vw, 100px) 0;
    background: #f8f9fa;
}

.about h2 {
    font-size: clamp(1.7rem, 3vw, 2.25rem);
    margin-bottom: 30px;
    text-align: center;
}

.about-intro {
    max-width: 920px;
    margin: 0 auto 26px;
    text-align: center;
}

.about-points {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 18px;
}

.about-point {
    background: #ffffff;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    padding: 18px;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.06);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    cursor: pointer;
}

.about-point:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
}

.about-point h3 {
    font-size: 1.05rem;
    margin-bottom: 8px;
}

.about-point p {
    font-size: 0.95rem;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    margin-top: 0;
    transition: max-height 0.3s ease, opacity 0.3s ease, margin-top 0.3s ease;
}

.about-point:hover p,
.about-point:focus-within p,
.about-point.show p {
    max-height: 180px;
    opacity: 1;
    margin-top: 8px;
}

.about-point.show,
.about-point:hover {
    border-color: #007bff;
}

.decorative-shape {
    width: 100px;
    height: 100px;
    background: linear-gradient(45deg, #007bff, #28a745);
    border-radius: 50%;
    margin: 30px auto;
    animation: float 3s ease-in-out infinite;
}

/* Skills Section */
.skills {
    padding: clamp(72px, 10vw, 100px) 0;
}

.skills h2 {
    font-size: clamp(1.7rem, 3vw, 2.25rem);
    margin-bottom: 50px;
    text-align: center;
}

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

.skill-item {
    text-align: center;
}

.skill-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: #f0f0f0;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.skill-icon:hover {
    transform: scale(1.1);
    box-shadow: 0 0 20px rgba(0, 123, 255, 0.5);
}

.skill-icon i {
    font-size: 34px;
}

.skill-icon.html5 i {
    color: #e34f26;
}

.skill-icon.css3 i {
    color: #1572b6;
}

.skill-icon.js i {
    color: #f7df1e;
}

.skill-icon.react i {
    color: #61dafb;
}

.skill-icon.mui i {
    color: #007fff;
}

.skill-item .fa-git-alt {
    color: #f05032;
}

.skill-item .fa-mobile-alt {
    color: #0ea5e9;
}

.skill-bar {
    width: 100%;
    height: 10px;
    background: #e9ecef;
    border-radius: 5px;
    overflow: hidden;
    margin-bottom: 10px;
}

.skill-fill {
    height: 100%;
    background: linear-gradient(45deg, #007bff, #28a745);
    border-radius: 5px;
    width: 0;
    transition: width 2s ease;
}

/* Projects Section */
.projects {
    padding: clamp(72px, 10vw, 100px) 0;
    background: #f8f9fa;
}

.projects h2 {
    font-size: clamp(1.7rem, 3vw, 2.25rem);
    margin-bottom: 50px;
    text-align: center;
}

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

.project-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.project-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.project-image-placeholder {
    width: 100%;
    height: 200px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: #ffffff;
    background: linear-gradient(120deg, #6c757d, #007bff, #28a745, #6c757d);
    background-size: 300% 300%;
    animation: placeholderShift 6s ease infinite;
}

.project-image-placeholder i {
    font-size: 34px;
}

.project-image-placeholder span {
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.4px;
}

.project-info {
    padding: 20px;
}

.project-info h3 {
    margin-bottom: 10px;
}

.inline-project-details {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    margin: 0;
    transform: translateY(-4px);
    transition: max-height 0.35s ease, opacity 0.35s ease, transform 0.35s ease, margin 0.35s ease;
}

.inline-project-details.show {
    max-height: 180px;
    opacity: 1;
    margin-top: 6px;
    margin-bottom: 12px;
    transform: translateY(0);
}

.project-buttons {
    display: flex;
    gap: 10px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.project-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

.modal-content {
    background-color: white;
    margin: 15% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    max-width: 600px;
    border-radius: 10px;
}

.close-modal {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close-modal:hover {
    color: black;
}

/* CV Section */
.cv {
    padding: clamp(72px, 10vw, 100px) 0;
}

.cv h2 {
    font-size: clamp(1.7rem, 3vw, 2.25rem);
    margin-bottom: 50px;
    text-align: center;
}

.cv-timeline {
    margin-bottom: 50px;
}

.cv-item {
    margin-bottom: 30px;
    padding-left: 30px;
    border-left: 3px solid #007bff;
    background: #ffffff;
    border-radius: 10px;
    padding: 18px 18px 18px 22px;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-left-color 0.3s ease;
}

.cv-item h3 {
    margin-bottom: 10px;
}

.cv-item p {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    margin-top: 0;
    transition: max-height 0.35s ease, opacity 0.35s ease, margin-top 0.35s ease;
}

.cv-item:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12);
    border-left-color: #28a745;
}

.cv-item:hover p,
.cv-item:focus-within p {
    max-height: 220px;
    opacity: 1;
    margin-top: 8px;
}

/* Contact Section */
.contact {
    padding: clamp(72px, 10vw, 100px) 0;
    background: #f8f9fa;
}

.contact h2 {
    font-size: clamp(1.7rem, 3vw, 2.25rem);
    margin-bottom: 50px;
    text-align: center;
}

.contact-form {
    max-width: 600px;
    margin: 0 auto;
}

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

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #007bff;
}

/* Footer */
#footer {
    background: #333;
    color: white;
    padding: 36px 0 20px;
    text-align: center;
}

.footer-links {
    list-style: none;
    display: flex;
    justify-content: center;
    margin: 20px 0;
}

.footer-links li {
    margin: 0 15px;
}

.footer-links a {
    color: white;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #007bff;
}

/* Animations */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes whatsappShake {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(-10deg); }
    50% { transform: rotate(10deg); }
    75% { transform: rotate(-10deg); }
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes typing {
    from { width: 0; }
    to { width: 100%; }
}

@keyframes blink-caret {
    from, to { border-color: transparent; }
    50% { border-color: #007bff; }
}

@keyframes glow {
    0% { box-shadow: 0 0 20px rgba(0, 123, 255, 0.3); }
    100% { box-shadow: 0 0 40px rgba(0, 123, 255, 0.6); }
}

@keyframes orbitSpin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes orbitPulse {
    0%, 100% { transform: scale(1); opacity: 0.8; }
    50% { transform: scale(1.25); opacity: 1; }
}

@keyframes placeholderShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Responsive Design */
@media (max-width: 991px) {
    .hero-content {
        gap: 24px;
    }

    .photo-orbit {
        width: 228px;
        height: 228px;
        margin-right: 14px;
    }

    .photo-placeholder {
        width: 176px;
        height: 176px;
    }
}

@media (max-width: 768px) {
    #header {
        padding: 14px 16px;
    }

    .nav-links {
        display: none;
    }

    .hamburger {
        display: flex;
    }

    .hero-content {
        flex-direction: column;
        text-align: center;
        gap: 18px;
    }

    .photo-orbit {
        margin-bottom: 14px;
        margin-right: 0;
        width: 210px;
        height: 210px;
    }

    .photo-placeholder {
        width: 158px;
        height: 158px;
    }

    .text-content h1 {
        font-size: clamp(1.5rem, 7vw, 2.2rem);
    }

    .cta-buttons {
        justify-content: center;
        gap: 12px;
    }

    .btn {
        width: 100%;
        max-width: 280px;
    }

    .skills-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .about-points {
        grid-template-columns: 1fr;
    }

    .projects-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .project-buttons {
        flex-direction: column;
    }

    .project-buttons .btn {
        width: 100%;
    }

    .footer-links {
        flex-direction: column;
    }

    .footer-links li {
        margin: 10px 0;
    }

    .social-icons {
        justify-content: center;
    }

    .modal-content {
        width: 92%;
        margin: 26% auto;
        padding: 16px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 14px;
    }

    .hero {
        padding-top: 92px;
    }

    .animated-headline {
        margin-bottom: 18px;
    }

    .cv-item {
        padding-left: 18px;
    }

    .icon {
        width: 36px;
        height: 36px;
    }

    .cv-item p {
        max-height: none;
        opacity: 1;
        margin-top: 8px;
    }
}


