* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: linear-gradient(#1f2937, #000000);
    font-family: 'Orbitron', sans-serif;
    overflow-x: hidden;
    padding: 0;
    margin: 0;
}

/* Header and Navigation */
.header {
    align-items: center;
    justify-content: space-between;
    padding: 15px 20px;
    display: flex;
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 999;
    background-color: #007BFF;
    border-bottom: #0056B3 solid 5px;
    border-left: #0056B3 solid 5px;
    border-right: #0056B3 solid 5px;
    transition: all 0.3s ease;
}

.logo {
    width: auto;
    cursor: pointer;
    transition: 0.5s;
    text-decoration: none;
    font-family: monospace;
    font-size: 24px;
    color: #fff !important;
    white-space: nowrap;
}

.menu-toggle {
    display: none;
    font-size: 28px;
    cursor: pointer;
    color: #fff;
    z-index: 1001;
}

nav {
    display: flex;
    align-items: center;
}

.navbar {
    display: flex;
    align-items: center;
    margin: 0;
    padding: 0;
    list-style: none;
}

.navbar li {
    display: inline-block;
    margin: 0 10px;
    position: relative;
    cursor: pointer;
    transition: 0.5s;
    padding: 10px 25px;
}

.navbar li a {
    text-decoration: none;
    font-size: 20px;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 5px;
}

.navbar li a:hover {
    color: #0bc8c8;
}

.theme-selector {
    margin-left: 15px;
    cursor: pointer;
}

/* Line Animation */
.line {
    min-height: 100vh;
    width: 1%;
    background-color: #16eebf;
    z-index: -1;
    align-items: center;
    justify-content: center;
    position: fixed;
    display: flex;
    animation: line 2s linear infinite;
}

@keyframes line {
    0% {
        height: 0%;
        background: linear-gradient(#007BFF, #171717);
    }
    50% {
        height: 100%;
        background: linear-gradient(#3a3c3c, #007BFF);
    }
    100% {
        height: 0%;
        background: linear-gradient(#007BFF, #272b2a);
    }
}

/* Section Styles */
.section {
    padding: 120px 5% 60px;
    margin-top: 60px;
}

/* Home Section */
.home-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    align-items: center;
}

.home-text {
    max-width: 600px;
}

.home-content .p1 {
    font-size: 25px;
    margin-top: 10px;
    text-transform: capitalize;
    font-weight: 700;
} 

.home-content .p1::after {
    content: '\a482';
    color: #007BFF;
    font-size: 60px;
    font-family: "Font Awesome 4 Free";
    font-weight: 900;
}

span {
    color: #007BFF;
    font-weight: bold;
    font-size: 32px;
    text-transform: uppercase;
}

h1 {
    text-transform: capitalize;
    color: #fff;
    font-size: 42px;
}

.home-content .text {
    font-size: 16px;
    margin-top: 10px;
    line-height: 1.6;
    color: #fff;
}

.button-box {
    margin: 20px 0;
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.button-box a {
    text-decoration: none;
    color: #fff;
    background-color: #007BFF;
    padding: 10px 20px;
    border-radius: 5px;
    font-size: 16px;
    transition: 0.3s;
}

.button-box a:hover {
    background-color: #0056B3;
    color: #fff;
    transform: scale(1.05);
}

.social-media {
    display: flex;
    gap: 30px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.social-media a {
    text-decoration: none;
    color: #007BFF;
    transition: 0.3s;
    font-size: 30px;
}

.social-media a:hover {
    color: #0056B3;
    transform: scale(1.2);
}

/* Profile Picture */
.pic-box {
    position: relative;
    width: 100%;
    max-width: 500px;
    height: 500px;
    border-radius: 25%;
    margin: 0 auto;
    overflow: hidden;
}

.robot {
    position: absolute;
    width: 1000px;
    height: 1000px;
    top: -300px;
    left: -200px;
    z-index: 0;
    transition: all 0.5s ease;
}

/* About Section */
.about-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    padding: 120px 5% 60px;
    align-items: center;
}

.my-pic-box img {
    border-radius: 20px;
    filter: drop-shadow(0 0 0.75rem #03dae9);
    transition: all 0.5s ease;
    width: 100%;
    max-width: 450px;
    display: block;
    margin: 0 auto;
}

.about-content {
    border-right: 1px solid #0056B3;
    border-bottom: 1px solid #0056B3;
    border-top-right-radius: 10%;
    border-bottom-right-radius: 5%;
    padding: 30px;
}

.about-content h2 {
    font-size: 40px;
    text-transform: capitalize;
    margin-bottom: 20px;
    color: #007BFF;
}

.about-content p {
    font-size: 18px;
    line-height: 1.6;
}

.about-content p::first-letter {    
    color: #007BFF;
    font-weight: bold;
    font-size: 32px;
    font-family: cursive;
}

/* Skills Section */
.skill-section {
    margin: 100px 5%;
}

.skill-section h2 {
    margin-bottom: 30px;
}

.skill-section p {
    font-size: 18px;
    line-height: 1.6;
    color: #76b2f2;
}

.progress {
    margin: 15px 0;
    height: 20px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 5px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 0 10px #007BFF;
}

/* Projects Section */
.projects-section {
    margin: 100px 5%;
    background: rgba(0, 0, 0, 0.2);
}

.projects-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    justify-items: center;
}

.project-card {
    border: #007BFF solid 2px;
    border-radius: 10px;
    padding: 20px;
    transition: all 0.3s ease;
    width: 100%;
    max-width: 350px;
    min-height: 400px;
    display: flex;
    flex-direction: column;
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0, 123, 255, 0.3);
}

.project-card img {
    width: 100%;
    height: 200px;
    border-radius: 8px;
    object-fit: cover;
    margin-bottom: 15px;
    transition: 0.5s ease;
}

.project-card:hover img {
    transform: scale(1.05);
    filter: saturate(2.5);
}

.project-card h3 {
    color: #007BFF;
    margin: 10px 0;
    font-size: 18px;
}

.project-card p {
    font-size: 14px;
    flex-grow: 1;
}

/* Contact Section */
.contact-section {
    margin: 100px 5%;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 10px;
}

.contact-form {
    max-width: 800px;
    margin: 0 auto;
}

.input-box {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.inner-box {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.inner-box input,
.input-field textarea {
    border: 2px solid #007BFF;
    background-color: transparent;
    color: #fff;
    padding: 12px;
    border-radius: 5px;
    transition: 0.3s;
    width: 100%;
}

.inner-box input:focus,
.input-field textarea:focus {
    border: 2px solid cyan;
    background: linear-gradient(#0a1422, #000000);
    box-shadow: inset 0 9px 9px #29edff;
    color: #fff;
    outline: none;
}

/* Footer */
footer {
    padding: 60px 40px;
    margin-bottom: -30px;
    width: 100%;
    background-color: #0b1015;
    color: #8b99ab;
    font-size: 18px;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
}

.media {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.media a {
    color: #8b99ab;
    font-size: 48px;
    transition: 0.3s;
}

.media a:hover {
    color: #007BFF;
    transform: scale(1.2);
}

.footer-text h2 {
    font-size: 24px;
    margin-bottom: 15px;
}

.footer-text p {
    font-size: 16px;
    margin: 10px 0;
}

/* ========== RESPONSIVE STYLES ========== */

/* Large Desktop (1200px+) */
@media screen and (min-width: 1200px) {
    .home-content,
    .about-section {
        gap: 50px;
    }
}

/* Tablet and Small Desktop (768px - 1199px) */
@media screen and (max-width: 1199px) {
    .section {
        padding: 100px 4% 50px;
    }
    
    h1 {
        font-size: 36px;
    }
    
    .home-content .p1 {
        font-size: 22px;
    }
    
    .pic-box {
        max-width: 350px;
        height: 350px;
    }
    
    .robot {
        width: 800px;
        height: 800px;
        top: -250px;
        left: -180px;
    }
}

/* Tablet Portrait (768px - 991px) */
@media screen and (max-width: 991px) {
    .navbar li {
        padding: 8px 15px;
    }
    
    .navbar li a {
        font-size: 18px;
    }
    
    .logo {
        font-size: 20px;
    }
    
    .projects-container {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
}

/* Mobile and Small Tablet (max-width: 768px) */
@media screen and (max-width: 768px) {
    body {
        padding: 0;
    }
    
    .header {
        padding: 12px 15px;
        flex-wrap: wrap;
    }
    
    .menu-toggle {
        display: block;
        order: 2;
    }
    
    .logo {
        order: 1;
        font-size: 18px;
    }
    
    .theme-selector {
        order: 3;
        margin-left: auto;
        margin-right: 10px;
    }
    
    nav {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        background: #007BFF;
        height: calc(100vh - 70px);
        overflow-y: auto;
        transition: left 0.5s ease;
        order: 4;
        flex-basis: 100%;
        padding: 20px 0;
        border-top: 1px solid rgba(255, 255, 255, 0.2);
    }
    
    nav.active {
        left: 0;
    }
    
    .navbar {
        display: block;
        text-align: center;
        width: 100%;
    }
    
    .navbar li {
        display: block;
        margin: 0;
        padding: 20px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .navbar li a {
        justify-content: center;
        font-size: 20px;
    }
    
    .section {
        padding: 100px 5% 40px;
        margin-top: 40px;
    }
    
    .home-content,
    .about-section {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
    }
    
    .home-text {
        max-width: 100%;
    }
    
    h1 {
        font-size: 32px;
    }
    
    span {
        font-size: 28px;
    }
    
    .home-content .p1 {
        font-size: 20px;
    }
    
    .home-content .p1::after {
        font-size: 50px;
    }
    
    .pic-box {
        order: -1;
        max-width: 300px;
        height: 300px;
        margin: 0 auto;
    }
    
    .robot {
        width: 700px;
        height: 700px;
        top: -200px;
        left: -200px;
    }
    
    .social-media,
    .button-box {
        justify-content: center;
    }
    
    .about-section {
        padding: 80px 5% 40px;
    }
    
    .about-content {
        border-right: none;
        border-bottom: 1px solid #0056B3;
        border-top-right-radius: 0;
        padding: 20px;
        order: 2;
    }
    
    .my-pic-box {
        order: 1;
    }
    
    .about-content h2 {
        font-size: 32px;
    }
    
    .about-content p {
        font-size: 16px;
    }
    
    .skill-section,
    .projects-section,
    .contact-section {
        margin: 60px 5%;
        padding: 30px 20px;
    }
    
    .inner-box {
        flex-direction: column;
        gap: 15px;
    }
    
    .projects-container {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .project-card {
        max-width: 100%;
    }
    
    footer {
        padding: 40px 20px;
    }
    
    .media a {
        font-size: 40px;
    }
    
    .footer-text h2 {
        font-size: 20px;
    }
    
    .footer-text p {
        font-size: 14px;
    }
}

/* Small Mobile (max-width: 576px) */
@media screen and (max-width: 576px) {
    .header {
        padding: 10px;
    }
    
    .logo {
        font-size: 16px;
    }
    
    .theme-selector {
        font-size: 12px;
        padding: 5px 8px;
    }
    
    .section,
    .about-section {
        padding: 80px 15px 30px;
    }
    
    h1 {
        font-size: 28px;
    }
    
    span {
        font-size: 24px;
    }
    
    .home-content .p1 {
        font-size: 18px;
    }
    
    .home-content .p1::after {
        font-size: 40px;
    }
    
    .home-content .text {
        font-size: 14px;
    }
    
    .button-box a {
        padding: 8px 16px;
        font-size: 14px;
    }
    
    .social-media a {
        font-size: 26px;
    }
    
    .pic-box {
        max-width: 250px;
        height: 250px;
    }
    
    .robot {
        width: 600px;
        height: 600px;
        top: -180px;
        left: -175px;
    }
    
    .about-content h2 {
        font-size: 28px;
    }
    
    .about-content p {
        font-size: 14px;
    }
    
    .skill-section h2,
    .projects-section h2,
    .contact-section h2 {
        font-size: 28px;
    }
    
    .skill-section p {
        font-size: 16px;
    }
    
    .project-card {
        min-height: 350px;
        padding: 15px;
    }
    
    .project-card h3 {
        font-size: 16px;
    }
    
    .project-card p {
        font-size: 13px;
    }
    
    .media a {
        font-size: 36px;
        gap: 15px;
    }
}

/* Extra Small Mobile (max-width: 400px) */
@media screen and (max-width: 400px) {
    .logo {
        font-size: 14px;
    }
    
    h1 {
        font-size: 24px;
    }
    
    span {
        font-size: 20px;
    }
    
    .home-content .p1 {
        font-size: 16px;
    }
    
    .pic-box {
        max-width: 220px;
        height: 220px;
    }
    
    .robot {
        width: 500px;
        height: 500px;
        top: -150px;
        left: -140px;
    }
    
    .button-box {
        flex-direction: column;
        gap: 10px;
    }
    
    .button-box a {
        width: 100%;
        text-align: center;
    }
    
    .social-media {
        gap: 20px;
    }
    
    .social-media a {
        font-size: 24px;
    }
    
    .project-card img {
        height: 150px;
    }
    
    .media a {
        font-size: 32px;
    }
}

/* Landscape Mobile Optimization */
@media screen and (max-height: 500px) and (orientation: landscape) {
    .section {
        padding: 80px 5% 30px;
    }
    
    .pic-box {
        max-width: 200px;
        height: 200px;
    }
    
    .robot {
        width: 500px;
        height: 500px;
        top: -150px;
        left: -150px;
    }
    
    nav.active {
        height: calc(100vh - 60px);
    }
}

/* Touch Device Optimizations */
@media (hover: none) and (pointer: coarse) {
    .navbar li a:hover,
    .social-media a:hover,
    .button-box a:hover,
    .project-card:hover,
    .media a:hover {
        transform: none;
        color: inherit;
        box-shadow: none;
    }
}

/* Print Styles */
@media print {
    .header,
    .line,
    .menu-toggle,
    .theme-selector {
        display: none;
    }
    
    .section {
        padding: 20px;
        page-break-inside: avoid;
    }
}
