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

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
    scroll-behavior: smooth;
}

body {
    background-color: #020617;
    color: #f8fafc;
    overflow-x: hidden;
}

#bg-video {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    object-fit: cover;
    z-index: -1;
    filter: brightness(30%) saturate(120%); 
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}
::-webkit-scrollbar-track {
    background: #020617;
}
::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #38bdf8, #818cf8);
    border-radius: 5px;
}

/* Header & Nav */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 60px;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(15, 23, 42, 0.7);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
}

#port {
    font-size: 32px;
    font-weight: 700;
    background: linear-gradient(90deg, #38bdf8, #dd2476);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    cursor: pointer;
    letter-spacing: 1px;
}

nav {
    display: flex;
    align-items: center;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 30px;
    align-items: center;
}

nav ul li a {
    color: #cbd5e1;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    transition: color 0.3s ease;
    position: relative;
    padding-bottom: 5px;
}

nav ul li a::after {
    content: '';
    position: absolute;
    width: 0%;
    height: 2px;
    bottom: 0;
    left: 0;
    background: linear-gradient(90deg, #38bdf8, #dd2476);
    transition: width 0.3s ease;
}

nav ul li a:hover {
    color: #fff;
}

nav ul li a:hover::after {
    width: 100%;
}

.download-btn {
    background: linear-gradient(90deg, #38bdf8, #818cf8);
    color: #fff !important;
    padding: 10px 24px;
    border-radius: 30px;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(56, 189, 248, 0.4);
    transition: all 0.3s ease;
}

.download-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(56, 189, 248, 0.6);
    background: linear-gradient(90deg, #818cf8, #38bdf8);
}

.download-btn::after {
    display: none !important;
}

/* Sections General */
section {
    min-height: 100vh;
    padding: 120px 10%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    animation: fadeInUp 1s ease forwards;
}

section:nth-child(even) {
    background: linear-gradient(180deg, rgba(15,23,42,0) 0%, rgba(15,23,42,0.6) 50%, rgba(15,23,42,0) 100%);
}

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

h2 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 30px;
    background: linear-gradient(90deg, #f8fafc, #94a3b8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Home Section */
#home {
    max-width: 900px;
}

#home h2 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.space {
    margin: 20px 0;
    min-height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.typing-text {
    font-size: 4.5rem;
    font-weight: 700;
    line-height: 1.2;
    color: #fff;
}

.typing-text .cursor {
    display: inline-block;
    width: 4px;
    height: 4.5rem;
    background-color: #38bdf8;
    margin-left: 8px;
    animation: blink 0.8s infinite;
    vertical-align: bottom;
}

.highlight {
    background: linear-gradient(90deg, #38bdf8, #dd2476);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

#home p {
    font-size: 1.25rem;
    color: #cbd5e1;
    margin-top: 20px;
    max-width: 650px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

/* Skills Section */
#skills ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    max-width: 900px;
    margin-top: 30px;
}

#skills ul a {
    text-decoration: none;
}

#skills ul li {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #f8fafc;
    padding: 12px 28px;
    border-radius: 30px;
    font-size: 1.1rem;
    font-weight: 500;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    cursor: pointer;
}

#skills ul li:hover {
    background: rgba(56, 189, 248, 0.15);
    border-color: rgba(56, 189, 248, 0.5);
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 10px 25px rgba(56, 189, 248, 0.2);
    color: #38bdf8;
}

/* About Section */
#about p {
    font-size: 1.3rem;
    color: #cbd5e1;
    max-width: 750px;
    line-height: 1.8;
}

/* Projects Section */
.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px;
    width: 100%;
    max-width: 1200px;
    margin-top: 40px;
}

.project {
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    overflow: hidden;
    backdrop-filter: blur(12px);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    padding: 20px;
    display: flex;
    flex-direction: column;
}

.project:hover {
    transform: translateY(-15px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6), 0 0 30px rgba(56, 189, 248, 0.2);
    border-color: rgba(56, 189, 248, 0.4);
}

.project img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 20px;
    transition: transform 0.4s ease;
}

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

.project p {
    color: #e2e8f0;
    font-size: 1.15rem;
    font-weight: 500;
    margin-top: auto;
}

/* Footer / Contact Section */
footer {
    padding-bottom: 50px;
}

#contact {
    min-height: auto;
    padding-top: 80px;
}

.formcontainer {
    width: 100%;
    max-width: 700px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 50px;
    border-radius: 24px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(20px);
    margin: 40px auto;
}

.input-group {
    position: relative;
    margin-bottom: 40px;
    text-align: left;
}

.input-group input {
    width: 100%;
    padding: 12px 0;
    border: none;
    outline: none;
    border-bottom: 2px solid rgba(255, 255, 255, 0.2);
    background: transparent;
    color: white;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.input-group label {
    position: absolute;
    left: 0;
    top: 12px;
    color: #94a3b8;
    transition: all 0.3s ease;
    pointer-events: none;
    font-size: 1.1rem;
}

.input-group input:focus,
.input-group input:valid {
    border-bottom-color: #38bdf8;
}

.input-group input:focus ~ label,
.input-group input:valid ~ label {
    top: -25px;
    font-size: 0.9rem;
    color: #38bdf8;
    font-weight: 500;
}

button[type="submit"] {
    width: 100%;
    padding: 16px;
    background: linear-gradient(90deg, #38bdf8, #818cf8);
    border: none;
    border-radius: 30px;
    font-size: 1.2rem;
    font-weight: 600;
    color: #fff;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(56, 189, 248, 0.3);
    margin-top: 10px;
}

button[type="submit"]:hover {
    background: linear-gradient(90deg, #818cf8, #38bdf8);
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(56, 189, 248, 0.5);
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: 25px;
    margin: 40px 0 20px 0;
}

.social-icons img {
    width: 45px;
    height: 45px;
    transition: all 0.3s ease;
    filter: brightness(0.9);
}

.social-icons img:hover {
    transform: translateY(-8px) scale(1.15);
    filter: brightness(1.2);
    drop-shadow: 0 5px 15px rgba(255,255,255,0.4);
}

footer > p {
    color: #94a3b8;
    margin-top: 20px;
    font-size: 1.05rem;
}

/* Hamburger Menu */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 6px;
    z-index: 1001;
}

.hamburger span {
    width: 30px;
    height: 3px;
    background-color: #f8fafc;
    border-radius: 3px;
    transition: all 0.3s ease;
}

/* Media Queries */
@media screen and (max-width: 900px) {
    header {
        padding: 20px 30px;
    }
    
    .hamburger {
        display: flex;
    }
    
    nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 75%;
        height: 100vh;
        background: rgba(15, 23, 42, 0.98);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: center;
        transition: right 0.4s cubic-bezier(0.77, 0, 0.175, 1);
        box-shadow: -10px 0 30px rgba(0,0,0,0.5);
    }
    
    nav.active {
        right: 0;
    }
    
    nav ul {
        flex-direction: column;
        gap: 35px;
    }
    
    nav ul li a {
        font-size: 1.5rem;
    }
    
    .typing-text {
        font-size: 2.8rem;
    }
    
    .typing-text .cursor {
        height: 2.8rem;
    }
    
    h2 {
        font-size: 2.5rem;
    }
    
    section {
        padding: 120px 20px 60px 20px;
    }

    #port {
        font-size: 28px;
    }
    
    .formcontainer {
        padding: 40px 25px;
    }
}




