/* ===== GLOBAL STYLES ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: #0a0a0a;
    color: #ffffff;
    overflow-x: hidden;
}

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

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

/* ===== NAVIGATION ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(10px);
    padding: 15px 0;
    transition: all 0.3s ease;
}

.navbar.scrolled {
    background: rgba(10, 10, 10, 0.98);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: #fff;
}

.logo span {
    color: #4ade80;
}

.nav-links {
    display: flex;
    gap: 40px;
}

.nav-links a {
    color: #888;
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.3s ease;
    position: relative;
}

.nav-links a:hover,
.nav-links a.active {
    color: #fff;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: #4ade80;
    transition: width 0.3s ease;
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

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

.hamburger span {
    width: 25px;
    height: 2px;
    background: #fff;
    transition: all 0.3s ease;
}

/* ===== HOME SECTION ===== */
.home-section {
    min-height: 100vh;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f0f23 100%);
    display: flex;
    align-items: center;
    position: relative;
    overflow: visible;
    padding-top: 80px;
}

.home-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: end;
    gap: 50px;
    width: 100%;
    min-height: calc(100vh - 80px);
}

.home-content {
    z-index: 10;
    padding-bottom: 100px;
}

.greeting {
    color: #4ade80;
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 3px;
    margin-bottom: 15px;
}

.name {
    font-size: 4rem;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 20px;
}

.first-name {
    display: block;
    color: #fff;
}

.last-name {
    display: block;
    color: #fff;
}

.tagline {
    font-size: 1.2rem;
    color: #ccc;
    margin-bottom: 30px;
}

.tagline span.typewriter {
    color: #4ade80;
    font-weight: 600;
}

.cursor {
    color: #4ade80;
    animation: blink 0.7s infinite;
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

.cta-button {
    display: inline-block;
    background: #4ade80;
    color: #000;
    padding: 15px 35px;
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 1px;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.cta-button:hover {
    background: #22c55e;
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(74, 222, 128, 0.3);
}

/* Home Image */
.home-image {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    align-self: flex-end;
    margin-bottom: -80px;
}

.image-circle {
    position: absolute;
    width: 400px;
    height: 400px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    top: 40%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.profile-wrapper {
    position: relative;
    z-index: 5;
    display: flex;
    align-items: flex-end;
}

.profile-img {
    max-width: 500px;
    height: auto;
    filter: grayscale(100%);
    object-fit: contain;
    object-position: bottom;
}

/* Decorative Elements */
.decoration {
    position: absolute;
    z-index: 1;
}

.decoration-1 {
    top: 15%;
    left: 50%;
    transform: translateX(-50%);
}

.decoration-1 img {
    width: 50px;
    height: auto;
    filter: invert(1);
}

.decoration-2 {
    top: 10%;
    right: 10%;
    color: #fff;
    font-size: 1.5rem;
}

.decoration-3 {
    top: 15%;
    right: 8%;
    color: #fff;
    font-size: 0.8rem;
}

.decoration-4 {
    bottom: 20%;
    left: 5%;
    color: #fff;
    font-size: 1rem;
}

.decoration-5 {
    top: 5%;
    left: 3%;
    color: #fff;
    font-size: 1rem;
}

.decoration-6 {
    top: 10%;
    left: 3%;
}

.wave-icon {
    width: 50px;
    height: 20px;
}

/* ===== VALUES/CARDS SECTION ===== */
.values-section {
    background: #e8f4f8;
    padding: 120px 20px 80px;
    position: relative;
    z-index: 5;
}

.cards-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}

.value-card {
    background: #fff;
    border-radius: 15px;
    padding: 30px 25px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.value-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
}

.card-icon {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.card-icon i {
    font-size: 2rem;
    color: #4ade80;
}

.value-card h3 {
    color: #1a1a2e;
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 15px;
}

.value-card p {
    color: #666;
    font-size: 0.9rem;
    line-height: 1.7;
}

/* ===== ABOUT SECTION ===== */
.about-section {
    padding: 100px 20px;
    background: #0a0a0a;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 60px;
}

.section-title span {
    color: #4ade80;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 60px;
    align-items: center;
}

.about-image img {
    width: 100%;
    max-width: 350px;
    border-radius: 15px;
    filter: grayscale(100%);
}

.about-text h3 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: #4ade80;
}

.about-text p {
    color: #aaa;
    line-height: 1.8;
    margin-bottom: 15px;
}

.skills-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 30px;
}

.skill-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 15px 20px;
    background: rgba(74, 222, 128, 0.1);
    border-radius: 10px;
    transition: all 0.3s ease;
}

.skill-item:hover {
    background: rgba(74, 222, 128, 0.2);
    transform: translateY(-5px);
}

.skill-item i {
    font-size: 2rem;
    color: #4ade80;
}

.skill-item span {
    font-size: 0.85rem;
    color: #ccc;
}

/* ===== PORTFOLIO SECTION ===== */
.portfolio-section {
    padding: 100px 20px;
    background: #111;
}

.section-subtitle {
    text-align: center;
    color: #888;
    margin-top: -40px;
    margin-bottom: 50px;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

/* Category Cards */
.portfolio-category {
    cursor: pointer;
}

.category-card {
    background: linear-gradient(145deg, #151515, #1a1a1a);
    border: 1px solid #222;
    border-radius: 20px;
    padding: 40px 25px;
    text-align: center;
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.category-card:hover {
    border-color: #4ade80;
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(74, 222, 128, 0.15);
}

.category-icon {
    width: 80px;
    height: 80px;
    background: rgba(74, 222, 128, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.category-icon i {
    font-size: 2rem;
    color: #4ade80;
}

.category-card h4 {
    color: #fff;
    font-size: 1.2rem;
    margin-bottom: 8px;
}

.category-card p {
    color: #888;
    font-size: 0.9rem;
    margin-bottom: 20px;
}

.view-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: #4ade80;
    color: #000;
    border-radius: 25px;
    font-weight: 500;
    font-size: 0.85rem;
    transition: all 0.3s ease;
    margin-top: auto;
}

.view-btn:hover {
    transform: scale(1.05);
    background: #22c55e;
}

/* ===== PORTFOLIO MODAL ===== */
.portfolio-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    padding: 20px;
    overflow-y: auto;
}

.portfolio-modal.active {
    display: flex;
}

.modal-content {
    background: #1a1a1a;
    border-radius: 20px;
    width: 100%;
    max-width: 1200px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

.modal-content-large {
    max-width: 1400px;
    max-height: 95vh;
    overflow-y: auto;
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 50%;
    color: #fff;
    font-size: 1.8rem;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.modal-close:hover {
    background: #4ade80;
    color: #000;
}

.modal-title {
    padding: 20px 30px;
    font-size: 1.5rem;
    color: #fff;
    border-bottom: 1px solid #333;
}

/* Projects Grid in Modal */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    padding: 30px;
}

.project-card {
    background: #222;
    border-radius: 15px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid #333;
}

.project-card:hover {
    transform: translateY(-5px);
    border-color: #4ade80;
    box-shadow: 0 10px 30px rgba(74, 222, 128, 0.2);
}

.project-thumbnail {
    width: 100%;
    height: 200px;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #1a1a2e, #16213e);
}

.project-thumbnail iframe {
    width: 1600px;
    height: 1000px;
    border: none;
    transform-origin: top left;
    transform: scale(0.35);
    pointer-events: none;
    position: absolute;
    top: 0;
    left: 0;
}

.project-info {
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.project-info h5 {
    color: #fff;
    font-size: 1rem;
    font-weight: 500;
}

.project-view-btn {
    width: 35px;
    height: 35px;
    background: #4ade80;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #000;
    font-size: 0.85rem;
    transition: all 0.3s ease;
}

.project-view-btn:hover {
    transform: scale(1.1);
}

/* Coming Soon */
.coming-soon {
    padding: 80px 30px;
    text-align: center;
}

.coming-soon i {
    font-size: 4rem;
    color: #4ade80;
    margin-bottom: 20px;
}

.coming-soon h4 {
    color: #fff;
    font-size: 1.8rem;
    margin-bottom: 10px;
}

.coming-soon p {
    color: #888;
    font-size: 1rem;
}

/* Single Project View */
.single-project-view {
    display: flex;
    flex-direction: column;
}

.back-to-grid {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 25px;
    margin: 20px 30px;
    background: transparent;
    border: 1px solid #4ade80;
    color: #4ade80;
    border-radius: 25px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
    align-self: flex-start;
}

.back-to-grid:hover {
    background: #4ade80;
    color: #000;
}

.modal-iframe-wrapper {
    flex: 1;
    min-height: 500px;
    background: #0a0a0a;
}

.modal-iframe-wrapper iframe {
    width: 100%;
    height: 100%;
    min-height: 500px;
    border: none;
}

.modal-external-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 15px 30px;
    background: #4ade80;
    color: #000;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.modal-external-btn:hover {
    background: #22c55e;
}

/* ===== SERVICES SECTION ===== */
.services-section {
    padding: 100px 20px;
    background: #0a0a0a;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.service-card {
    background: linear-gradient(145deg, #151515, #1a1a1a);
    border: 1px solid #222;
    border-radius: 20px;
    padding: 40px 30px;
    text-align: center;
    transition: all 0.3s ease;
}

.service-card:hover {
    border-color: #4ade80;
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(74, 222, 128, 0.1);
}

.service-icon {
    width: 80px;
    height: 80px;
    background: rgba(74, 222, 128, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
}

.service-icon i {
    font-size: 2.5rem;
    color: #4ade80;
}

.service-card h3 {
    font-size: 1.4rem;
    margin-bottom: 15px;
    color: #fff;
}

.service-card > p {
    color: #888;
    line-height: 1.7;
    margin-bottom: 25px;
}

.service-features {
    text-align: left;
}

.service-features li {
    color: #aaa;
    padding: 8px 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.service-features li i {
    color: #4ade80;
    font-size: 0.8rem;
}

/* ===== CONTACT SECTION ===== */
.contact-section {
    padding: 100px 20px;
    background: #111;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 60px;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 20px;
}

.contact-icon {
    width: 55px;
    height: 55px;
    background: rgba(74, 222, 128, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-icon i {
    color: #4ade80;
    font-size: 1.3rem;
}

.contact-item h4 {
    color: #fff;
    font-size: 1rem;
    margin-bottom: 5px;
}

.contact-item p {
    color: #888;
    font-size: 0.95rem;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-link {
    width: 45px;
    height: 45px;
    background: rgba(74, 222, 128, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #4ade80;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.social-link:hover {
    background: #4ade80;
    color: #000;
    transform: translateY(-5px);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px 20px;
    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: 10px;
    color: #fff;
    font-family: 'Poppins', sans-serif;
    font-size: 0.95rem;
    transition: border-color 0.3s ease;
}

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

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #666;
}

.submit-btn {
    background: #4ade80;
    color: #000;
    padding: 15px 40px;
    border: none;
    border-radius: 10px;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    align-self: flex-start;
}

.submit-btn:hover {
    background: #22c55e;
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(74, 222, 128, 0.3);
}

/* ===== FOOTER ===== */
.footer {
    background: #0a0a0a;
    padding: 30px 20px;
    text-align: center;
    border-top: 1px solid #222;
}

.footer p {
    color: #666;
    font-size: 0.9rem;
}

/* ===== WHATSAPP FLOAT ===== */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: #25d366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.8rem;
    box-shadow: 0 5px 20px rgba(37, 211, 102, 0.4);
    z-index: 999;
    transition: all 0.3s ease;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 30px rgba(37, 211, 102, 0.5);
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 1024px) {
    .home-container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .home-image {
        order: -1;
    }
    
    .profile-img {
        max-width: 350px;
    }
    
    .image-circle {
        width: 300px;
        height: 300px;
    }
    
    .cards-container {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .portfolio-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 70px;
        left: 0;
        width: 100%;
        height: calc(100vh - 70px);
        background: #0a0a0a;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 30px;
        transform: translateX(-100%);
        transition: transform 0.3s ease;
    }
    
    .nav-links.active {
        transform: translateX(0);
    }
    
    .hamburger {
        display: flex;
    }
    
    .hamburger.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }
    
    .hamburger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }
    
    .name {
        font-size: 2.8rem;
    }
    
    .cards-container {
        grid-template-columns: 1fr;
    }
    
    .about-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .about-image {
        display: flex;
        justify-content: center;
    }
    
    .skills-container {
        justify-content: center;
    }
    
    .portfolio-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
        padding: 20px;
    }
    
    .project-thumbnail {
        height: 250px;
    }
    
    .project-thumbnail iframe {
        transform: scale(0.5);
    }

    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
    }
    
    .contact-info {
        align-items: center;
        text-align: center;
    }
    
    .contact-item {
        flex-direction: column;
    }
    
    .submit-btn {
        align-self: stretch;
    }
    
    /* Modal responsive */
    .modal-content {
        max-height: 95vh;
    }
    
    .modal-iframe-wrapper {
        min-height: 400px;
    }
    
    .modal-iframe-wrapper iframe {
        min-height: 400px;
    }
    
    .modal-title {
        padding: 15px 20px;
        padding-right: 50px;
        font-size: 1.2rem;
    }
}

@media (max-width: 480px) {
    .name {
        font-size: 2.2rem;
    }
    
    .tagline {
        font-size: 1rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .profile-img {
        max-width: 280px;
    }
    
    .image-circle {
        width: 250px;
        height: 250px;
    }
}
