/* ===== VARIABLES ===== */
:root {
    --primary-color: #00a3ff;
    --secondary-color: #0077ff;
    --dark-color: #0a192f;
    --darker-color: #020c1b;
    --light-color: #e6f1ff;
    --gray-color: #8892b0;
    --transition: all 0.3s ease;
    --box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* ===== RESET ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    outline: none;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--darker-color);
    color: var(--light-color);
    line-height: 1.7;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: var(--light-color);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

section {
    padding: 100px 0;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

/* ===== PRELOADER ===== */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--darker-color);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
}

.loader {
    width: 50px;
    height: 50px;
    border: 5px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    border-top-color: var(--primary-color);
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ===== CURSOR ===== */
.cursor {
    position: fixed;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: var(--primary-color);
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    transition: transform 0.1s ease;
    opacity: 0.7;
}

.cursor-follower {
    position: fixed;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 2px solid var(--primary-color);
    pointer-events: none;
    z-index: 9998;
    transform: translate(-50%, -50%);
    transition: transform 0.3s ease, width 0.3s ease, height 0.3s ease;
    opacity: 0.5;
}

/* Hide custom cursor on touch devices */
@media (hover: none) {
    .cursor, .cursor-follower {
        display: none;
    }
}

/* ===== HEADER ===== */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 20px 0;
    z-index: 999;
    transition: var(--transition);
}

header.sticky {
    background-color: rgba(2, 12, 27, 0.9);
    backdrop-filter: blur(10px);
    padding: 15px 0;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo a {
    font-size: 28px;
    font-weight: 700;
    color: var(--primary-color);
    transition: var(--transition);
}

.logo a:hover {
    color: var(--secondary-color);
}

.nav-menu ul {
    display: flex;
}

.nav-menu ul li {
    margin-left: 30px;
}

.nav-menu ul li a {
    font-size: 16px;
    font-weight: 500;
    color: var(--light-color);
    transition: var(--transition);
    position: relative;
}

.nav-menu ul li a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: var(--transition);
}

.nav-menu ul li a:hover::after,
.nav-menu ul li a.active::after {
    width: 100%;
}

.nav-menu ul li a:hover,
.nav-menu ul li a.active {
    color: var(--primary-color);
}

.hamburger-menu {
    display: none;
    cursor: pointer;
    width: 30px;
    height: 20px;
    position: relative;
    z-index: 1000;
}

.bar {
    width: 30px;
    height: 3px;
    background-color: var(--light-color);
    margin: 6px 0;
    transition: var(--transition);
    position: relative;
}

.bar::before,
.bar::after {
    content: '';
    position: absolute;
    width: 30px;
    height: 3px;
    background-color: var(--light-color);
    transition: var(--transition);
}

.bar::before {
    transform: translateY(-10px);
}

.bar::after {
    transform: translateY(10px);
}

.hamburger-menu.active .bar {
    background-color: transparent;
}

.hamburger-menu.active .bar::before {
    transform: rotate(45deg);
}

.hamburger-menu.active .bar::after {
    transform: rotate(-45deg);
}

/* ===== HOME SECTION ===== */
.home {
    position: relative;
    padding-top: 150px;
}

.home-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
}

.home-text {
    flex: 1;
    padding-right: 50px;
    min-width: 300px;
}

.home-text h1 {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 1s forwards 0.5s;
}

.home-text h1 span {
    color: var(--primary-color);
}

.reveal-text {
    position: relative;
    overflow: hidden;
}

.reveal-text::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--primary-color);
    transform: translateX(-100%);
    animation: revealText 1.5s forwards;
}

@keyframes revealText {
    0% { transform: translateX(-100%); }
    50% { transform: translateX(0); }
    100% { transform: translateX(100%); }
}

.roles {
    height: 30px;
    overflow: hidden;
    margin-bottom: 20px;
}

.role-wrapper {
    animation: moveUp 10s cubic-bezier(0.23, 1, 0.32, 1) infinite;
}

.role {
    font-size: 20px;
    font-weight: 600;
    color: var(--primary-color);
    padding: 5px 0;
}

@keyframes moveUp {
    0%, 20% { transform: translateY(0); }
    25%, 45% { transform: translateY(-30px); }
    50%, 70% { transform: translateY(-60px); }
    75%, 95% { transform: translateY(-30px); }
    100% { transform: translateY(0); }
}

.bio {
    margin-bottom: 20px;
    color: var(--gray-color);
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 1s forwards 0.8s;
}

/* Social Icons in Home Section */
.social-icons-home {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 1s forwards 0.9s;
}

.social-icon-home {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.05);
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--light-color);
    font-size: 18px;
    transition: var(--transition);
}

.social-icon-home:hover {
    background-color: var(--primary-color);
    color: var(--darker-color);
    transform: translateY(-5px);
}

.buttons {
    display: flex;
    gap: 20px;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 1s forwards 1s;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 500;
    transition: var(--transition);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    z-index: 1;
    text-align: center;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.1);
    transition: var(--transition);
    z-index: -1;
}

.btn:hover::before {
    width: 100%;
}

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

.primary-btn:hover {
    background-color: transparent;
    color: var(--primary-color);
}

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

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

.home-image {
    flex: 1;
    display: flex;
    justify-content: center;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 1s forwards 1.2s;
    min-width: 300px;
}

.img-box {
    position: relative;
    width: 300px;
    height: 350px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 0 30px rgba(0, 163, 255, 0.3);
}

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

.circle-spin {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    border-radius: 20px;
    border: 2px solid var(--primary-color);
    border-top-color: transparent;
    border-bottom-color: transparent;
    animation: spin 8s linear infinite;
}

.scroll-down {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
}

.scroll-down a {
    font-size: 24px;
    color: var(--primary-color);
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-20px); }
    60% { transform: translateY(-10px); }
}

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

/* ===== SECTION TITLE ===== */
.section-title {
    text-align: center;
    margin-bottom: 60px;
    position: relative;
}

.section-title h2 {
    font-size: 36px;
    font-weight: 700;
    position: relative;
    display: inline-block;
    margin-bottom: 10px;
    padding-bottom: 10px;
}

.section-title h2::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: var(--primary-color);
}

.section-title h2 span {
    color: var(--primary-color);
}

.title-bg {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 100px;
    font-weight: 800;
    color: rgba(255, 255, 255, 0.03);
    text-transform: uppercase;
    z-index: -1;
}

/* ===== ABOUT SECTION ===== */
.about-content {
    display: flex;
    align-items: center;
    gap: 50px;
    flex-wrap: wrap;
}

.about-image {
    flex: 1;
    min-width: 300px;
    display: flex;
    justify-content: center;
}

.about-image .img-box {
    position: relative;
    width: 350px;
    height: 400px;
    max-width: 100%;
}

.pattern {
    position: absolute;
    top: -20px;
    left: -20px;
    width: 100%;
    height: 100%;
    border: 3px solid var(--primary-color);
    border-radius: 20px;
    z-index: -1;
}

.about-text {
    flex: 1;
    min-width: 300px;
}

.about-text h3 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--light-color);
}

.about-text p {
    margin-bottom: 20px;
    color: var(--gray-color);
}

.personal-info {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-top: 30px;
}

.info-item {
    display: flex;
    align-items: center;
}

.info-item span {
    font-weight: 600;
    color: var(--primary-color);
    margin-right: 10px;
}

/* ===== EDUCATION SECTION ===== */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 100%;
    background-color: var(--primary-color);
}

.timeline-item {
    position: relative;
    margin-bottom: 50px;
}

.timeline-icon {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--primary-color);
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--darker-color);
    font-size: 20px;
    z-index: 1;
}

.timeline-content {
    position: relative;
    width: calc(50% - 50px);
    padding: 30px;
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    box-shadow: var(--box-shadow);
}

.timeline-item:nth-child(odd) .timeline-content {
    left: 0;
}

.timeline-item:nth-child(even) .timeline-content {
    left: calc(50% + 50px);
}

.timeline-content::before {
    content: '';
    position: absolute;
    top: 20px;
    width: 20px;
    height: 20px;
    background-color: rgba(255, 255, 255, 0.05);
    transform: rotate(45deg);
}

.timeline-item:nth-child(odd) .timeline-content::before {
    right: -10px;
}

.timeline-item:nth-child(even) .timeline-content::before {
    left: -10px;
}

.date {
    display: inline-block;
    padding: 5px 15px;
    background-color: var(--primary-color);
    color: var(--darker-color);
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 15px;
}

.timeline-content h3 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 5px;
    color: var(--light-color);
}

.timeline-content h4 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.timeline-content p {
    color: var(--gray-color);
}

/* ===== CERTIFICATES SECTION ===== */
.certificates-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
}

.certificate-card {
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    overflow: hidden;
    transition: var(--transition);
    box-shadow: var(--box-shadow);
}

.certificate-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.certificate-img {
    position: relative;
    overflow: hidden;
    height: 200px;
}

.certificate-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

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

.certificate-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 163, 255, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: var(--transition);
}

.certificate-card:hover .certificate-overlay {
    opacity: 1;
}

.view-btn {
    padding: 10px 20px;
    background-color: var(--darker-color);
    color: var(--light-color);
    border-radius: 50px;
    font-weight: 500;
    transition: var(--transition);
}

.view-btn:hover {
    background-color: var(--light-color);
    color: var(--darker-color);
}

.certificate-info {
    padding: 20px;
}

.certificate-info h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 5px;
    color: var(--light-color);
}

.certificate-info p {
    font-size: 14px;
    color: var(--gray-color);
    margin-bottom: 10px;
}

.certificate-date {
    font-size: 12px;
    color: var(--primary-color);
    font-weight: 500;
}

/* ===== SKILLS SECTION ===== */
.skills-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 50px;
}

.skill-category h3 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 30px;
    color: var(--light-color);
    position: relative;
    padding-left: 20px;
}

.skill-category h3::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    width: 10px;
    height: 10px;
    background-color: var(--primary-color);
    border-radius: 50%;
}

.skill-item {
    margin-bottom: 30px;
}

.skill-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

.skill-info h4 {
    font-size: 16px;
    font-weight: 600;
    color: var(--light-color);
}

.skill-info span {
    font-size: 16px;
    font-weight: 600;
    color: var(--primary-color);
}

.progress-bar {
    width: 100%;
    height: 8px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    overflow: hidden;
}

.progress {
    height: 100%;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    border-radius: 10px;
    width: 0;
    transition: width 1.5s ease-in-out;
}

/* ===== CONTACT SECTION ===== */
.contact-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 50px;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

.contact-item .icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: rgba(0, 163, 255, 0.1);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 20px;
    color: var(--primary-color);
}

.contact-item .text h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 5px;
    color: var(--light-color);
}

.contact-item .text p {
    color: var(--gray-color);
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-link {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.05);
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--light-color);
    font-size: 18px;
    transition: var(--transition);
}

.social-link:hover {
    background-color: var(--primary-color);
    color: var(--darker-color);
    transform: translateY(-5px);
}

.contact-form {
    background-color: rgba(255, 255, 255, 0.05);
    padding: 30px;
    border-radius: 10px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px;
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 5px;
    color: var(--light-color);
    font-family: 'Poppins', sans-serif;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--primary-color);
}

.form-group textarea {
    height: 150px;
    resize: none;
}

/* ===== FOOTER ===== */
footer {
    background-color: rgba(255, 255, 255, 0.02);
    padding: 30px 0;
    text-align: center;
}

.footer-content p {
    color: var(--gray-color);
}

/* ===== BACK TO TOP ===== */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--primary-color);
    color: var(--darker-color);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 20px;
    z-index: 99;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.back-to-top.active {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background-color: var(--secondary-color);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1200px) {
    html {
        font-size: 15px;
    }
    
    .home-text h1 {
        font-size: 42px;
    }
    
    .title-bg {
        font-size: 80px;
    }
}

@media (max-width: 1024px) {
    html {
        font-size: 14px;
    }
    
    section {
        padding: 80px 0;
    }
    
    .home-content {
        flex-direction: column;
        text-align: center;
    }
    
    .home-text {
        padding-right: 0;
        margin-bottom: 50px;
        order: 2;
    }
    
    .home-image {
        order: 1;
        margin-bottom: 30px;
    }
    
    .buttons, .social-icons-home {
        justify-content: center;
    }
    
    .about-content {
        flex-direction: column;
        text-align: center;
    }
    
    .about-image {
        margin-bottom: 50px;
    }
    
    .personal-info {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    html {
        font-size: 13px;
    }
    
    section {
        padding: 70px 0;
        min-height: auto;
    }
    
    .home-text h1 {
        font-size: 36px;
    }
    
    .section-title h2 {
        font-size: 30px;
    }
    
    .title-bg {
        font-size: 60px;
    }
    
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        height: 100vh;
        background-color: var(--darker-color);
        display: flex;
        justify-content: center;
        align-items: center;
        transition: var(--transition);
        z-index: 998;
    }
    
    .nav-menu.active {
        right: 0;
    }
    
    .nav-menu ul {
        flex-direction: column;
        text-align: center;
    }
    
    .nav-menu ul li {
        margin: 15px 0;
    }
    
    .hamburger-menu {
        display: block;
        z-index: 999;
    }
    
    .timeline::before {
        left: 30px;
    }
    
    .timeline-icon {
        left: 30px;
    }
    
    .timeline-content {
        width: calc(100% - 80px);
        left: 80px !important;
    }
    
    .timeline-item:nth-child(odd) .timeline-content::before,
    .timeline-item:nth-child(even) .timeline-content::before {
        left: -10px;
    }
    
    .personal-info {
        grid-template-columns: 1fr;
    }
    
    .certificates-container {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
}

@media (max-width: 576px) {
    html {
        font-size: 12px;
    }
    
    section {
        padding: 60px 0;
    }
    
    .home-text h1 {
        font-size: 32px;
    }
    
    .section-title h2 {
        font-size: 26px;
    }
    
    .title-bg {
        font-size: 50px;
    }
    
    .about-text h3 {
        font-size: 22px;
    }
    
    .timeline-content {
        padding: 20px;
    }
    
    .timeline-content h3 {
        font-size: 18px;
    }
    
    .timeline-content h4 {
        font-size: 16px;
    }
    
    .buttons {
        flex-direction: column;
        gap: 15px;
    }
    
    .btn {
        width: 100%;
    }
    
    .contact-item {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .contact-item .icon {
        margin-bottom: 10px;
    }
    
    .social-links {
        justify-content: center;
    }
    
    .certificates-container {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 400px) {
    .home-text h1 {
        font-size: 28px;
    }
    
    .role {
        font-size: 16px;
    }
    
    .img-box {
        width: 250px;
        height: 250px;
    }
    
    .about-image .img-box {
        width: 280px;
        height: 320px;
    }
}

