/* Global Variables */
:root {
    --bg-color: #0b0c10;
    --card-bg: rgba(31, 40, 51, 0.6);
    --text-primary: #c5c6c7;
    --text-white: #ffffff;
    --accent-cyan: #45a29e;
    --accent-glow: #66fcf1;
    --border-color: rgba(102, 252, 241, 0.2);
    --gradient-1: #66fcf1;
    --gradient-2: #45a29e;
    --font-heading: 'Poppins', sans-serif;
    --font-body: 'Inter', sans-serif;
}

/* Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

/* Cursor Glow Effect Background */
.cursor-glow {
    position: fixed;
    top: 0;
    left: 0;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(69, 162, 158, 0.15) 0%, rgba(11, 12, 16, 0) 70%);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: -1;
    transition: transform 0.1s ease;
}

/* Typography */
h1,
h2,
h3,
h4 {
    font-family: var(--font-heading);
    color: var(--text-white);
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.3s;
}

ul {
    list-style: none;
}

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

.section {
    padding: 100px 0;
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
    display: block;
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: var(--accent-cyan);
    border-radius: 2px;
}

.gradient-text {
    background: linear-gradient(90deg, var(--gradient-1), var(--gradient-2));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 30px;
    font-weight: 600;
    font-family: var(--font-heading);
    margin-right: 15px;
    transition: all 0.3s ease;
}

.primary-btn {
    background: transparent;
    border: 2px solid var(--accent-cyan);
    color: var(--accent-glow);
    box-shadow: 0 0 10px rgba(69, 162, 158, 0.2);
}

.primary-btn:hover {
    background: var(--accent-cyan);
    color: var(--bg-color);
    box-shadow: 0 0 20px rgba(102, 252, 241, 0.6);
    transform: translateY(-2px);
}

.secondary-btn {
    border: 2px solid rgba(255, 255, 255, 0.2);
    color: var(--text-white);
}

.secondary-btn:hover {
    border-color: var(--accent-cyan);
    color: var(--accent-glow);
    transform: translateY(-2px);
}

/* Glassmorphism Card Style */
.glass-card {
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    border-radius: 15px;
    padding: 25px;
    transition: all 0.3s ease;
}

.glass-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-glow);
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
}

/* Navbar */
header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(11, 12, 16, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    font-family: var(--font-heading);
    color: var(--text-white);
}

.logo .highlight {
    color: var(--accent-glow);
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-primary);
}

.nav-links a:hover {
    color: var(--accent-glow);
}

.hamburger {
    display: none;
    color: var(--text-white);
    font-size: 1.5rem;
    cursor: pointer;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 70px;
    /* Offset for fixed header */
}

.hero-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.hero-content {
    flex: 1;
    max-width: 600px;
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 10px;
    line-height: 1.2;
}

.hero-content h2 {
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 20px;
}

.hero-content p {
    margin-bottom: 30px;
    font-size: 1.1rem;
    max-width: 500px;
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: flex-end;
}

.image-wrapper {
    position: relative;
    width: 350px;
    height: 350px;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid var(--accent-cyan);
    box-shadow: 0 0 30px rgba(69, 162, 158, 0.3);
    animation: pulse-glow 3s infinite;
}

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

@keyframes pulse-glow {
    0% {
        box-shadow: 0 0 30px rgba(69, 162, 158, 0.3);
    }

    50% {
        box-shadow: 0 0 50px rgba(102, 252, 241, 0.5);
    }

    100% {
        box-shadow: 0 0 30px rgba(69, 162, 158, 0.3);
    }
}

/* About Section */
.about-content {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 30px;
}

.bio-card p {
    margin-bottom: 15px;
}

.education-card h3 {
    margin-bottom: 20px;
    color: var(--accent-glow);
    display: flex;
    align-items: center;
    gap: 10px;
}

.edu-item h4 {
    font-size: 1.1rem;
    margin-bottom: 5px;
    color: var(--text-white);
}

.edu-item .institution {
    color: var(--text-primary);
    font-size: 0.9rem;
    margin-bottom: 5px;
}

.edu-item .year {
    color: var(--accent-cyan);
    font-size: 0.85rem;
    font-weight: 600;
}

/* Experience Section */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline::after {
    content: '';
    position: absolute;
    width: 4px;
    background: var(--card-bg);
    top: 0;
    bottom: 0;
    left: 20px;
    /* Aligned left for easier mobile adapt, could center */
    border-radius: 2px;
}

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

.timeline-dot {
    position: absolute;
    width: 20px;
    height: 20px;
    background: var(--accent-cyan);
    border-radius: 50%;
    left: 12px;
    top: 5px;
    z-index: 10;
    box-shadow: 0 0 10px var(--accent-cyan);
}

.timeline-content .date {
    display: block;
    font-size: 0.85rem;
    color: var(--accent-glow);
    margin-bottom: 5px;
    font-weight: 600;
    text-transform: uppercase;
}

.timeline-content h3 {
    font-size: 1.3rem;
    margin-bottom: 5px;
}

.timeline-content h4 {
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 10px;
}

/* Skills Section */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
}

.skill-card {
    text-align: center;
    padding: 30px 20px;
}

.skill-card i {
    font-size: 3rem;
    color: var(--accent-cyan);
    margin-bottom: 15px;
    transition: 0.3s;
}

.skill-card:hover i {
    color: var(--accent-glow);
    transform: scale(1.1);
}

.skill-card h3 {
    font-size: 1.1rem;
    font-weight: 500;
}

.skill-card .btn {
    padding: 10px 20px;
    margin-right: 0;
    font-size: 0.9rem;
    width: fit-content;
}

/* Projects Section */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.project-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
}

.project-info h3 {
    font-size: 1.4rem;
    margin-bottom: 10px;
}

.project-info p {
    font-size: 0.95rem;
    margin-bottom: 20px;
    color: var(--text-primary);
}

.tech-stack {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.tech-stack span {
    font-size: 0.8rem;
    background: rgba(102, 252, 241, 0.1);
    color: var(--accent-glow);
    padding: 5px 12px;
    border-radius: 15px;
}

.link-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-right: 15px;
    font-size: 0.9rem;
    color: var(--text-white);
}

.link-btn:hover {
    color: var(--accent-cyan);
}

/* Services */
.service-note {
    max-width: 600px;
    margin: 0 auto;
    border-color: var(--accent-cyan);
    background: rgba(69, 162, 158, 0.1);
}

.service-note p {
    font-style: italic;
    font-size: 1.1rem;
}

/* Contact Section */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 40px;
    overflow: hidden;
}

.contact-info h3 {
    font-size: 1.8rem;
    margin-bottom: 15px;
}

.contact-info p {
    margin-bottom: 30px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    font-size: 1rem;
}

.contact-item i {
    width: 40px;
    height: 40px;
    background: rgba(102, 252, 241, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-glow);
    transition: 0.3s;
}

.contact-item:hover i {
    background: var(--accent-cyan);
    color: var(--bg-color);
}

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

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    color: var(--text-white);
    font-family: var(--font-body);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-cyan);
}

/* Footer */
footer {
    padding: 30px 0;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    margin-top: 50px;
}

.social-links-footer {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 20px;
}

.social-links-footer a {
    font-size: 1.5rem;
    color: var(--text-primary);
    transition: 0.3s;
}

.social-links-footer a:hover {
    color: var(--accent-glow);
    transform: translateY(-3px);
}

footer p {
    font-size: 0.9rem;
    color: var(--text-primary);
}

/* Animations */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.appear {
    opacity: 1;
    transform: translateY(0);
}

.delay-1 {
    transition-delay: 0.2s;
}

.delay-2 {
    transition-delay: 0.4s;
}

.delay-3 {
    transition-delay: 0.6s;
}

/* Responsive */
@media (max-width: 1024px) {
    .container {
        padding: 0 15px;
    }

    .section {
        padding: 70px 0;
    }

    .section-title {
        font-size: 2.2rem;
        margin-bottom: 2.5rem;
    }

    .hero-content h1 {
        font-size: 2.8rem;
    }

    .hero-content h2 {
        font-size: 1.2rem;
    }

    .btn {
        padding: 10px 20px;
        margin-right: 10px;
        margin-bottom: 10px;
        font-size: 0.9rem;
    }
}

@media (max-width: 900px) {
    .container {
        max-width: 95%;
    }

    .section {
        padding: 60px 0;
    }

    .hero {
        min-height: 85vh;
    }

    .hero-container {
        flex-direction: column-reverse;
        text-align: center;
        gap: 40px;
    }

    .hero-content {
        max-width: 100%;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .hero-buttons {
        justify-content: center;
        display: flex;
        flex-wrap: wrap;
    }

    .hero-image {
        justify-content: center;
    }

    .image-wrapper {
        width: 300px;
        height: 300px;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .contact-wrapper {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .skills-grid {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
        gap: 15px;
    }

    .skill-card {
        padding: 20px 15px;
    }

    .projects-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .navbar .nav-links {
        display: none;
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        background: rgba(11, 12, 16, 0.95);
        backdrop-filter: blur(10px);
        flex-direction: column;
        padding: 20px 0;
        text-align: center;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
        gap: 0;
        z-index: 999;
    }

    .navbar .nav-links li {
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
        padding: 15px 0;
    }

    .navbar .nav-links li:last-child {
        border-bottom: none;
    }

    .navbar .nav-links.active {
        display: flex;
    }

    .hamburger {
        display: block;
        cursor: pointer;
        transition: 0.3s;
    }

    .hamburger.active {
        color: var(--accent-glow);
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }

    .section {
        padding: 50px 0;
    }

    .section-title {
        font-size: 2rem;
        margin-bottom: 2rem;
    }

    .hero-content h1 {
        font-size: 2.2rem;
    }

    .hero-content h2 {
        font-size: 1.1rem;
    }

    .hero-content p {
        font-size: 1rem;
    }

    .image-wrapper {
        width: 280px;
        height: 280px;
    }

    .glass-card {
        padding: 20px;
    }

    .timeline::after {
        left: 10px;
    }

    .timeline-item {
        padding-left: 45px;
    }

    .timeline-dot {
        left: 4px;
    }
}

@media (max-width: 600px) {
    .container {
        padding: 0 12px;
    }

    .section {
        padding: 40px 0;
    }

    .section-title {
        font-size: 1.8rem;
        margin-bottom: 1.5rem;
    }

    .section-title::after {
        width: 50px;
    }

    .hero {
        min-height: 90vh;
        padding-top: 70px;
    }

    .hero-container {
        gap: 30px;
    }

    .hero-content h1 {
        font-size: 1.8rem;
        line-height: 1.3;
    }

    .hero-content h2 {
        font-size: 1rem;
    }

    .hero-content p {
        font-size: 0.95rem;
        margin-bottom: 20px;
    }

    .hero-buttons {
        gap: 8px;
    }

    .btn {
        padding: 10px 16px;
        font-size: 0.85rem;
        margin-right: 8px;
        margin-bottom: 8px;
    }

    .image-wrapper {
        width: 240px;
        height: 240px;
    }

    .logo {
        font-size: 1.3rem;
    }

    .glass-card {
        padding: 15px;
    }

    .glass-card:hover {
        transform: translateY(-3px);
    }

    .skill-card {
        padding: 18px 12px;
    }

    .skill-card i {
        font-size: 2.5rem;
        margin-bottom: 10px;
    }

    .skill-card h3 {
        font-size: 1rem;
    }

    .skill-card .btn {
        padding: 8px 16px;
        font-size: 0.8rem;
    }

    .bio-card p {
        font-size: 0.95rem;
    }

    .education-card h3 {
        font-size: 1.1rem;
        margin-bottom: 15px;
    }

    .edu-item h4 {
        font-size: 1rem;
    }

    .edu-item .institution {
        font-size: 0.85rem;
    }

    .timeline-content h3 {
        font-size: 1.1rem;
    }

    .timeline-content h4 {
        font-size: 0.9rem;
    }

    .project-info h3 {
        font-size: 1.2rem;
    }

    .project-info p {
        font-size: 0.9rem;
    }

    .tech-stack {
        gap: 8px;
    }

    .tech-stack span {
        font-size: 0.75rem;
        padding: 4px 10px;
    }

    .link-btn {
        font-size: 0.85rem;
        margin-right: 10px;
        margin-bottom: 8px;
    }

    .contact-info h3 {
        font-size: 1.5rem;
    }

    .contact-item {
        font-size: 0.95rem;
    }

    .contact-item i {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }

    .form-group input,
    .form-group textarea {
        padding: 12px;
        font-size: 1rem;
    }

    .skills-grid {
        grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
        gap: 12px;
    }
}

@media (max-width: 480px) {
    .navbar {
        height: 60px;
        padding: 0 12px;
    }

    .section {
        padding: 35px 0;
    }

    .container {
        padding: 0 10px;
    }

    .section-title {
        font-size: 1.6rem;
        margin-bottom: 1.3rem;
    }

    .hero-content h1 {
        font-size: 1.6rem;
    }

    .hero-content h2 {
        font-size: 0.95rem;
    }

    .hero-content p {
        font-size: 0.9rem;
    }

    .image-wrapper {
        width: 200px;
        height: 200px;
        border: 3px solid var(--accent-cyan);
    }

    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }

    .btn {
        width: 100%;
        text-align: center;
        padding: 12px 16px;
        font-size: 0.85rem;
        margin-right: 0;
        margin-bottom: 10px;
    }

    .glass-card {
        padding: 12px;
        border-radius: 10px;
    }

    .skill-card {
        padding: 15px 10px;
    }

    .skill-card i {
        font-size: 2rem;
    }

    .skills-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .education-card h3 {
        font-size: 1rem;
        margin-bottom: 12px;
    }

    .edu-item h4 {
        font-size: 0.95rem;
    }

    .bio-card p {
        font-size: 0.9rem;
        margin-bottom: 10px;
        line-height: 1.5;
    }

    .timeline::after {
        left: 8px;
    }

    .timeline-item {
        padding-left: 40px;
        margin-bottom: 30px;
    }

    .timeline-dot {
        left: 2px;
        width: 16px;
        height: 16px;
    }

    .timeline-content .date {
        font-size: 0.8rem;
    }

    .timeline-content h3 {
        font-size: 1rem;
    }

    .timeline-content h4 {
        font-size: 0.85rem;
    }

    .project-info h3 {
        font-size: 1.1rem;
    }

    .project-info p {
        font-size: 0.85rem;
    }

    .contact-info h3 {
        font-size: 1.4rem;
        margin-bottom: 10px;
    }

    .contact-info p {
        font-size: 0.9rem;
        margin-bottom: 20px;
    }

    .contact-item {
        font-size: 0.9rem;
        gap: 12px;
        margin-bottom: 15px;
    }

    .contact-item i {
        width: 30px;
        height: 30px;
        font-size: 0.9rem;
    }

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

    .form-group input,
    .form-group textarea {
        padding: 10px;
        font-size: 16px;
        border-radius: 8px;
    }

    .social-links-footer {
        gap: 15px;
    }

    .social-links-footer a {
        font-size: 1.3rem;
    }

    footer p {
        font-size: 0.8rem;
        padding: 0 10px;
    }
}

.image-wrapper {
    transform:
        rotate3d(.5, -.866, 0, 15deg) rotate(1deg);
    box-shadow:
        2em 4em 6em -2em rgba(0, 0, 0, .5),
        1em 2em 3.5em -2.5em rgba(0, 0, 0, .5);
    transition:
        transform .4s ease,
        box-shadow .4s ease;
    border-radius: 8em;

    &:hover {
        transform:
            rotate3d(0, 0, 0, 0deg) rotate(0deg);
    }
}