html {
    scroll-behavior: smooth;
}

/* Reset attributes for all elements */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Rubik, sans-serif;
}

/* Variables to store theme colors */
:root {
    --text-color: #00468b;
    --bg-color: #222;
    --white: #fff;
    --black: #000;
    --mob-color: #2d2d2d;
}

/* Set maximum width for containers and center */
.container {
    max-width: 1250px;
    width: 100%;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Elements - Start */
header {
    background: var(--bg-color);
    height: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Navigation Bar */
nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Name Styling */
nav .name {
    z-index: 1;
}

nav .name a {
    text-decoration: none;
    font-size: 32px;
    font-weight: 600;
    color: var(--white)
}

/* Specific part of name */
nav .name a span {
    color: var(--text-color)
}

/* Navigation Menu Items */
nav ul {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 25px;
    font-size: 28px;
    list-style: none;
    z-index: 1;
    left: -40px;
}

/* Link Styling */
nav ul li a {
    position: relative;
    text-decoration: none;
    color: var(--white);
    padding-bottom: 5px;
    transition: color 0.4s ease;
}

/* Pseudo-element - underline animation */
nav ul li a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 2px; /* Thiccness */
    background-color: var(--text-color);
    opacity: 0;
    transition: width 0.4s ease;
}

/* Animation effect on hover */
nav ul li a:hover::after,
nav ul li a.active::after {
    opacity: 1;
}

nav ul li a:hover {
    color: var(--text-color);
}

nav ul li a.active {
    color: var(--text-color);
}
/* Header Elements - End */

/* About Elements - Start */
.about {
    background: var(--bg-color);
    position: absolute;
    top: 0;
    width: 100%;
    min-height: 100vh;
    z-index: -1;
    padding: 250px 0 50px;
}

/* Flexbox layout to align the contents in About section */
.about .about-info {
    display: flex;
    align-items: center;
    justify-content: center;
}

.about-info .left {
    flex: 1; /* Equal Space */
}

.left span {
    font-size: 15px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: linear-gradient(130deg, #383528 0%, #191919 100%);
    border: 1px solid #3b3b3b;
    color: var(--white);
    padding: 5px 25px;
    border-radius: 25px;
}

/* Main Heading */
.left h1 {
    font-size: 3rem;
    margin: 25px 0;
    color: var(--white);
}

.left p {
    width: 90%;
    font-size: 16px;
    font-weight: 400;
    line-height: 25px;
    color: #c3c3c3;
    mask-border: 50px;
    margin-bottom: 35px;
}

.left .btn {
    display: flex;
    align-items: center;
}

.left .btn button {
    font-size: 14px;
    font-weight: 600;
    padding: 12px 24px;
    border-radius: 6px;
    color: var(--white);
    border: none;
    outline: none;
    cursor: pointer;
    transition: 0.3s ease-in;
}

.left .btn button:first-child { /* Maybe add more buttons/children */
    background: var(--text-color);
    border: 2px solid var(--text-color);
}

.left .btn button:first-child:hover {
    background: var(--black);
    color: var(--text-color);
    transform: translateY(-5px);
}

/* Social Media Icons */
.social {
    display: flex;
    align-items: center;
    margin-top: 40px;
}

/* Social Media Links layout */
.social .social-links {
    display: flex;
    align-items: center;
    gap: 15px;
}

.social-links a {
    font-size: 20px;
    border-radius: 50%; /* Make Icons circular */
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: linear-gradient(130deg, #383528 0%, #191919 100%);
    border: 1px solid #3b3b3b;
    transition: 0.4s ease; /* Hover smoothness */
}

.social-links a:hover {
    transform: translateY(-5px); /* Lift the Icons sligtly when hovered */
}

/* Profile Image Styling */
.right .profile {
    text-align: right;
}

.right .profile img {
    width: 400px;
    height: 400px;
    object-fit: cover;
    border-radius: 50%;
    border: 4px solid var(--text-color);
    box-shadow: 0 0 50px var(--text-color);
}
/* About Elements - End */

/* Work Elements - Start */
.work {
    background: var(--bg-color);
    position: absolute;
    top: 0;
    width: 100%;
    min-height: 100vh;
    z-index: -1;
    padding: 250px 0 50px;
}

.work h2 {
    color: var(--white);
    text-align: center;
}
/* Work Elements - End */

/* Contact Elements - Start */
.contact {
    background: var(--bg-color);
    position: absolute;
    top: 0;
    width: 100%;
    min-height: 100vh;
    z-index: -1;
    padding: 150px 0 50px;
}

.contact-hero {
    text-align: center;
    margin-bottom: 70px;
}

.contact-hero h1 {
    font-size: 3rem;
    color: var(--white);
    margin-bottom: 15px;
}

.contact-hero p {
    color: #c3c3c3;
    font-size: 16px;
}

.contact-bubbles {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 40px;
}

.contact-bubble {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--white);
}

.bubble-icon {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    background: linear-gradient(130deg, #383528 0%, #191919 100%);
    border: 2px solid #3b3b3b;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 50px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
}

.contact-bubble span {
    font-size: 15px;
    font-weight: 500;
    color: #c3c3c3;
    transition: color 0.3s ease;
}

.contact-bubble small {
    font-size: 12px;
    color: #666;
    transition: color 0.3s ease;
}

.contact-bubble:hover .bubble-icon {
    border-color: var(--text-color);
    box-shadow: 0 0 25px rgba(0, 70, 139, 0.6);
    transform: translateY(-8px);
}

.contact-bubble:hover span,
.contact-bubble:hover small {
    color: var(--white);
}
/* Contact Elements - End */

/* General Elements - Start */
footer p {
    display: flex;
    color: var(--white);
    text-align: center;
    margin-top: 50px;
    font-size: 0.9rem;
}

.burger {
    display: none;
}
/* General Elements - End */

/* Mobile Devices - Start */
@media (max-width: 768px) {
    .about .about-info {
        flex-direction: column-reverse;
        text-align: center;
    }

    .about-info .left,
    .about-info .right {
        width: 100%;
    }

    .left p {
        width: 100%;
    }

    .left .btn,
    .social,
    .social .social-links {
        justify-content: center;
    }

    .right .profile img {
        width: min(400px, 70vw);
        height: min(400px, 70vw);
    }

    .right .profile {
        text-align: center;
        margin-bottom: 20px;
    }

    nav .name a {
        font-size: 22px;
    }

    nav ul {
        font-size: 18px;
        gap: 15px;
        left: 0;
    }

    header {
        height: auto;
        padding: 15px 0;
    }

    nav {
        flex-wrap: wrap;
        position: relative;
    }

    .burger {
        display: block;
        background: none;
        border: none;
        color: var(--white);
        font-size: 28px;
        cursor: pointer;
    }

    nav ul {
        display: none;
        flex-direction: column;
        width: 100%;
        background: var(--mob-color);
        padding: 15px 0;
        gap: 0;
        left: 0;
    }

    nav ul.open {
        display: flex;
    }

    nav ul li {
        text-align: center;
        padding: 10px 0;
    }

    .contact-bubbles {
        gap: 25px;
    }

    .bubble-icon {
        width: 90px;
        height: 90px;
        font-size: 40px;
    }
}
/* Mobile Devices - End */
