:root {
    --primary: #0a192f;
    --primary-light: #172a45;
    --secondary: #64ffda;
    --accent: #e6f1ff;
    --text: #ccd6f6;
    --text-light: #8892b0;
    --transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    --shadow: 0 10px 30px -15px rgba(2, 12, 27, 0.7);
    --shadow-hover: 0 20px 30px -15px rgba(2, 12, 27, 0.9);
    --border-radius: 8px;
    --card-radius: 12px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text);
    background-color: var(--primary);
    line-height: 1.6;
    overflow-x: hidden;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    position: relative;
}

/* Floating code background */
.code-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.code-element {
    position: absolute;
    color: rgba(100, 255, 218, 0.05);
    font-family: 'Space Grotesk', monospace;
    font-size: 1.2rem;
    user-select: none;
    opacity: 0;
    animation: floatCode 15s linear infinite;
}

h1,
h2,
h3,
h4 {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--accent);
}

h1 {
    font-size: 3.5rem;
    line-height: 1.2;
    background: linear-gradient(90deg, var(--secondary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

h2 {
    font-size: 2.5rem;
    position: relative;
    padding-bottom: 1rem;
}

h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 4px;
    background: var(--secondary);
    border-radius: 2px;
}

p {
    margin-bottom: 1rem;
    color: var(--text-light);
}

a {
    text-decoration: none;
    color: var(--secondary);
    transition: var(--transition);
}

a:hover {
    color: var(--accent);
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.btn {
    display: inline-block;
    padding: 12px 28px;
    background: transparent;
    color: var(--secondary);
    border-radius: 5px;
    font-weight: 500;
    transition: var(--transition);
    border: 2px solid var(--secondary);
    cursor: pointer;
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: var(--secondary);
    transition: var(--transition);
    z-index: -1;
}

.btn:hover {
    color: var(--primary);
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
}

.btn:hover::before {
    width: 100%;
}

section {
    padding: 100px 0;
    position: relative;
}

/* Header & Navigation */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(10, 25, 47, 0.9);
    box-shadow: 0 2px 10px rgba(2, 12, 27, 0.7);
    backdrop-filter: blur(10px);
    transition: var(--transition);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--secondary);
    font-family: 'Space Grotesk', sans-serif;
}

.logo-symbol {
    float: left;
    width: 44px;
    height: 44px;
    line-height: 44px;
    background-color: var(--main-color);
    border-radius: 100px;
    text-align: center;
    color: #fff;
    font-size: 28px;
    font-weight: 800;
    margin-right: 8px;
    margin-top: 4px;
}

.logo-text {
    float: left;
    line-height: 50px;
    font-size: 20px;
    color: var(--text-color);
    font-weight: 600;
}

.logo-text span {
    font-weight: 400;
    color: var(--main-color);
}

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li {
    margin-left: 30px;
}

.nav-links a {
    color: var(--text-light);
    font-weight: 500;
    position: relative;
    padding: 5px 0;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--secondary);
    transition: var(--transition);
}

.nav-links a:hover {
    color: var(--accent);
}

.nav-links a:hover::after {
    width: 100%;
}

.hamburger {
    display: none;
    cursor: pointer;
    color: var(--text);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 120px 0 80px;
    position: relative;
    overflow: hidden;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 650px;
}

.hero h1 {
    margin-bottom: 1.5rem;
    opacity: 0;
    animation: fadeInUp 1s 0.3s forwards;
}

.hero h2 {
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 1.8rem;
    color: var(--text-light);
    opacity: 0;
    animation: fadeInUp 1s 0.5s forwards;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2.5rem;
    opacity: 0;
    animation: fadeInUp 1s 0.7s forwards;
}

.hero-btns {
    opacity: 0;
    animation: fadeInUp 1s 0.9s forwards;
    display: flex;
    gap: 20px;
}

.hero-img {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 40%;
    max-width: 500px;
    opacity: 0;
    animation: fadeIn 1s 1.2s forwards;
    z-index: 1;
}

.hero-img::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border: 2px solid var(--secondary);
    top: 20px;
    left: 20px;
    z-index: -1;
    border-radius: 5px;
    transition: var(--transition);
}

.hero-img:hover::before {
    top: 15px;
    left: 15px;
}

.hero-img-inner {
    background: var(--primary-light);
    border-radius: 5px;
    overflow: hidden;
    position: relative;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Section Styling */
.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    margin-bottom: 1.5rem;
}

.section-header h2::after {
    left: 50%;
    transform: translateX(-50%);
}

.section-header p {
    max-width: 700px;
    margin: 0 auto;
}

/* About Section */
.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.about-img {
    border-radius: var(--border-radius);
    overflow: hidden;
    position: relative;
    background: var(--primary-light);
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text);
    border: 1px solid rgba(100, 255, 218, 0.1);
    box-shadow: var(--shadow);
}

.about-text h3 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    color: var(--secondary);
}

.about-info {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-top: 30px;
}

.info-item {
    display: flex;
    align-items: center;
    background: var(--primary-light);
    padding: 15px;
    border-radius: var(--border-radius);
    border: 1px solid rgba(100, 255, 218, 0.1);
    transition: var(--transition);
}

.info-item:hover {
    transform: translateY(-5px);
    border-color: var(--secondary);
}

.info-item i {
    font-size: 1.5rem;
    color: var(--secondary);
    margin-right: 15px;
    min-width: 30px;
}

/* Skills Section */
.skills {
    background: rgba(10, 25, 47, 0.5);
    position: relative;
}

.skills-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.skill-category {
    background: var(--primary-light);
    padding: 30px;
    border-radius: var(--card-radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid rgba(100, 255, 218, 0.1);
    position: relative;
    overflow: hidden;
}

.skill-category::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 0;
    background: var(--secondary);
    transition: var(--transition);
}

.skill-category:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.skill-category:hover::before {
    height: 100%;
}

.skill-category h3 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: var(--secondary);
    position: relative;
    z-index: 2;
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tag {
    background: rgba(100, 255, 218, 0.1);
    color: var(--secondary);
    padding: 8px 15px;
    border-radius: 30px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: var(--transition);
    border: 1px solid rgba(100, 255, 218, 0.2);
}

.tag:hover {
    background: var(--secondary);
    color: var(--primary);
    transform: translateY(-2px);
}

/* Experience Section
.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 4px;
    background: var(--primary-light);
    left: 50%;
    transform: translateX(-50%);
}

.timeline-item {
    margin-bottom: 50px;
    position: relative;
    width: 50%;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s, transform 0.8s;
}

.timeline-item:nth-child(odd) {
    left: 0;
    padding-right: 50px;
    text-align: right;
}

.timeline-item:nth-child(even) {
    left: 50%;
    padding-left: 50px;
}

.timeline-content {
    background: var(--primary-light);
    padding: 30px;
    border-radius: var(--card-radius);
    box-shadow: var(--shadow);
    position: relative;
    border: 1px solid rgba(100, 255, 218, 0.1);
    transition: var(--transition);
}

.timeline-content:hover {
    border-color: var(--secondary);
    transform: translateY(-5px);
}

.timeline-content::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    background: white;
    top: 30px;
    transform: rotate(45deg);
}

.textAlign{
    text-align: start;
}

.timeline-item:nth-child(odd) .timeline-content::after {
    right: -10px;
    background: var(--primary-light);
    border-right: 1px solid rgba(100, 255, 218, 0.1);
    border-bottom: 1px solid rgba(100, 255, 218, 0.1);
}

.timeline-item:nth-child(even) .timeline-content::after {
    left: -10px;
    background: var(--primary-light);
    border-left: 1px solid rgba(100, 255, 218, 0.1);
    border-top: 1px solid rgba(100, 255, 218, 0.1);
}

.timeline-date {
    display: inline-block;
    background: var(--secondary);
    color: var(--primary);
    padding: 5px 15px;
    border-radius: 20px;
    font-weight: 500;
    margin-bottom: 15px;
    font-family: 'Space Grotesk', sans-serif;
}

.timeline-item:nth-child(odd) .timeline-content::before {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--secondary);
    border: 4px solid var(--primary);
    right: -62px;
    top: 30px;
    z-index: 1;
}

.timeline-item:nth-child(even) .timeline-content::before {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--secondary);
    border: 4px solid var(--primary);
    left: -62px;
    top: 30px;
    z-index: 1;
} */
/* New Experience */
.experience {
    background-color: #0a192f;
    padding: 60px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header h2 {
    font-size: 32px;
    margin-bottom: 10px;
}

.section-header p {
    font-size: 16px;
    color: #555;
}

.timeline {
    position: relative;
    padding-left: 40px;
    border-left: 3px solid #0077ff;
}

.timeline-item {
    position: relative;
    margin-bottom: 40px;
}

.timeline-dot {
    width: 16px;
    height: 16px;
    background-color: #172a45;
    border-radius: 50%;
    position: absolute;
    left: -9px;
    top: 10px;
}

.timeline-content {
    background: rgba(100, 255, 218, 0.1);
    /* background: var(--primary-light); */
    padding: 20px 25px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.06);
    transition: transform 0.3s ease;
}

.timeline-content:hover {
    transform: translateY(-5px);
}

.timeline-date {
    font-size: 14px;
    color: var(--secondary);
    margin-bottom: 10px;
    display: block;
}

.timeline-content h3 {
    font-size: 20px;
    color: var(--text);
    margin-bottom: 5px;
}

.timeline-content h4 {
    font-size: 16px;
    color: var(--secondary);
    margin-bottom: 10px;
}

.timeline-content ul {
    padding-left: 20px;
}

.timeline-content ul li {
    margin-bottom: 6px;
    font-size: 15px;
    color: var(--text);
}

/* End */

/* Projects Section */
.projects-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: center;
}

.project-card {
    width: 100%;
    max-width: 350px;
    background: var(--primary-light);
    border-radius: var(--card-radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
    opacity: 0;
    transform: translateY(30px);
    border: 1px solid rgba(100, 255, 218, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease;
}

.project-card:hover {
    transform: translateY(-5px);
}

.project-img {
    height: 200px;
    background: linear-gradient(135deg, #0a192f 0%, #172a45 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--secondary);
    position: relative;
    overflow: hidden;
}

.project-img::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(100, 255, 218, 0.1) 0%, transparent 100%);
    opacity: 0;
    transition: var(--transition);
}

.lazy-image {
    width: 100%;
    height: auto;
    opacity: 0;
    transition: opacity 0.8s ease;
}

.lazy-image.loaded {
    opacity: 1;
}

.project-content {
    padding: 20px;
}

.project-tags {
    margin-top: 15px;
}

.project-tags .tag {
    display: inline-block;
    background: rgba(100, 255, 218, 0.1);
    color: var(--secondary);
    font-size: 12px;
    padding: 4px 10px;
    border-radius: 30px;
    margin: 5px 5px 0 0;
    transition: var(--transition);
    border: 1px solid rgba(100, 255, 218, 0.2);
}

.project-tags .tag:hover {
    background: var(--secondary);
    color: var(--primary);
    transform: translateY(-2px);
}

/* End Projects */

/* Education Section */
.education {
    position: relative;
}

.edu-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
}

.edu-card {
    background: var(--primary-light);
    border-radius: var(--card-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    padding: 30px;
    border: 1px solid rgba(100, 255, 218, 0.1);
}

.edu-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
    border-color: var(--secondary);
}

.edu-card h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: var(--secondary);
}

.edu-period {
    background: rgba(100, 255, 218, 0.1);
    color: var(--secondary);
    display: inline-block;
    padding: 5px 15px;
    border-radius: 20px;
    font-weight: 500;
    margin-bottom: 15px;
    font-family: 'Space Grotesk', sans-serif;
    border: 1px solid rgba(100, 255, 218, 0.2);
}

/* Contact Section */
.contact {
    position: relative;
}

.contact-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 50px;
}

.contact-info {
    display: flex;
    flex-direction: column;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 30px;
    background: var(--primary-light);
    padding: 20px;
    border-radius: var(--border-radius);
    border: 1px solid rgba(100, 255, 218, 0.1);
    transition: var(--transition);
}

.contact-item:hover {
    transform: translateY(-5px);
    border-color: var(--secondary);
}

.contact-item i {
    font-size: 1.5rem;
    color: var(--secondary);
    margin-right: 20px;
    min-width: 30px;
}

.contact-text h3 {
    font-size: 1.3rem;
    margin-bottom: 5px;
}

.contact-form .form-group {
    margin-bottom: 20px;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid rgba(100, 255, 218, 0.1);
    border-radius: var(--border-radius);
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    transition: var(--transition);
    background: var(--primary-light);
    color: var(--text);
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--secondary);
    box-shadow: 0 0 0 3px rgba(100, 255, 218, 0.2);
}

.contact-form textarea {
    height: 150px;
    resize: vertical;
}

.reference {
    background: var(--primary-light);
    padding: 25px;
    border-radius: var(--card-radius);
    box-shadow: var(--shadow);
    margin-top: 40px;
    border: 1px solid rgba(100, 255, 218, 0.1);
    transition: var(--transition);
}

.reference:hover {
    transform: translateY(-5px);
    border-color: var(--secondary);
}

/* References Section */
.references-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
}

.ref-card {
    background: var(--primary-light);
    padding: 30px;
    border-radius: var(--card-radius);
    box-shadow: var(--shadow);
    border: 1px solid rgba(100, 255, 218, 0.1);
    transition: var(--transition);
}

.ref-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
    border-color: var(--secondary);
}

.ref-card h3 {
    color: var(--secondary);
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.ref-card p {
    margin-bottom: 10px;
}

/* Footer */
footer {
    background: rgba(10, 25, 47, 0.9);
    color: var(--text);
    padding: 60px 0 30px;
    border-top: 1px solid rgba(100, 255, 218, 0.1);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col h3 {
    color: var(--secondary);
    font-size: 1.5rem;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 15px;
}

.footer-col h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: var(--secondary);
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: var(--text-light);
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--secondary);
    padding-left: 5px;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(100, 255, 218, 0.1);
    color: var(--secondary);
    border-radius: 50%;
    transition: var(--transition);
    border: 1px solid rgba(100, 255, 218, 0.2);
}

.social-links a:hover {
    background: var(--secondary);
    color: var(--primary);
    transform: translateY(-3px);
}

.copyright {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(100, 255, 218, 0.1);
    color: var(--text-light);
    font-size: 0.9rem;
}

/* Back to top button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--secondary);
    color: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: translateY(20px);
    transition: var(--transition);
    z-index: 999;
    box-shadow: 0 5px 15px rgba(100, 255, 218, 0.3);
    cursor: pointer;
}

.back-to-top.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-20px);
    }

    100% {
        transform: translateY(0px);
    }
}

@keyframes floatCode {
    0% {
        transform: translateY(100vh) rotate(0deg);
        opacity: 0;
    }

    10% {
        opacity: 0.1;
    }

    50% {
        opacity: 0.2;
    }

    90% {
        opacity: 0.1;
    }

    100% {
        transform: translateY(-100px) rotate(360deg);
        opacity: 0;
    }
}

/* Responsive Design */
@media (max-width: 992px) {
    h1 {
        font-size: 2.8rem;
    }

    .hero-img {
        width: 35%;
    }

    .about-content {
        grid-template-columns: 1fr;
    }

    .contact-container {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 80px;
        right: -100%;
        flex-direction: column;
        background: var(--primary);
        width: 250px;
        height: calc(100vh - 80px);
        padding: 40px 0;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
        transition: var(--transition);
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links li {
        margin: 15px 30px;
    }

    .hamburger {
        display: block;
    }

    .hero {
        padding: 140px 0 60px;
    }

    .hero-content {
        text-align: center;
        margin: 0 auto;
    }

    .hero-img {
        display: none;
    }

    .timeline::before {
        left: 30px;
    }

    .timeline-item {
        width: 100%;
        padding-left: 80px;
        padding-right: 0;
        text-align: left;
    }

    .timeline-item:nth-child(odd),
    .timeline-item:nth-child(even) {
        left: 0;
    }

    .timeline-item:nth-child(odd) .timeline-content::after,
    .timeline-item:nth-child(odd) .timeline-content::before,
    .timeline-item:nth-child(even) .timeline-content::after,
    .timeline-item:nth-child(even) .timeline-content::before {
        left: 15px;
        right: auto;
    }

    .timeline-item:nth-child(odd) .timeline-content::after {
        left: -10px;
    }

    .timeline-item:nth-child(odd) .timeline-content::before {
        left: 18px;
    }
}

@media (max-width: 576px) {
    h1 {
        font-size: 2.2rem;
    }

    h2 {
        font-size: 2rem;
    }

    .section-header p {
        font-size: 1rem;
    }

    .about-info {
        grid-template-columns: 1fr;
    }

    .edu-container {
        grid-template-columns: 1fr;
    }

    .projects-grid {
        grid-template-columns: 1fr;
    }

    .hero-btns {
        flex-direction: column;
        gap: 15px;
    }
}