/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

/* Light Theme Variables */
:root {
    --primary-color: #4a6bff;
    --secondary-color: #6c757d;
    --background-color: #f8f9fa;
    --text-color: #212529;
    --card-bg: #ffffff;
    --shadow-color: rgba(0, 0, 0, 0.1);
    --border-color: #e9ecef;
}

/* Dark Theme Variables */
.dark-mode {
    --primary-color: #5a7bff;
    --secondary-color: #adb5bd;
    --background-color: #121212;
    --text-color: #f8f9fa;
    --card-bg: #1e1e1e;
    --shadow-color: rgba(0, 0, 0, 0.3);
    --border-color: #343a40;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
    transition: background-color 0.3s, color 0.3s, transform 0.3s;
}

html {
    scroll-behavior: smooth;
    font-size: 62.5%;
}

body {
    background: var(--background-color);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Welcome Screen */
.welcome-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--background-color);
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    z-index: 2000;
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.welcome-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.logo-circle {
    position: relative;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 3rem;
}

.logo-circle::after {
    content: '';
    position: absolute;
    width: 85%;
    height: 85%;
    background: var(--background-color);
    border-radius: 50%;
    z-index: 1;
}

.logo-circle span {
    position: absolute;
    width: 100%;
    height: 100%;
    background: linear-gradient(var(--primary-color), #6c5ce7);
    border-radius: 50%;
    animation: rotate 8s linear infinite;
}

.logo-circle span:nth-child(1) {
    filter: blur(15px);
}

.logo-image {
    position: relative;
    width: 85%;
    height: 85%;
    border-radius: 50%;
    z-index: 2;
    overflow: hidden;
}

.logo-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.welcome-text {
    font-size: 2.5rem;
    color: var(--text-color);
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 1s ease forwards 0.5s;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.welcome-screen.hide {
    opacity: 0;
    pointer-events: none;
    transform: translateY(-20px);
}

/* Header Styles */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 2rem 9%;
    background: var(--background-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    box-shadow: 0 2px 15px var(--shadow-color);
    opacity: 0;
    transform: translateY(-20px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.header.visible {
    opacity: 1;
    transform: translateY(0);
}

.header.sticky {
    background: var(--background-color);
    box-shadow: 0 2px 15px var(--shadow-color);
}

.logo {
    font-size: 2.5rem;
    color: var(--text-color);
    font-weight: 700;
    text-decoration: none;
}

.logo span {
    color: var(--primary-color);
}

.navbar {
    display: flex;
    align-items: center;
}

.navbar a {
    font-size: 1.7rem;
    color: var(--text-color);
    margin-left: 3.5rem;
    font-weight: 500;
    position: relative;
    transition: color 0.3s;
}

.navbar a::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.3s ease;
}

.navbar a:hover,
.navbar a.active {
    color: var(--primary-color);
}

.navbar a:hover::after,
.navbar a.active::after {
    width: 100%;
}

#menu-icon {
    font-size: 3.6rem;
    color: var(--text-color);
    cursor: pointer;
    display: none;
}

#theme-icon {
    font-size: 2.4rem;
    color: var(--text-color);
    cursor: pointer;
    margin-left: 2rem;
    transition: transform 0.3s;
}

#theme-icon:hover {
    color: var(--primary-color);
    transform: rotate(30deg);
}

/* Home Section */
.home {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 10rem 9% 2rem;
    position: relative;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 1s ease, transform 1s ease;
}

.home.visible {
    opacity: 1;
    transform: translateY(0);
}

.home-content {
    max-width: 60rem;
    z-index: 10;
}

.home-content h1 {
    font-size: 5.6rem;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 1rem;
}

.text-gradient {
    background: linear-gradient(45deg, var(--primary-color), #6c5ce7);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.typing-text {
    font-size: 3.2rem;
    color: var(--secondary-color);
    height: 3.5rem;
    margin-bottom: 2rem;
    display: inline-block;
}

.home-content p {
    font-size: 1.6rem;
    margin-bottom: 3rem;
}

.social-media {
    display: flex;
    gap: 2rem;
    margin-bottom: 3rem;
}

.social-media a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 4rem;
    height: 4rem;
    background: transparent;
    border: .2rem solid var(--primary-color);
    border-radius: 50%;
    font-size: 2rem;
    color: var(--primary-color);
    transition: all 0.5s ease;
}

.social-media a:hover {
    background: var(--primary-color);
    color: var(--card-bg);
    box-shadow: 0 0 1rem var(--primary-color);
    transform: translateY(-3px);
}

.btn-container {
    display: flex;
    gap: 2rem;
}

.btn {
    display: inline-block;
    padding: 1.2rem 2.8rem;
    background: var(--primary-color);
    border-radius: 4rem;
    box-shadow: 0 0 1rem var(--primary-color);
    font-size: 1.6rem;
    color: var(--card-bg);
    letter-spacing: .1rem;
    font-weight: 600;
    transition: .5s ease;
    text-decoration: none;
}

.btn:hover {
    box-shadow: none;
    transform: translateY(-3px);
}

.btn-secondary {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
    background: var(--primary-color);
    color: var(--card-bg);
}

.home-img {
    position: relative;
    width: 45vw;
    animation: floatImage 4s ease-in-out infinite;
    transition: all 1s ease;
}

@keyframes floatImage {
    0% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-2.4rem);
    }
    100% {
        transform: translateY(0);
    }
}

.glowing-circle {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.glowing-circle::after {
    content: '';
    position: absolute;
    width: 85%;
    height: 85%;
    background: var(--background-color);
    border-radius: 50%;
}

.glowing-circle span {
    position: absolute;
    width: 100%;
    height: 100%;
    background: linear-gradient(var(--primary-color), #6c5ce7);
    border-radius: 50%;
    animation: rotate 8s linear infinite;
}

.glowing-circle span:nth-child(1) {
    filter: blur(15px);
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.image {
    position: relative;
    width: 85%;
    height: 85%;
    border-radius: 50%;
    z-index: 1;
    overflow: hidden;
}

.image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* About Section */
.about {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6rem;
    background: var(--card-bg);
    padding: 10rem 9% 2rem;
}

.about-img {
    position: relative;
    width: 40vw;
}

.floating-img {
    width: 100%;
    border-radius: 1rem;
    box-shadow: 0 10px 30px var(--shadow-color);
    animation: float 4s ease-in-out infinite;
}

@keyframes float {
    0% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-2rem);
    }
    100% {
        transform: translateY(0);
    }
}

.about-content {
    max-width: 60rem;
}

.about-content h2 {
    font-size: 4.5rem;
    text-align: left;
    line-height: 1.2;
    margin-bottom: 2rem;
}

.about-content h3 {
    font-size: 2.6rem;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
}

.about-content p {
    font-size: 1.6rem;
    margin: 2rem 0 3rem;
}

.skills-container {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
}

.skills-box {
    flex: 1 1 30rem;
    background: var(--background-color);
    padding: 3rem 2rem 4rem;
    border-radius: 2rem;
    text-align: center;
    border: .2rem solid var(--background-color);
    transition: .5s ease;
}

.skills-box:hover {
    border-color: var(--primary-color);
    transform: scale(1.02);
}

.skills-box i {
    font-size: 7rem;
    color: var(--primary-color);
}

.skills-box h3 {
    font-size: 2.6rem;
    margin: 1rem 0;
}

.skills-box p {
    font-size: 1.6rem;
    margin: 1rem 0 3rem;
}

/* Projects Section */
.projects {
    background: var(--background-color);
    padding: 10rem 9% 2rem;
}

.projects h2 {
    font-size: 4.5rem;
    text-align: center;
    margin-bottom: 5rem;
}

.swiper {
    width: 100%;
    padding-top: 3rem;
    padding-bottom: 5rem;
}

.swiper-slide {
    width: 30rem;
}

.project-card {
    position: relative;
    border-radius: 2rem;
    box-shadow: 0 0 2rem var(--shadow-color);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.5s ease;
}

.project-card:hover {
    transform: scale(1.05);
}

.project-image {
    width: 100%;
    height: 25rem;
    overflow: hidden;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.project-card:hover .project-image img {
    transform: scale(1.1);
}

.project-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0, 0, 0, .1), var(--primary-color));
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    text-align: center;
    padding: 0 4rem;
    transform: translateY(100%);
    transition: .5s ease;
}

.project-card:hover .project-overlay {
    transform: translateY(0);
}

.project-overlay h3 {
    font-size: 2.5rem;
    color: #fff;
    margin-bottom: 1rem;
}

.project-overlay p {
    font-size: 1.6rem;
    color: #fff;
    margin-bottom: 2rem;
}

.project-content {
    padding: 2rem;
    background: var(--card-bg);
}

.project-tech {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.project-tech span {
    font-size: 1.2rem;
    color: var(--text-color);
    background: rgba(74, 107, 255, 0.1);
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
}

.project-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
}

.swiper-pagination-bullet {
    background: var(--text-color) !important;
    opacity: 0.5 !important;
}

.swiper-pagination-bullet-active {
    background: var(--primary-color) !important;
    opacity: 1 !important;
}

.swiper-button-next,
.swiper-button-prev {
    color: var(--primary-color) !important;
}

.swiper-button-next::after,
.swiper-button-prev::after {
    font-size: 3rem !important;
    font-weight: bold !important;
}

/* Contact Section */
.contact {
    background: var(--card-bg);
    padding: 10rem 9% 2rem;
}

.contact h2 {
    font-size: 4.5rem;
    text-align: center;
    margin-bottom: 5rem;
}

.contact form {
    max-width: 70rem;
    margin: 1rem auto;
    text-align: center;
    margin-bottom: 3rem;
}

.input-box {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}

.input-box input,
.contact form textarea {
    width: 100%;
    padding: 1.5rem;
    font-size: 1.6rem;
    color: var(--text-color);
    background: var(--background-color);
    border-radius: .8rem;
    margin: .7rem 0;
    border: 1px solid var(--border-color);
}

.input-box input {
    width: 49%;
}

.contact form textarea {
    resize: none;
    height: 25rem;
}

.contact form .btn {
    margin-top: 2rem;
    cursor: pointer;
}

/* Footer */
.footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    padding: 2rem 9%;
    background: var(--background-color);
}

.footer-text p {
    font-size: 1.6rem;
}

.footer-iconTop a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    padding: .8rem;
    background: var(--primary-color);
    border-radius: .8rem;
    transition: .5s ease;
}

.footer-iconTop a:hover {
    box-shadow: 0 0 1rem var(--primary-color);
    transform: translateY(-5px);
}

.footer-iconTop a i {
    font-size: 2.4rem;
    color: var(--card-bg);
}

/* Responsive Breakpoints */
@media (max-width: 1200px) {
    html {
        font-size: 55%;
    }
    
    .home {
        padding: 10rem 3% 2rem;
    }
    
    .about {
        padding: 10rem 3% 2rem;
    }
    
    .projects {
        padding: 10rem 3% 2rem;
    }
    
    .contact {
        padding: 10rem 3% 2rem;
    }
}

@media (max-width: 991px) {
    .header {
        padding: 2rem 3%;
    }
    
    section {
        padding: 10rem 3% 2rem;
    }
    
    .home-content {
        max-width: 50rem;
    }
    
    .home-img {
        width: 40vw;
    }
    
    .footer {
        padding: 2rem 3%;
    }
}

@media (max-width: 768px) {
    #menu-icon {
        display: block;
    }
    
    .navbar {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        padding: 1rem 3%;
        background: var(--background-color);
        border-top: .1rem solid var(--border-color);
        box-shadow: 0 .5rem 1rem var(--shadow-color);
        display: none;
    }
    
    .navbar.active {
        display: block;
    }
    
    .navbar a {
        display: block;
        font-size: 2rem;
        margin: 3rem 0;
    }
    
    .home {
        flex-direction: column;
        padding-top: 12rem;
    }
    
    .home-content h1 {
        font-size: 5rem;
    }
    
    .home-img {
        width: 70vw;
        margin-top: 4rem;
    }
    
    .about {
        flex-direction: column-reverse;
    }
    
    .about-img {
        width: 70vw;
        margin-top: 4rem;
    }
    
    .projects h2 {
        margin-bottom: 3rem;
    }
    
    .contact form .input-box input {
        width: 100%;
    }
    
    .logo-circle {
        width: 150px;
        height: 150px;
    }
}

@media (max-width: 617px) {
    .swiper-slide {
        width: 100%;
    }
    
    .project-buttons {
        flex-direction: column;
    }
    
    .welcome-text {
        font-size: 2rem;
    }
    
    .logo-circle {
        width: 120px;
        height: 120px;
    }
}

@media (max-width: 450px) {
    html {
        font-size: 50%;
    }
    
    .home-content h1 {
        font-size: 4.5rem;
    }
    
    .home-img {
        width: 80vw;
    }
    
    .about-img {
        width: 80vw;
    }
    
    .footer {
        flex-direction: column-reverse;
        gap: 1.5rem;
    }
    
    .footer-text {
        text-align: center;
    }
    
    .welcome-text {
        font-size: 1.6rem;
    }
    
    .logo-circle {
        width: 100px;
        height: 100px;
    }
}

@media (max-width: 365px) {
    .home-content h1 {
        font-size: 4rem;
    }
    
    .about-content h2 {
        font-size: 4rem;
    }
    
    .projects h2,
    .contact h2 {
        font-size: 4rem;
    }
    
    .btn-container {
        flex-direction: column;
    }
}
