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

body {
    font-family: 'Poppins', sans-serif;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: black;
    background-size: cover;
    background-repeat: no-repeat;
    background-attachment: fixed;
    filter: brightness(0.5);
    z-index: 0;
}

body > * {
    position: relative;
    z-index: 1;
}

.main-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 40px;
  color: white;
  position: relative;
  z-index: 10;
}

.title {
  display: flex;
  flex-direction: row;
  align-items: center;
  color: white;
  font-size: 32px;
  font-weight: 500;
}

.title svg {
  fill: #ffcc00;
  width: 60px;
  height: auto;
  margin-right: 10px;
}

.last-name {
  color: #ffcc00;
}

.right-container {
  display: flex;
  gap: 30px;
}

a {
    text-decoration: none;       
    color: white;                
    font-weight: 500;            
    transition: color 0.3s ease; 
}

a:hover {
    color: #ffcc00;              
}

.heading{
    color: #ffcc00;
    text-align: center;
    margin-top: 15px;
    font-size: larger;
}

.subHeading{
    color: white;
    text-align: center;
    font-size: 20px;
}

.cards-container{
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    padding: 40px;
}

.card{
    position: relative;
    flex: 0 0 calc(40% - 60px);
    height: 520px;
    background-color: rgba(255, 255, 255, 0.08);
    border: 1px solid #ffcc00;
    padding: 0px;
    color: white;
    text-align: center;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.left{
    border-right: none;
}

.right{
    border-left: none;
}

.card span {
    display: block;
    font-size: 18px;
    font-weight: 500;
    margin: 15px 0 5px 0;
}

.card input {
    width: 80%;             
    padding: 12px 16px;     
    margin: 10px 0;         
    border-radius: 10px;    
    border: 1px solid #ffcc00; 
    background-color: rgba(255, 255, 255, 0.1); 
    color: white;          
    font-size: 16px;
}

.card input::placeholder {
    color: #ccc;           
}

.card textarea {
    width: 80%;
    height: 150px;           
    padding: 12px 16px;
    margin: 10px 0;
    border-radius: 10px;
    border: 1px solid #ffcc00;
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
    font-size: 16px;
    resize: vertical;         
}

.card textarea::placeholder {
    color: #ccc;
}

.msgBtn{
    color:  #002244; 
    background-color: #ffcc00;
    font-size: large;
    font-weight: bold; 
    width: 200px;
    height: 50px;
    border-radius: 10px;
    border: 1px solid black;
    outline: 0;
    cursor: pointer;
    transition: color 0.3s ease;
}

.msgBtn:hover{
    color: white;
    border-color: black;
}

.right{
    position: relative;
}

.mail{
    position: absolute;
    width: 30px; 
    height: 30px;
    top: 60px;
    left: 120px;
    fill: white;
}

.info{
    position: absolute;
    top: 62px;
    left: 160px;
}

.info:hover{
    color: blue;
}

.phone{
    position: absolute;
    width: 30px; 
    height: 30px;
    top: 100px;
    left: 120px;
    fill: white;
}

.phoneNo{
    position: absolute;
    top: 102px;
    left: 160px;
}

.location{
    position: absolute;
    width: 40px; 
    height: 50px;
    top: 140px;
    left: 115px;
    fill: white;
}

.address{
    position: absolute;
    top: 142px;
    left: 160px;
}

.fb{
    position: absolute;
    width: 30px; 
    height: 30px;
    bottom:35px;
    left: 130px;
    fill: white;
    cursor: pointer;
    transition: fill 0.3s ease;
}

.fb:hover{
    fill: #1877F2;
}

.insta{
    position: absolute;
    width: 30px; 
    height: 30px;
    bottom:35px;
    left: 190px;
    fill: white;
    cursor: pointer;
    transition: fill 0.3s ease;
}

.insta:hover{
    fill: #E1306C;;
}

.x{
    position: absolute;
    width: 30px; 
    height: 30px;
    bottom:35px;
    left: 250px;
    fill: white;
    cursor: pointer;
    transition: fill 0.3s ease;
}

.x:hover{
    fill: skyblue;
}

a.active {
    color: #ffcc00;
    font-size: 16px;
    font-weight: bold;
}

/* Media Queries */
@media screen and (max-width: 1024px) {
    .card {
        flex: 0 0 calc(50% - 40px);
    }
}

@media screen and (max-width: 768px) {
    .main-container {
        flex-direction: column;
        align-items: center;
        padding: 20px;
    }

    .left-container {
        justify-content: center;
        margin-top: 20px;
        gap: 20px;
        width: 100%;
        flex-wrap: wrap;
    }

    .cards-container {
        flex-direction: column;
        align-items: center;
        padding: 20px;
    }

    .card {
        flex: 0 0 auto;
        width: 100%;
        max-width: 500px;
        margin-bottom: 30px;
    }

    .card.left {
         border-right: 1px solid #ffcc00;
         border-radius: 12px;
    }

    .card.right {
         border-left: 1px solid #ffcc00;
         border-radius: 12px;
    }

    /* Adjust absolute positioning for the right contact card on mobile */
    .mail, .phone, .location, .fb, .insta, .x {
        left: 20px; 
    }
    
    .info, .phoneNo, .address {
        left: 60px;
        text-align: left;
    }

    .fb { left: 30%; transform: translateX(-50%); }
    .insta { left: 50%; transform: translateX(-50%); }
    .x { left: 70%; transform: translateX(-50%); }

    body::before {
        background-attachment: scroll;
        background-position: center;
    }
}

@media screen and (max-width: 480px) {
    .left-container {
        gap: 15px;
        font-size: 14px;
    }

    .heading h1 {
        font-size: 24px;
    }
    
    .subHeading span {
        font-size: 16px;
        padding: 0 10px;
        display: block;
    }
    
    .card {
        height: auto;
        min-height: 520px;
    }
    
    /* Further adjustment for social icons */
    .fb { left: 25%; }
    .insta { left: 50%; }
    .x { left: 75%; }
}

.footer {
  text-align: center;
  width: 100%;
  color: white;
  z-index: 1;
  background-color: rgba(0, 0, 0, 0.8);
  padding: 15px 0;
  margin-top: 20px;
}