@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Boldonse&display=swap');
*{
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    font-family: "montserrat";
}

.page-wrapper {
    overflow-x: hidden;
    width: 100%;
}

.main-container{
    display: grid;
    grid-template-columns: 1fr 1fr; /* Split 50/50 */
    /* width: 90%; */
    gap: 10px;
    max-width: 1200px;
    background-color: rgba(0, 0, 0, 0);
    margin: 30px 10%;
    
}
.main-container{
    display: grid;
    grid-template-columns: 1fr 1fr; /* Split 50/50 */
    /* width: 90%; */
    gap: 10px;
    max-width: 1200px;
    background-color: rgba(0, 0, 0, 0);
    margin: 30px 10%;
    
}
.container1{
    /* border-radius: 20px; */
    /* border: 1px solid rgba(29, 29, 29, 0.521); */
}
.container1 h1 {
    font-size: 40px;
    text-align: center;
    color: var(--text-color-primary);
    padding: 20px 0;
}
.container1 h1 span{
    color: var(--primary-accent-hover);
    font-family: "Boldonse";
    font-size: 45px;
}
.container1 p{
    /* font-size: 12px; */
    text-align: center;
    padding: 10px 10px;
    color: var(--text-color-secondary);
    font-weight: 500;
    line-height: 1.5;
}
.buttons{
    display: flex;
    gap: 10px;
    padding: 10px 0px;
    justify-content: center;
    align-items: center;
}
.btn1 button{
    background-color: var(--primary-accent-hover);
    height: 30px;
    width: 120px;
    outline: none;
    border: none;
    border-radius: 20px;
    color: white;
    font-weight: 600;
    transition: ease-in-out 0.3s;
}
.btn1 button i {
    vertical-align: middle;
    margin-right: 5px;
}

.btn1 button:hover,
.btn2 button:hover,
.btn3 button:hover,
.btn4:hover, 
.btn5 button:hover{
    cursor: pointer;
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.479);
    transform: scale(1.01);
    background-color: #ff53b1;
    color: rgba(17, 17, 17, 0.671);
    
} 
.btn2 button{
    background-color: transparent;
    height: 30px;
    width: 150px;
    border: 1px solid var(--primary-accent-hover);
    border-radius: 20px;
    color: var(--text-color-primary);
    font-weight: 600;
} 
.btn2 button i {
    vertical-align: middle;
    margin-left: 5px;
    color: inherit; /* Use the button's text color by default */
    transition: color 0.3s ease-in-out;
}



.container2{
    border-radius: 20px;
    background-color: rgba(41, 39, 39, 0);
}
.container2 h1{
    font-size: 25px;
    text-align: center;
    color: var(--text-color-primary);
    padding: 20px 0;
    outline: none;
    font-style: italic;
}
.container2 h1 i {
    color: var(--primary-accent);
    margin-right: 10px;
    vertical-align: middle; /* Aligns icon with the text */
}

.wrapper h2{
    text-align: center;
    color: oklab(29.313% 0 -0.00003);
}
.wrapper{
    background-color: transparent;
    width: 85%;
    margin: 0 auto;
    outline: none;
    border: none;
}

.input-box{
    width: 100%;
    margin: 10px 0;
    height: 50px;
    border-radius: 20px;
    outline: none;
    border: 1px solid transparent;
    padding-left: 50px;
    box-shadow: var(--card-shadow);
    transition: transform 0.3s ease-in-out;
    background-color: var(--card-bg);
    color: var(--text-color-primary);
}
textarea{
    width: 100%;
    border-radius: 20px;
    margin: 10px 0;
    padding: 20px 50px;
    box-shadow: var(--card-shadow);
    border: 1px solid transparent; 
    transition: transform 0.3s ease-in-out;
    background-color: var(--card-bg);
    color: var(--text-color-primary);
}

.input-box:hover,
textarea:hover {
    transform: scale(1.04);
}

.btn4 {
    height: 30px;
    width: 100%;
    outline: none;
    border: none;
    border-radius: 20px;
    color: white;
    font-weight: 600;
    transition: ease-in-out 0.3s;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    cursor: pointer; /* Add cursor pointer for better UX */
    background-color: var(--primary-accent);
}

.btn4 i {
    color: white;
    margin-right: 5px;
    vertical-align: middle;
}

input.input-box::placeholder{
    font-style: italic;
    color: var(--text-color-secondary);
}
textarea::placeholder{
    font-style: italic;
    color: var(--text-color-secondary);
}
.just-hr1{
    display: flex;
    justify-content: space-evenly;
    align-items: center;
    height: 60px;
    width: 100%;
    background-color: var(--primary-accent);
    color: white;
    transform: rotate(-0.8deg);
}
.just-hr{
    display: flex;
    justify-content: space-evenly;
    align-items: center;
    height: 40px;
    width: 100%;
    background-color: #131313;
    color: white;
    margin-top: -20px;
    /* transform: rotate(-2deg); */
}
/* other socials */
.main-socials{
    background-color: #1a1a1a;
    padding: 50px 10%;
    margin-top: 30px;
}

.socials-title {
    color: white;
    text-align: center;
    font-size: 2rem;
    margin-bottom: 40px;
}

.socials-grid {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    flex-wrap: wrap;
}

.social-card {
    display: flex;
    align-items: center;
    gap: 20px;
    background-color: #2c2c2c;
    padding: 20px 30px;
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    text-decoration: none;
    transition: transform 0.3s ease, background-color 0.3s ease;
    min-width: 300px;
}

.social-card:hover {
    transform: translateY(-5px);
    background-color: #3a3a3a;
}

.social-card.x-profile-card:hover {
    background-color: #666666;
    color: white;
}

.social-card i {
    font-size: 48px;
    color: #fff;
}

.social-card.whatsapp i { color: #25D366; }
.social-card.behance i { color: #053EFF; }
.social-card.instagram i { color: #E4405F; }
.social-card.x-profile-card i { color: #0380f5; }

/* Specific style for the X card inside the main container */
.x-profile-card {
    margin: 20px auto 0 auto;
    width: 80%;
    max-width: 400px;
    background-color: #2c2c2c; /* Set a dark background for light mode */
    min-width: 0; /* Override min-width from the other section */
    box-shadow: var(--card-shadow);
}

/* Ensure text inside this specific card is always light */
.x-profile-card .social-text h3,
.x-profile-card .social-text p {
    color: #e0e0e0;
}

body.dark-mode .x-profile-card {
    background-color: var(--card-bg); /* Revert to theme background in dark mode */
}

.social-text h3 {
    color: rgb(201, 201, 201);
    font-size: 1.2rem;
    margin-bottom: 5px;
}

.social-text p {
    color: rgb(170, 170, 170);
    font-size: 0.9rem;
    margin: 0;
    padding: 0;
    line-height: 1.2;
}
/* .social-text p:hover{
    color: white;
} */

/* Responsive Design */

/* Large Screens & Laptops (max-width: 1200px) */
@media screen and (max-width: 1200px) {
    .head-er, header, .main-container, .main-socials {
        margin-left: 40px;
        margin-right: 40px;
    }
}

/* Tablet View (max-width: 1024px) */
@media screen and (max-width: 1024px) {
    .head-er, header, .main-container, .main-socials {
        margin-left: 10%;
        margin-right: 10%;
    }
    .wrapper {
        width: 80%;
        margin-left: auto;
        margin-right: auto;
    }
}

@media screen and (min-width: 851px) and (max-width: 1024px) {
    header h1{
        font-size: 23px;
    }
    ul li a{
    font-size: 14px;
    }
    .btn-email button{
        width: 100px;
        height: 35px;
    }
    .head-er, header {
        margin-left: 40px;
        margin-right: 40px;
    }
}

/* Small Tablets & Large Phones (max-width: 850px) */
@media screen and (max-width: 850px) {
    .head-er {
        margin: 0 10%;
        border-radius: 40px;
    }
    header {
        margin: 5px 0;
        padding: 0 25px;
    }
    header h1 {
        font-size: 22px;
    }
    
    .hamburger {
        z-index: 1001; /* Ensure it's above the scrolled header */
        display: block;
    }
    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }
    .hamburger.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    nav ul {
        display: flex; /* Ensure flexbox is active for alignment */
        position: fixed;
        left: 0;
        top: 0;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        background-color: rgba(29, 29, 29, 0.98); /* Professional dark background */
        backdrop-filter: blur(5px);
        width: 100%;
        height: 100vh;
        transition: transform 0.3s ease-in-out;
        transform: translateY(-100%); /* Start off-screen */
    }

    nav ul.active {
        transform: translateY(0); /* Slide into view */
    }

    nav ul li {
        margin: 15px 0;
        padding: 0;
    }
    
    nav ul li a {
        font-size: 1.2rem; /* Reduced, readable font size */
        color: #fff; /* White text for dark background */
    }
    
    .btn-email {
        padding: 0;
        margin-top: 20px;
    }

    /* Ensure links inside the active mobile menu are always white, even on scroll */
    nav ul.active li a {
        color: #fff !important;
    }

    /* Contact Form & Info */
    .main-container {
        margin: 20px 10%;
        display: flex;
        flex-direction: column;
        gap: 30px;
    }

    .container1 h1{
        font-size: 32px;
        text-align: center;
        line-height: 1.2;
    }
    .container2 h1{
        font-size: 22px;
        text-align: center;
    }
    
    .container1 p {
        font-size: 15px;
        text-align: center;
    }

    .wrapper {
        width: 90%;
        margin: 0 auto;
        padding: 0 0 15px 0;
    }
    .wrapper h2, .container2 h1 {
        font-size: 18px;
    }

    /* Socials Section */
    .main-socials {
        padding: 40px 10%;
        margin-left: 0;
        margin-right: 0
    }
    .socials-title {
        font-size: 1.5rem;
    }
    .social-card {
        min-width: 0;
        width: 100%;
        padding: 15px 20px;
    }
    .social-card i {
        font-size: 36px;
    }
}

/* Small Mobile (max-width: 480px) */
@media screen and (min-width: 300px) and (max-width: 479px) {
    header h1 {
        font-size: 20px;
    }
    .container1 h1{
        font-size: 28px;
        text-align: left;
        line-height: 1.2;
        padding-bottom: 0;
    }
    .container1 h1 span{
        font-size: 40px;;
    }
    .container2 h1{
        font-size: 20px;
        text-align: center;
    }
    .container1 p {
        font-size: 12px;
        text-align: left;
    }
    .btn1 button, .btn2 button {
        font-size: 12px;
        width: auto;
        padding: 0 15px;
    }
    .buttons {
        justify-content: flex-start;
    }
    .wrapper {
        width: 100%;
        padding: 0;
    }
}
