* {
    margin: 0;
    padding: 0;
    font-family: 'Poppins', sans-serif;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

:root {
    --primary-color: #ff004f;
    --secondary-color: #08d9d6;
    --dark-color: #080808;
    --light-color: #f4f4f4;
    --text-color: #ababab;
    --bg-color: #1a1a1a;
}

body {
    background: var(--dark-color);
    color: var(--light-color);
    overflow-x: hidden;
}

#header {
    width: 100%;
    height: 100vh;
    background-image: url(Images/bg_image.png.png);
    background-size: cover;
    background-position: center;
    position: relative;
}

/* For mobile devices */
@media only screen and (max-width: 768px) {
    #header {
        background-image: url(Images/bg_image_phone.png);
        background-position: top center;
    }
}

.container {
    padding: 10px 10%;
}

nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    padding: 10px 0;
    position: relative;
    z-index: 10;
}

.logo {
    width: 100px;
    transition: transform 0.5s;
}

.logo:hover {
    transform: scale(1.1);
}

nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    margin: 10px 20px;
    position: relative;
}

nav ul li a {
    color: var(--light-color);
    text-decoration: none;
    font-size: 18px;
    position: relative;
    transition: all 0.3s;
}

nav ul li a:hover {
    color: var(--primary-color);
}

/* Ripple effect animation */
.ripple-effect {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.7);
    transform: scale(0);
    animation: ripple 0.6s linear;
    pointer-events: none;
}

@keyframes ripple {
    to {
        transform: scale(2.5);
        opacity: 0;
    }
}

nav ul li a::after {
    content: '';
    width: 0;
    height: 3px;
    background: var(--primary-color);
    position: absolute;
    left: 0;
    bottom: -6px;
    transition: width 0.5s;
}

nav ul li a:hover::after {
    width: 100%;
}

.download-btn {
    background: var(--primary-color);
    color: white;
    padding: 8px 15px;
    border-radius: 4px;
    transition: all 0.3s;
}

.download-btn:hover {
    background: #d10042;
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 5px 15px rgba(209, 0, 66, 0.4);
}

.header-text {
    margin-top: 20%;
    margin-left: -2%;
    font-size: 30px;
    max-width: 800px;
}

@media only screen and (max-width: 768px) {
    .header-text {
        position: absolute;
        bottom: 10%;
        left: 5%;
        right: 5%;
        text-align: center;
        transform: translateY(0);
    }
    
    .header-text h1 {
        font-size: 36px;
    }
}

.header-text h1 {
    font-size: 60px;
    margin-top: 20px;
    line-height: 1.2;
    animation: fadeInUp 1s ease-out;
}

.header-text h1 span {
    color: var(--primary-color);
    text-shadow: 0 0 10px rgba(255, 0, 79, 0.5);
    position: relative;
}

.header-text h1 span::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 3px;
    background: var(--secondary-color);
    bottom: -5px;
    left: 0;
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.5s;
}

.header-text:hover h1 span::after {
    transform: scaleX(1);
    transform-origin: left;
}

.typing-text {
    font-size: 30px;
    font-weight: 600;
    color: var(--secondary-color);
    height: 40px;
    overflow: hidden;
}

/* About Section */
#about {
    padding: 80px 0;
    background-color: var(--bg-color);
    color: var(--text-color);
}

.row {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 50px;
}

.about-col-1 {
    flex-basis: 35%;
    min-width: 300px;
}

.about-col-1 img {
    width: 100%;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    transition: transform 0.5s;
    opacity: 0;
    transform: translateX(-50px);
}

.about-col-1 img.animate {
    opacity: 1;
    transform: translateX(0);
}

.about-col-1 img:hover {
    transform: scale(1.02) rotate(1deg);
}

.about-col-2 {
    flex-basis: 60%;
}

.about-col-2 .sub-title {
    font-size: 40px;
    font-weight: 600;
    color: var(--light-color);
    margin-bottom: 20px;
}

.about-col-2 p {
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 30px;
}

.tab-titles {
    display: flex;
    margin: 20px 0 40px;
    flex-wrap: wrap;
    gap: 20px;
}

.tab-links {
    margin-right: 50px;
    font-size: 18px;
    font-weight: 500;
    cursor: pointer;
    position: relative;
    color: var(--text-color);
    transition: all 0.3s;
}

.tab-links:hover {
    color: var(--light-color);
}

.tab-links.active-link {
    color: var(--primary-color);
}

.tab-links::after {
    content: '';
    width: 0;
    height: 3px;
    background: var(--primary-color);
    position: absolute;
    left: 0;
    bottom: -8px;
    transition: width 0.5s;
}

.tab-links.active-link::after {
    width: 50%;
}

.tab-contents ul li {
    list-style: none;
    margin: 15px 0;
    color: var(--light-color);
    font-size: 16px;
    position: relative;
    padding-left: 20px;
}

.tab-contents ul li::before {
    content: '▹';
    position: absolute;
    left: 0;
    color: var(--secondary-color);
}

.tab-contents ul li span {
    color: var(--secondary-color);
    font-size: 14px;
    display: block;
    margin-bottom: 5px;
}

.tab-contents {
    display: none;
    animation: fadeIn 1s;
}

.tab-contents.active-tab {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Projects Section */
#project {
    padding: 80px 0;
    background-color: var(--dark-color);
}

.sub-title {
    text-align: center;
    font-size: 40px;
    font-weight: 600;
    margin-bottom: 50px;
    color: var(--light-color);
    position: relative;
}

.sub-title::after {
    content: '';
    position: absolute;
    width: 80px;
    height: 4px;
    background: var(--primary-color);
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
}

.work-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    grid-gap: 40px;
    margin-top: 50px;
}

.work {
    border-radius: 10px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    transition: all 0.5s;
    opacity: 0;
    transform: translateY(50px);
}

.work.animate {
    opacity: 1;
    transform: translateY(0);
}

.work:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 15px 30px rgba(255, 0, 79, 0.2);
}

.work:nth-child(1) { transition-delay: 0.1s; }
.work:nth-child(2) { transition-delay: 0.2s; }
.work:nth-child(3) { transition-delay: 0.3s; }

.work img {
    width: 100%;
    border-radius: 10px;
    display: block;
    transition: transform 0.5s;
}

.layer {
    width: 100%;
    height: 0;
    background: linear-gradient(rgba(0, 0, 0, 0.6), var(--primary-color));
    border-radius: 10px;
    position: absolute;
    left: 0;
    bottom: 0;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    padding: 0 40px;
    text-align: center;
    transition: height 0.5s;
}

.layer h3 {
    font-weight: 500;
    margin-top: 50px;
    margin-bottom: 10px;
    color: var(--light-color);
    font-size: 24px;
}

.layer p {
    color: var(--light-color);
    font-size: 12px;
    line-height: 1.2;
    margin-bottom: 20px;
}

.layer a {
    margin-top: -5px;
    color: var(--primary-color);
    text-decoration: none;
    font-size: 18px;
    line-height: 60px;
    background: var(--light-color);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    text-align: center;
    transition: all 0.3s;
}

.layer a:hover {
    background: var(--primary-color);
    color: var(--light-color);
    transform: rotate(360deg) scale(1.2);
}

.work:hover .layer {
    height: 100%;
}

.btn {
    display: block;
    margin: 50px auto;
    width: fit-content;
    border: 1px solid var(--primary-color);
    padding: 14px 50px;
    border-radius: 6px;
    text-decoration: none;
    color: var(--light-color);
    transition: all 0.5s;
    font-weight: 500;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--primary-color);
    transition: all 0.5s;
    z-index: -1;
}

.btn:hover {
    color: var(--light-color);
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(255, 0, 79, 0.3);
}

.btn:hover::before {
    left: 0;
}

.btn2 {
    background: var(--primary-color);
    border: none;
    width: 100%;
}

/* Contact Section */
#contact {
    padding: 80px 0;
    background: var(--bg-color);
}

.contact-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.contact-container h2 {
    text-align: center;
    font-size: 40px;
    margin-bottom: 20px;
    color: var(--light-color);
    position: relative;
}

.contact-container h2::after {
    content: '';
    position: absolute;
    width: 80px;
    height: 4px;
    background: var(--primary-color);
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
}

.contact-container p {
    text-align: center;
    font-size: 16px;
    color: var(--text-color);
    margin-bottom: 50px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.contact-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 40px;
}

.contact-details {
    flex: 1;
    min-width: 300px;
}

.contact-details h3 {
    font-size: 24px;
    margin-bottom: 30px;
    color: var(--light-color);
}

.contact-details p {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    color: var(--text-color);
    text-align: left;
    font-size: 16px;
}

.contact-details i {
    margin-right: 15px;
    color: var(--primary-color);
    font-size: 20px;
    width: 30px;
    text-align: center;
}

.social-icons {
    margin-top: 30px;
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.social-icons a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: var(--light-color);
    font-size: 20px;
    transition: all 0.3s;
}

.social-icons a:hover {
    background: var(--primary-color);
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 5px 15px rgba(255, 0, 79, 0.3);
}

.contact-form {
    flex: 1;
    min-width: 300px;
    background: rgba(255, 255, 255, 0.05);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.5s;
}

.contact-form.animate {
    opacity: 1;
    transform: translateY(0);
}

.contact-form label {
    display: block;
    margin-bottom: 8px;
    color: var(--light-color);
    font-size: 16px;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 12px 15px;
    margin-bottom: 20px;
    border: none;
    border-radius: 5px;
    background: rgba(255, 255, 255, 0.1);
    color: var(--light-color);
    font-size: 16px;
    transition: all 0.3s;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.2);
    box-shadow: 0 0 10px rgba(255, 0, 79, 0.3);
}

.contact-form textarea {
    resize: vertical;
    min-height: 150px;
}

/* Footer */
footer {
    background: var(--dark-color);
    color: var(--text-color);
    text-align: center;
    padding: 20px 0;
    position: relative;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(to right, transparent, var(--primary-color), transparent);
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.footer-content p {
    font-size: 14px;
    margin: 5px 0;
}

.pulse {
    animation: pulse 1.5s infinite;
    color: var(--primary-color);
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.3); }
    100% { transform: scale(1); }
}

/* Mobile Menu */
.menu-toggle {
    display: none;
    cursor: pointer;
    padding: 10px;
    z-index: 1000;
}

.hamburger {
    width: 25px;
    height: 3px;
    background: #fff;
    position: relative;
    transition: all 0.3s;
}

.hamburger:before,
.hamburger:after {
    content: '';
    position: absolute;
    width: 25px;
    height: 3px;
    background: #fff;
    transition: all 0.3s;
}

.hamburger:before {
    top: -8px;
}

.hamburger:after {
    top: 8px;
}

/* Active state for hamburger */
.menu-toggle.active .hamburger {
    background: transparent;
}

.menu-toggle.active .hamburger:before {
    top: 0;
    transform: rotate(45deg);
}

.menu-toggle.active .hamburger:after {
    top: 0;
    transform: rotate(-45deg);
}

/* Mobile menu */
@media only screen and (max-width: 768px) {
    .menu-toggle {
        display: block;
    }
    
    #sidemenu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background: #ff004f;
        padding-top: 80px;
        z-index: 999;
        transition: right 0.5s ease;
        flex-direction: column;
    }
    
    #sidemenu.active {
        right: 0;
    }
    
    #sidemenu li {
        margin: 20px 0;
        text-align: center;
    }
    
    #sidemenu li a {
        font-size: 20px;
        padding: 10px 0;
        display: block;
    }
}

/* Responsive Design */
@media only screen and (max-width: 768px) {
    .header-text {
        margin-top: 100px;
        font-size: 20px;
    }
    
    .header-text h1 {
        font-size: 40px;
    }
    
    .typing-text {
        font-size: 24px;
        height: 30px;
    }
    
    .sub-title {
        font-size: 30px;
    }
    
    .about-col-1, .about-col-2 {
        flex-basis: 100%;
    }
    
    .about-col-1 {
        margin-bottom: 30px;
    }
    
    .contact-content {
        flex-direction: column;
    }
    
    .contact-details, .contact-form {
        width: 100%;
    }
}

@media only screen and (max-width: 480px) {
    .header-text {
        margin-top: 80px;
        font-size: 18px;
    }
    
    .header-text h1 {
        font-size: 32px;
    }
    
    .typing-text {
        font-size: 20px;
    }
    
    .work-list {
        grid-template-columns: 1fr;
    }
    
    .btn {
        padding: 10px 30px;
    }
    
    .social-icons a {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Scroll animation */
.animate {
    animation: fadeInUp 0.8s forwards;
}
