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

body {
    font-family: Arial, sans-serif;
    background-color: #CEE0F4;
}

.background-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('images/profile.jpg');
    background-size: cover;
    background-position: center;
}

.hero {
    display: grid;
    grid-template-rows: 60vh 40vh;  /* Dividing the viewport height */
    height: 100vh;  /* Full viewport height */
    width: 100%;
}

/* Upper section styling */
.hero-upper {
    position: relative;
    overflow: hidden;
    height: 60vh;
}

.background-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('images/profile.jpg');
    background-size: cover;
    background-position: center;
    transform: scale(1.1);
    transition: transform 0.3s ease;
}

.hero-title {
    position: absolute;
    bottom: 0;
    left: 40px;
    font-size: 4rem;
    color: white;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    z-index: 2;
}

/* Class added when element is visible */
.hero-title.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Add keyframes for bounce effect */
@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-20px);
    }
    60% {
        transform: translateY(-10px);
    }
}

.hero-title.bounce {
    animation: bounce 1s ease;
}

/* Lower section styling */
.hero-lower {
    background-color: white;
    display: grid;
    grid-template-columns: 1fr 1fr;  /* Two equal columns */
    padding: 40px;
    gap: 40px;
    height: 100%;  /* Ensure full height */
}

.content-left {
    height: 100%;  /* Fill container height */
    padding-top: 0;  /* Remove top padding */
}

.lorem-text {
    font-size: 1.8rem;  /* Increased from 1.2rem */
    line-height: 1.6;
    color: #333;
    margin-top: 0;
    font-weight: 600;  /* Added font weight */
    opacity: 0;
    filter: blur(10px);
    transform: translateY(20px);
    transition: 
        opacity 0.8s ease,
        filter 0.8s ease,
        transform 0.8s ease;
}

/* Class added when element is visible */
.lorem-text.visible {
    opacity: 1;
    filter: blur(0);
    transform: translateY(0);
}

.nav-right {
    height: 100%;  /* Fill container height */
}

.nav-right ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
    align-items: flex-end;  /* Right align items */
}

.nav-right a {
    text-decoration: none;
    color: #333;
    font-size: 2rem;
    font-weight: bold;
    transition: color 0.3s ease;
    text-align: right;  /* Right align text */
}

.nav-right a:hover {
    color: #666;
}

/* Vision Section */
.vision {
    min-height: 100vh;
    padding: 100px 40px;
    background-color: #CEE0F4;
    position: relative;
    z-index: 1;
    margin-top: 0; /* Ensure it's directly under hero */
}

.vision-title {
    font-size: 5rem;
    font-weight: 900;
    margin-bottom: 60px;
    color: #333;
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.vision-title.revealed {
    opacity: 1;
    transform: translateY(0);
}

.vision-content {
    max-width: 1200px;
    margin: 0 auto;
}

.vision-text {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1.6;
    margin-bottom: 30px;
    color: #444;
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.vision-text.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Text reveal animation */
.reveal-text {
    position: relative;
    overflow: hidden;
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.reveal-text::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #CEE0F4;
    transform: scaleY(1);
    transform-origin: top;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal-text.revealed {
    opacity: 1;
    transform: translateY(0);
}

.reveal-text.revealed::before {
    transform: scaleY(0);
}

/* Fix lorem text visibility */
.lorem-text {
    font-size: 1.8rem;
    line-height: 1.6;
    color: #333;
    margin-top: 0;
    font-weight: 600;
    opacity: 0;
    filter: blur(10px);
    transform: translateY(20px);
    transition: 
        opacity 0.8s ease,
        filter 0.8s ease,
        transform 0.8s ease;
}

.lorem-text.visible {
    opacity: 1;
    filter: blur(0);
    transform: translateY(0);
}

.contact-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

@media (max-width: 768px) {
    .contact-container {
        grid-template-columns: 1fr;
    }
    
    .contact-info {
        order: -1;
    }
}

.bento-card {
    cursor: pointer;
    transition: transform 0.3s ease;
}

.bento-card:hover {
    transform: scale(1.02);
}

.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.lightbox.active {
    opacity: 1;
}

.lightbox-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.8);
    max-width: 90%;
    max-height: 90vh;
    transition: transform 0.5s cubic-bezier(0.17, 0.67, 0.21, 1.69);
}

.lightbox.active .lightbox-content {
    transform: translate(-50%, -50%) scale(1);
}

.lightbox-content img {
    max-width: 100%;
    max-height: 90vh;
    border-radius: 8px;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.3);
}

.close-lightbox {
    position: absolute;
    top: 20px;
    right: 20px;
    color: white;
    font-size: 30px;
    cursor: pointer;
    z-index: 1001;
}

.about {
    min-height: 100vh;
    padding: 100px 40px;
    background-color: #CEE0F4;
    margin-top: 50px; /* Add spacing between vision and about */
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .hero-lower {
        grid-template-columns: 1fr;
        padding: 20px;
        gap: 20px;
    }

    .nav-right ul {
        align-items: flex-start;
        gap: 15px;
    }

    .vision {
        margin-top: 30px;
    }

    .about {
        margin-top: 30px;
    }
}

.vision-title {
    font-size: 5rem;
    font-weight: 900;
    margin-bottom: 60px;
    color: #333;
}

.vision-content {
    max-width: 1200px;
    margin: 0 auto;
}

.vision-text {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1.6;
    margin-bottom: 30px;
    color: #444;
}

/* Text reveal animation */
.reveal-text {
    position: relative;
    overflow: hidden;
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.reveal-text::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #f8f8f8;
    transform: scaleY(1);
    transform-origin: top;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal-text.revealed {
    opacity: 1;
    transform: translateY(0);
}

.reveal-text.revealed::before {
    transform: scaleY(0);
}

/* Responsive design */
@media (max-width: 768px) {
    .hero-lower {
        grid-template-columns: 1fr;
        padding: 20px;
    }

    .hero-title {
        font-size: 3rem;
        left: 20px;
    }

    .nav-right ul {
        gap: 15px;
    }

    .nav-right a {
        font-size: 1.5rem;
    }
}

/* Responsive design for vision section */
@media (max-width: 768px) {
    .vision {
        padding: 60px 20px;
    }

    .vision-title {
        font-size: 3.5rem;
        margin-bottom: 40px;
    }

    .vision-text {
        font-size: 1.5rem;
        margin-bottom: 20px;
    }
}

/* About Section */
.about {
    min-height: 100vh;
    padding: 100px 40px;
    background-color: white;
}

.about-title {
    font-size: 5rem;
    font-weight: 900;
    margin-bottom: 60px;
    color: #333;
}

.about-content {
    max-width: 1200px;
    margin: 0 auto 80px;
}

.about-text {
    font-size: 1.5rem;
    line-height: 1.8;
    color: #444;
}

/* Skills Section */
.skills-section {
    max-width: 1200px;
    margin: 0 auto;
}

.skills-title {
    font-size: 4rem;
    font-weight: 800;
    margin-bottom: 50px;
    color: #333;
}

.skills-container {
    position: relative;
}

.skills-menu {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.skill-item {
    position: relative;
}

.skill-name {
    font-size: 2.5rem;
    font-weight: 700;
    color: #333;
    transition: color 0.3s ease;
    display: block;
    padding: 10px 0;
    cursor: pointer;
    position: relative;
    z-index: 2;
    background: white;
}

.skill-name:hover {
    color: #666;
}

.skill-details-wrapper {
    height: 0;
    overflow: hidden;
    transition: height 0.5s ease;
}

.skill-details {
    background-color: #f8f8f8;
    padding: 0;
    border-radius: 10px;
    opacity: 0;
    transform: translateX(-100%);
    transition: 
        transform 0.5s ease,
        opacity 0.3s ease,
        padding 0.3s ease;
}

.skill-details h4 {
    font-size: 1.8rem;
    margin-bottom: 15px;
    color: #333;
    opacity: 0;
    transform: translateY(20px);
    transition: 
        opacity 0.3s ease,
        transform 0.3s ease;
    transition-delay: 0.3s;
}

.skill-details p {
    font-size: 1.2rem;
    line-height: 1.6;
    color: #555;
    opacity: 0;
    transform: translateY(20px);
    transition: 
        opacity 0.3s ease,
        transform 0.3s ease;
    transition-delay: 0.4s;
}

/* Active states */
.skill-item.active .skill-name {
    color: #666;
}

.skill-item.active .skill-details-wrapper {
    height: 200px; /* This will be set dynamically by JavaScript */
    margin-top: 20px;
    margin-bottom: 20px;
}

.skill-item.active .skill-details {
    transform: translateX(0);
    opacity: 1;
    padding: 20px;
}

.skill-item.active .skill-details h4,
.skill-item.active .skill-details p {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive design for about section */
@media (max-width: 768px) {
    .about {
        padding: 60px 20px;
    }

    .about-title {
        font-size: 3.5rem;
        margin-bottom: 40px;
    }

    .skills-title {
        font-size: 3rem;
        margin-bottom: 30px;
    }

    .skill-name {
        font-size: 2rem;
    }

    .skill-details h4 {
        font-size: 1.5rem;
    }

    .skill-details p {
        font-size: 1rem;
    }

    .skill-item.active .skill-details-wrapper {
        height: 250px; /* More height for mobile */
    }
}

/* Projects Section */
.projects {
    min-height: 100vh;
    padding: 100px 40px;
    background-color: white;
}

.projects-title {
    font-size: 5rem;
    font-weight: 900;
    margin-bottom: 80px;
    color: #1a1a1a; /* Charcoal black */
}

.projects-list {
    max-width: 1200px;
    margin: 0 auto;
}

.project-item {
    position: relative;
    margin-bottom: 60px;
    cursor: pointer;
}

.project-name {
    font-size: 3rem;
    font-weight: 700;
    color: #1a1a1a;
    padding: 20px 0;
    position: relative;
    display: inline-block;
}

/* Underline effect */
.project-name::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #1a1a1a;
    transform-origin: left;
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.project-item:hover .project-name::after {
    transform: scaleX(1);
}

/* Cursor hover card */
.project-hover-card {
    position: fixed;
    width: 150px;  /* Smaller size */
    height: 150px; /* Smaller size */
    pointer-events: none;
    opacity: 0;
    transform: translate(10px, -50%); /* Offset from cursor */
    transition: opacity 0.2s ease;
    z-index: 100;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    overflow: hidden;
}

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

.hover-card-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 8px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    color: white;
    font-size: 0.8rem;
}

.hover-card-content p {
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.project-item:hover .project-hover-card {
    opacity: 1;
}

/* Project details dropdown */
.project-details {
    height: 0;
    overflow: hidden;
    transition: height 0.5s ease;
    background-color: #f8f8f8;
    margin-top: 20px;
}

.project-details-content {
    padding: 40px;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.project-details img {
    width: 100%;
    height: auto;
    border-radius: 10px;
}

.project-description h4 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: #1a1a1a;
}

.project-description p {
    font-size: 1.2rem;
    line-height: 1.6;
    color: #444;
    margin-bottom: 30px;
}

.project-tech {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.project-tech span {
    padding: 8px 16px;
    background-color: #1a1a1a;
    color: white;
    border-radius: 20px;
    font-size: 0.9rem;
}

/* Active states */
.project-item.active .project-details {
    height: auto; /* Will be set dynamically by JS */
}

.project-item.active .project-details-content {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive design */
@media (max-width: 768px) {
    .projects {
        padding: 60px 20px;
    }

    .projects-title {
        font-size: 3.5rem;
        margin-bottom: 40px;
    }

    .project-name {
        font-size: 2rem;
    }

    .project-details-content {
        grid-template-columns: 1fr;
    }

    .project-hover-card {
        display: none; /* Disable hover card on mobile */
    }
}

/* Contact Section */
.contact {
    min-height: 100vh;
    padding: 100px 40px;
    background-color: #f8f8f8;
}

.contact-title {
    font-size: 5rem;
    font-weight: 900;
    margin-bottom: 80px;
    color: #1a1a1a;
}

.contact-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

@media (max-width: 768px) {
    .contact-container {
        grid-template-columns: 1fr;
    }
    
    .contact-info {
        order: -1; /* This ensures social links appear above the form on mobile */
    }
}

/* Contact Info Styles */
.contact-info {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.contact-info h3 {
    font-size: 2rem;
    color: #1a1a1a;
    margin-bottom: 30px;
}

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

.contact-item i {
    font-size: 1.5rem;
    color: #1a1a1a;
}

.contact-item a {
    color: #333;
    text-decoration: none;
    font-size: 1.2rem;
    transition: color 0.3s ease;
}

.contact-item a:hover {
    color: #666;
}

/* Social Links Grid */
.social-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 20px;
}

.social-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px;
    background-color: white;
    border-radius: 8px;
    text-decoration: none;
    color: #1a1a1a;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.social-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.social-item i {
    font-size: 1.5rem;
}

/* Social platform colors */
.whatsapp:hover { color: #25D366; }
.telegram:hover { color: #0088cc; }
.github:hover { color: #333; }
.linkedin:hover { color: #0077b5; }
.instagram:hover { color: #E4405F; }

/* Contact Form Styles */
.contact-form-container {
    background-color: white;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

.contact-form-container h3 {
    font-size: 2rem;
    color: #1a1a1a;
    margin-bottom: 30px;
}

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

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: 1rem;
    color: #444;
}

.form-group input,
.form-group textarea {
    padding: 12px 15px;
    border: 2px solid #eee;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

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

.form-group textarea {
    min-height: 150px;
    resize: vertical;
}

.submit-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 15px 30px;
    background-color: #1a1a1a;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.submit-btn:hover {
    background-color: #333;
    transform: translateY(-2px);
}

.submit-btn i {
    transition: transform 0.3s ease;
}

.submit-btn:hover i {
    transform: translateX(5px);
}

/* Responsive design */
@media (max-width: 968px) {
    .contact-container {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .contact {
        padding: 60px 20px;
    }

    .contact-title {
        font-size: 3.5rem;
        margin-bottom: 40px;
    }

    .social-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .contact-form-container {
        padding: 30px 20px;
    }
}

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

.lightbox-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) translateY(100%);
    max-width: 90%;
    max-height: 90%;
    opacity: 0;
    transition: transform 0.5s cubic-bezier(0.17, 0.67, 0.21, 1.69), opacity 0.5s ease;
}

.lightbox.active .lightbox-content {
    transform: translate(-50%, -50%) translateY(0);
    opacity: 1;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 90vh;
    border-radius: 8px;
}

.close-lightbox {
    position: absolute;
    top: -40px;
    right: -40px;
    color: white;
    font-size: 30px;
    cursor: pointer;
}
.phone-numbers {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.phone-numbers a {
    color: #333;
    text-decoration: none;
    font-size: 1.2rem;
    transition: color 0.3s ease;
}

.phone-numbers a:hover {
    color: #666;
}

.workflow {
    min-height: 100vh;
    padding: 100px 40px;
    background-color: #CEE0F4;
}

.workflow-title {
    font-size: 5rem;
    font-weight: 900;
    margin-bottom: 80px;
    color: #1a1a1a;
    text-align: center;
}

.bento-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.bento-card {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    background: white;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.bento-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

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

.bento-content {
    padding: 20px;
    text-align: center;
}

.bento-content h3 {
    font-size: 1.8rem;
    color: #1a1a1a;
    margin: 0;
}

/* Responsive design improvements */
@media (max-width: 768px) {
    .hero-lower {
        grid-template-columns: 1fr;
        padding: 20px;
        gap: 20px;
    }

    .hero-title {
        font-size: 2.5rem;
        left: 20px;
        margin-bottom: 15px;
    }

    .lorem-text {
        font-size: 1.4rem;
        line-height: 1.5;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }

    .nav-right ul {
        gap: 15px;
    }

    .nav-right a {
        font-size: 1.5rem;
    }

    .vision {
        padding: 60px 20px;
        margin-top: 0;
    }

    .vision-title {
        font-size: 3rem;
        margin-bottom: 40px;
    }

    .vision-text {
        font-size: 1.4rem;
        margin-bottom: 20px;
        line-height: 1.5;
        word-wrap: break-word;
    }

    .about {
        padding: 60px 20px;
        margin-top: 0;
    }

    .about-title {
        font-size: 3rem;
        margin-bottom: 40px;
    }

    .about-text {
        font-size: 1.2rem;
        line-height: 1.6;
        word-wrap: break-word;
    }

    .skills-title {
        font-size: 2.5rem;
        margin-bottom: 30px;
    }

    .skill-name {
        font-size: 1.8rem;
        word-wrap: break-word;
    }

    .skill-details h4 {
        font-size: 1.3rem;
    }

    .skill-details p {
        font-size: 1rem;
        line-height: 1.5;
        word-wrap: break-word;
    }

    .contact-title {
        font-size: 3rem;
        margin-bottom: 40px;
    }

    .contact-info h3 {
        font-size: 1.5rem;
    }

    .contact-item a {
        font-size: 1rem;
        word-wrap: break-word;
    }

    .social-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .social-item {
        padding: 12px;
        font-size: 0.9rem;
    }

    .contact-form-container {
        padding: 30px 20px;
    }

    .contact-form-container h3 {
        font-size: 1.5rem;
    }

    .form-group input,
    .form-group textarea {
        font-size: 1rem;
        padding: 10px 12px;
    }

    .submit-btn {
        font-size: 1rem;
        padding: 12px 20px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
        left: 15px;
    }

    .lorem-text {
        font-size: 1.2rem;
    }

    .vision-title {
        font-size: 2.5rem;
    }

    .vision-text {
        font-size: 1.2rem;
    }

    .about-title {
        font-size: 2.5rem;
    }

    .about-text {
        font-size: 1.1rem;
    }

    .skills-title {
        font-size: 2rem;
    }

    .skill-name {
        font-size: 1.5rem;
    }

    .contact-title {
        font-size: 2.5rem;
    }
}
