:root {
    --primary: #000000;
    --secondary: #0a0a0a;
    --tertiary: #141414;
    --accent: #ff5e00;
    --accent-light: #ff8c42;
    --accent-dark: #cc4b00;
    --text: #ffffff;
    --text-secondary: #cccccc;
    --text-muted: #888888;
    --card-bg: #1a1a1a;
    --card-bg-hover: #222222;
    --border: #333333;
    --border-light: #444444;
    --shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
    --shadow-light: 0 5px 20px rgba(0, 0, 0, 0.4);
    --transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    --transition-smooth: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    --radius: 12px;
    --radius-small: 8px;
}

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

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

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--primary);
    color: var(--text);
    line-height: 1.7;
    overflow-x: hidden;
    position: relative;
    min-height: 100vh;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(circle at 20% 80%, rgba(255, 94, 0, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 94, 0, 0.03) 0%, transparent 50%);
    z-index: -1;
}

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

section {
    padding: 120px 0;
    position: relative;
}

h1,
h2,
h3,
h4,
h5 {
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.5px;
}

h1 {
    font-size: 4.5rem;
    background: linear-gradient(135deg, var(--text) 0%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 1.5rem;
}

h2 {
    font-size: 3.5rem;
    margin-bottom: 3.5rem;
    position: relative;
    display: inline-block;
}

h2 span {
    color: var(--accent);
}

h2::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 0;
    width: 80px;
    height: 5px;
    background: linear-gradient(90deg, var(--accent), var(--accent-light));
    border-radius: 3px;
}

h3 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
}

p {
    margin-bottom: 1.5rem;
    color: var(--text-secondary);
    font-size: 1.1rem;
}

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

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 36px;
    background: linear-gradient(135deg, var(--accent), var(--accent-light));
    color: var(--primary);
    border: none;
    border-radius: var(--radius);
    font-weight: 700;
    font-size: 1rem;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    z-index: 1;
    box-shadow: 0 10px 30px rgba(255, 94, 0, 0.3);
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--accent-light), var(--accent));
    transition: var(--transition);
    z-index: -1;
}

.btn:hover::before {
    left: 0;
}

.btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(255, 94, 0, 0.4);
}

.btn-outline {
    background: transparent;
    color: var(--accent);
    border: 2px solid var(--accent);
    box-shadow: none;
}

.btn-outline::before {
    background: var(--accent);
}

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

.section-title {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title h2::after {
    left: 50%;
    transform: translateX(-50%);
}

#loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--primary);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.8s ease, visibility 0.8s ease;
}

.loading-content {
    text-align: center;
}

.loading-spinner {
    width: 80px;
    height: 80px;
    border: 5px solid var(--border);
    border-top: 5px solid var(--accent);
    border-radius: 50%;
    animation: spin 1.5s linear infinite;
    margin-bottom: 2rem;
}

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

    100% {
        transform: rotate(360deg);
    }
}

.loading-text {
    font-size: 1.2rem;
    color: var(--text-secondary);
    letter-spacing: 2px;
}

.loading-dots {
    display: inline-block;
    position: relative;
    width: 80px;
    height: 20px;
}

.loading-dots span {
    position: absolute;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--accent);
    animation-timing-function: cubic-bezier(0, 1, 1, 0);
}

.loading-dots span:nth-child(1) {
    left: 8px;
    animation: loading-dots1 0.6s infinite;
}

.loading-dots span:nth-child(2) {
    left: 8px;
    animation: loading-dots2 0.6s infinite;
}

.loading-dots span:nth-child(3) {
    left: 32px;
    animation: loading-dots2 0.6s infinite;
}

.loading-dots span:nth-child(4) {
    left: 56px;
    animation: loading-dots3 0.6s infinite;
}

@keyframes loading-dots1 {
    0% {
        transform: scale(0);
    }

    100% {
        transform: scale(1);
    }
}

@keyframes loading-dots2 {
    0% {
        transform: translate(0, 0);
    }

    100% {
        transform: translate(24px, 0);
    }
}

@keyframes loading-dots3 {
    0% {
        transform: scale(1);
    }

    100% {
        transform: scale(0);
    }
}

header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 25px 0;
    transition: var(--transition);
    background-color: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(255, 94, 0, 0.1);
}

header.scrolled {
    padding: 15px 0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

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

.logo {
    font-size: 2.2rem;
    font-weight: 900;
    color: var(--text);
    display: flex;
    align-items: center;
}

.logo span {
    color: var(--accent);
    margin-left: 5px;
}

.logo-dot {
    width: 8px;
    height: 8px;
    background-color: var(--accent);
    border-radius: 50%;
    margin-left: 2px;
    animation: pulse 2s infinite;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li {
    margin-left: 40px;
    position: relative;
}

.nav-links a {
    font-weight: 600;
    font-size: 1rem;
    letter-spacing: 0.5px;
    position: relative;
    padding: 8px 0;
    color: var(--text-secondary);
}

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

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

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--accent), var(--accent-light));
    transition: var(--transition);
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.hamburger-menu {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 20px;
    cursor: pointer;
    position: relative;
    z-index: 1001;
}

.hamburger-menu span {
    display: block;
    height: 3px;
    width: 100%;
    background-color: var(--text);
    border-radius: 3px;
    transition: var(--transition);
}

#hamburger-toggle:checked~.hamburger-menu span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

#hamburger-toggle:checked~.hamburger-menu span:nth-child(2) {
    opacity: 0;
}

#hamburger-toggle:checked~.hamburger-menu span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

#hamburger-toggle:checked~.mobile-nav {
    transform: translateX(0);
    opacity: 1;
    visibility: visible;
}

.mobile-nav {
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    max-width: 400px;
    height: 100vh;
    background-color: var(--secondary);
    padding: 100px 40px 40px;
    transform: translateX(100%);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-smooth);
    z-index: 999;
    box-shadow: -10px 0 40px rgba(0, 0, 0, 0.7);
    border-left: 1px solid var(--border);
}

.mobile-nav-links {
    list-style: none;
}

.mobile-nav-links li {
    margin-bottom: 30px;
}

.mobile-nav-links a {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-secondary);
    display: block;
    padding: 10px 0;
    position: relative;
}

.mobile-nav-links a:hover,
.mobile-nav-links a.active {
    color: var(--accent);
}

.mobile-nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent), var(--accent-light));
    transition: var(--transition);
}

.mobile-nav-links a:hover::after {
    width: 60px;
}

#hamburger-toggle {
    display: none;
}

.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    overflow: hidden;
    position: relative;
}

.hero-content {
    max-width: 800px;
    position: relative;
    z-index: 2;
}

.hero-subtitle {
    font-size: 1.3rem;
    color: var(--accent);
    font-weight: 600;
    margin-bottom: 1rem;
    letter-spacing: 3px;
    text-transform: uppercase;
}

.typing-container {
    height: 80px;
    margin-bottom: 2rem;
    overflow: hidden;
}

.typing-text {
    font-size: 2.8rem;
    font-weight: 800;
    color: var(--accent);
    display: inline-block;
    position: relative;
}

.typing-text::after {
    content: '|';
    position: absolute;
    right: -10px;
    color: var(--accent);
    animation: blink 0.7s infinite;
}

@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}

.hero-description {
    font-size: 1.2rem;
    max-width: 600px;
    margin-bottom: 3rem;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.hero-bg-elements {
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    z-index: 1;
    overflow: hidden;
}

.hero-bg-element {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 94, 0, 0.1) 0%, transparent 70%);
    filter: blur(40px);
}

.hero-bg-element:nth-child(1) {
    width: 400px;
    height: 400px;
    top: 20%;
    right: 10%;
}

.hero-bg-element:nth-child(2) {
    width: 300px;
    height: 300px;
    top: 60%;
    right: 30%;
    background: radial-gradient(circle, rgba(255, 140, 66, 0.08) 0%, transparent 70%);
}

.about {
    background-color: var(--secondary);
    position: relative;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.about-image {
    position: relative;
}

.image-container {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.profile-image {
    width: 100%;
    height: auto;
    display: block;
    transition: var(--transition-smooth);
    filter: grayscale(20%) contrast(1.1);
}

.image-container:hover .profile-image {
    transform: scale(1.03);
    filter: grayscale(0%) contrast(1.2);
}

.image-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, transparent 50%);
    display: flex;
    align-items: flex-end;
    padding: 30px;
}

.experience-badge {
    background: linear-gradient(135deg, var(--accent), var(--accent-light));
    color: var(--primary);
    padding: 25px;
    border-radius: var(--radius);
    text-align: center;
    box-shadow: var(--shadow);
    position: absolute;
    bottom: -30px;
    right: -30px;
    z-index: 2;
    min-width: 150px;
}

.experience-badge h3 {
    font-size: 3rem;
    margin-bottom: 5px;
    line-height: 1;
}

.experience-badge p {
    color: var(--primary);
    font-weight: 600;
    margin: 0;
}

.about-text h2 {
    margin-bottom: 2rem;
}

.about-highlights {
    margin: 2.5rem 0;
}

.highlight-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1.5rem;
}

.highlight-icon {
    width: 50px;
    height: 50px;
    background-color: var(--card-bg);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 20px;
    color: var(--accent);
    font-size: 1.3rem;
    flex-shrink: 0;
}

.skills {
    background-color: var(--primary);
}

.skills-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 40px;
}

.skill-category {
    background-color: var(--card-bg);
    border-radius: var(--radius);
    padding: 40px;
    box-shadow: var(--shadow-light);
    transition: var(--transition);
    border: 1px solid var(--border);
    position: relative;
    overflow: hidden;
}

.skill-category:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow);
    border-color: var(--accent);
}

.skill-category::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, var(--accent), var(--accent-light));
    transform: scaleX(0);
    transform-origin: left;
    transition: var(--transition);
}

.skill-category:hover::before {
    transform: scaleX(1);
}

.category-header {
    display: flex;
    align-items: center;
    margin-bottom: 25px;
}

.category-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--accent), var(--accent-light));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 20px;
    color: var(--primary);
    font-size: 1.5rem;
}

.skill-items {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.skill-tag {
    background-color: rgba(255, 94, 0, 0.1);
    color: var(--accent);
    padding: 10px 20px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.95rem;
    border: 1px solid rgba(255, 94, 0, 0.2);
    transition: var(--transition);
}

.skill-tag:hover {
    background-color: rgba(255, 94, 0, 0.2);
    transform: translateY(-3px);
}

.projects {
    background-color: var(--secondary);
    position: relative;
    overflow: hidden;
}

.projects::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(circle at 10% 10%, rgba(255, 94, 0, 0.03) 0%, transparent 30%),
        radial-gradient(circle at 90% 90%, rgba(255, 94, 0, 0.03) 0%, transparent 30%);
    pointer-events: none;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 40px;
    margin-bottom: 60px;
}

.project-card {
    background-color: var(--card-bg);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-light);
    transition: var(--transition);
    border: 1px solid var(--border);
    height: 100%;
    display: flex;
    flex-direction: column;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s forwards;
}

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

.project-card:nth-child(1) {
    animation-delay: 0.1s;
}

.project-card:nth-child(2) {
    animation-delay: 0.2s;
}

.project-card:nth-child(3) {
    animation-delay: 0.3s;
}

.project-card:nth-child(4) {
    animation-delay: 0.4s;
}

.project-card:nth-child(5) {
    animation-delay: 0.5s;
}

.project-card:nth-child(6) {
    animation-delay: 0.6s;
}

.project-card:hover {
    transform: translateY(-15px);
    box-shadow: var(--shadow);
    border-color: var(--accent);
}

.project-image {
    height: 240px;
    width: 100%;
    position: relative;
    overflow: hidden;
}

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

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

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, transparent, rgba(0, 0, 0, 0.8));
    display: flex;
    align-items: flex-end;
    padding: 25px;
    opacity: 0;
    transition: var(--transition);
}

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

.project-live-link {
    background-color: var(--accent);
    color: var(--primary);
    padding: 10px 20px;
    border-radius: var(--radius-small);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.project-live-link:hover {
    background-color: var(--accent-light);
}

.project-info {
    padding: 30px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.project-info h3 {
    margin-bottom: 15px;
    font-size: 1.5rem;
}

.project-description {
    color: var(--text-secondary);
    margin-bottom: 20px;
    flex-grow: 1;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 25px;
}

.project-tag {
    background-color: rgba(255, 255, 255, 0.05);
    color: var(--text-secondary);
    padding: 6px 15px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 500;
    border: 1px solid var(--border);
}

.project-tag.primary {
    background-color: rgba(255, 94, 0, 0.1);
    color: var(--accent);
    border-color: rgba(255, 94, 0, 0.3);
}

.project-links {
    display: flex;
    gap: 15px;
    margin-top: auto;
}

.project-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--accent);
    font-weight: 600;
    font-size: 0.95rem;
    transition: var(--transition);
}

.project-link:hover {
    color: var(--accent-light);
    gap: 12px;
}

.additional-projects {
    display: none;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
    animation: fadeIn 0.8s ease forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

#load-more-toggle {
    display: none;
}

#load-more-toggle:checked~.additional-projects {
    display: grid;
}

#load-more-toggle:checked~.load-more-container .load-text {
    display: none;
}

#load-more-toggle:checked~.load-more-container .less-text {
    display: block;
}

.load-more-container {
    text-align: center;
    margin-top: 20px;
}

.load-more-btn {
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 40px;
    font-weight: 700;
    font-size: 1rem;
}

.load-more-btn .less-text {
    display: none;
}

.load-more-btn i {
    transition: var(--transition);
}

#load-more-toggle:checked~.load-more-container .load-more-btn i {
    transform: rotate(180deg);
}

.contact {
    background-color: var(--primary);
}

.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
}

.contact-info h2 {
    margin-bottom: 2rem;
}

.contact-text {
    margin-bottom: 3rem;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.contact-detail {
    display: flex;
    align-items: center;
    gap: 20px;
}

.contact-icon-wrapper {
    width: 60px;
    height: 60px;
    background-color: var(--card-bg);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    font-size: 1.3rem;
    transition: var(--transition);
    flex-shrink: 0;
}

.contact-detail:hover .contact-icon-wrapper {
    background-color: var(--accent);
    color: var(--primary);
    transform: scale(1.1);
}

.contact-detail-content h4 {
    font-size: 1.2rem;
    margin-bottom: 5px;
}

.contact-form-container {
    background-color: var(--card-bg);
    border-radius: var(--radius);
    padding: 50px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
}

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

.form-label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    color: var(--text);
}

.form-control {
    width: 100%;
    padding: 18px 20px;
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    border-radius: var(--radius-small);
    color: var(--text);
    font-size: 1rem;
    transition: var(--transition);
}

.form-control:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(255, 94, 0, 0.1);
}

textarea.form-control {
    min-height: 180px;
    resize: vertical;
}

.submit-btn {
    width: 100%;
    padding: 20px;
    font-size: 1.1rem;
}

footer {
    background-color: var(--secondary);
    padding: 80px 0 40px;
    border-top: 1px solid var(--border);
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.footer-logo {
    font-size: 2.5rem;
    font-weight: 900;
    margin-bottom: 30px;
}

.footer-text {
    max-width: 600px;
    margin-bottom: 40px;
    color: var(--text-secondary);
}

.social-links {
    display: flex;
    gap: 20px;
    margin-bottom: 50px;
}

.social-link {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    background-color: var(--card-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    transition: var(--transition);
    border: 1px solid var(--border);
    color: var(--text-secondary);
}

.social-link:hover {
    background-color: var(--accent);
    color: var(--primary);
    transform: translateY(-8px);
    border-color: var(--accent);
}

.footer-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    margin-bottom: 40px;
}

.footer-nav a {
    color: var(--text-secondary);
    font-weight: 500;
    position: relative;
    padding: 5px 0;
}

.footer-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent);
    transition: var(--transition);
}

.footer-nav a:hover {
    color: var(--text);
}

.footer-nav a:hover::after {
    width: 100%;
}

.copyright {
    color: var(--text-muted);
    font-size: 0.95rem;
    padding-top: 40px;
    border-top: 1px solid var(--border);
    width: 100%;
}

@media (max-width: 1200px) {
    h1 {
        font-size: 3.8rem;
    }

    h2 {
        font-size: 3rem;
    }

    .typing-text {
        font-size: 2.3rem;
    }
}

@media (max-width: 992px) {

    .about-content,
    .contact-container {
        grid-template-columns: 1fr;
        gap: 60px;
    }

    .hero-bg-elements {
        width: 100%;
        opacity: 0.3;
    }

    .experience-badge {
        position: relative;
        bottom: 0;
        right: 0;
        margin-top: 30px;
        width: 150px;
    }

    .skills-container {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    }

    .projects-grid,
    .additional-projects {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    }
}

@media (max-width: 768px) {
    h1 {
        font-size: 3rem;
    }

    h2 {
        font-size: 2.5rem;
    }

    .typing-text {
        font-size: 1.8rem;
    }

    .typing-container {
        height: 60px;
    }

    section {
        padding: 80px 0;
    }

    .nav-links {
        display: none;
    }

    .hamburger-menu {
        display: flex;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: flex-start;
    }

    .hero-buttons .btn {
        width: 100%;
        max-width: 300px;
        text-align: center;
    }

    .skill-category,
    .project-card,
    .contact-form-container {
        padding: 30px;
    }

    .project-image {
        height: 200px;
    }
}

@media (max-width: 576px) {
    h1 {
        font-size: 2.5rem;
    }

    h2 {
        font-size: 2rem;
    }

    .typing-text {
        font-size: 1.5rem;
    }

    .container {
        width: 95%;
    }

    .btn {
        padding: 14px 30px;
    }

    .skills-container,
    .projects-grid,
    .additional-projects {
        grid-template-columns: 1fr;
    }

    .mobile-nav {
        max-width: 100%;
    }

    .experience-badge {
        padding: 20px;
        min-width: 120px;
    }

    .experience-badge h3 {
        font-size: 2.5rem;
    }

    .social-links {
        flex-wrap: wrap;
        justify-content: center;
    }
}

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

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

::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--secondary);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(to bottom, var(--accent), var(--accent-light));
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(to bottom, var(--accent-light), var(--accent));
}

.github-link-text {
    display: block;
    transition: var(--transition);
}

#ai-assistant {
    position: fixed;
    bottom: 100px;
    right: 30px;
    width: 380px;
    height: 550px;
    background: linear-gradient(135deg, #1a1a1a 0%, #0a0a0a 100%);
    border-radius: 20px;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.8),
        0 0 0 1px rgba(255, 94, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    display: none;
    flex-direction: column;
    z-index: 9998;
    border: 1px solid #333;
    overflow: hidden;
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    font-family: 'Inter', sans-serif;
}

#ai-assistant.active {
    display: flex;
    transform: translateY(0);
    opacity: 1;
    animation: aiSlideIn 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes aiSlideIn {
    0% {
        transform: translateY(20px) scale(0.95);
        opacity: 0;
    }

    100% {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}

#ai-chat-header {
    background: linear-gradient(135deg, #ff5e00 0%, #ff8c42 100%);
    padding: 20px;
    color: #000;
    font-weight: 800;
    font-size: 1.3rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(0, 0, 0, 0.2);
    letter-spacing: -0.5px;
    position: relative;
    overflow: hidden;
}

#ai-chat-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg,
            transparent 0%,
            rgba(255, 255, 255, 0.1) 50%,
            transparent 100%);
    animation: aiShimmer 3s infinite;
}

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

    100% {
        transform: translateX(100%);
    }
}

#ai-chat-header span {
    display: flex;
    align-items: center;
    gap: 10px;
}

#ai-chat-header span::before {
    content: '🤖';
    font-size: 1.5rem;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

#ai-close-btn {
    background: rgba(0, 0, 0, 0.3);
    border: 2px solid rgba(0, 0, 0, 0.4);
    color: #000;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-size: 1.5rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

#ai-close-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 0, 0, 0.2), transparent);
    transition: left 0.6s;
}

#ai-close-btn:hover {
    background: rgba(0, 0, 0, 0.5);
    transform: rotate(90deg) scale(1.1);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

#ai-close-btn:hover::before {
    left: 100%;
}

#ai-chat-body {
    flex: 1;
    padding: 25px;
    overflow-y: auto;
    background:
        radial-gradient(circle at 20% 80%, rgba(255, 94, 0, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 94, 0, 0.02) 0%, transparent 50%);
    display: flex;
    flex-direction: column;
    gap: 20px;
    scrollbar-width: thin;
    scrollbar-color: #ff5e00 #1a1a1a;
}

#ai-chat-body::-webkit-scrollbar {
    width: 8px;
}

#ai-chat-body::-webkit-scrollbar-track {
    background: #1a1a1a;
    border-radius: 10px;
}

#ai-chat-body::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #ff5e00, #ff8c42);
    border-radius: 10px;
    border: 2px solid #1a1a1a;
}

#ai-chat-body::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #ff8c42, #ff5e00);
}

.ai-message {
    max-width: 85%;
    padding: 18px;
    border-radius: 18px;
    line-height: 1.5;
    font-size: 0.95rem;
    position: relative;
    animation: messageSlide 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

@keyframes messageSlide {
    0% {
        transform: translateY(10px);
        opacity: 0;
    }

    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

.ai-user {
    align-self: flex-end;
    background: linear-gradient(135deg, #ff5e00 0%, #ff8c42 100%);
    color: #000;
    font-weight: 600;
    border-bottom-right-radius: 5px;
    margin-left: auto;
    border: 1px solid rgba(255, 94, 0, 0.3);
}

.ai-user::before {
    content: '👤';
    position: absolute;
    left: -35px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.2rem;
    background: #1a1a1a;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #ff5e00;
}

.ai-bot {
    align-self: flex-start;
    background: linear-gradient(135deg, #2a2a2a 0%, #1a1a1a 100%);
    color: #fff;
    border-bottom-left-radius: 5px;
    border: 1px solid #333;
}

.ai-bot::before {
    content: '🤖';
    position: absolute;
    right: -35px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.2rem;
    background: linear-gradient(135deg, #ff5e00, #ff8c42);
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #333;
    color: #000;
    font-weight: bold;
}

.ai-thinking {
    align-self: flex-start;
    background: linear-gradient(135deg, #2a2a2a 0%, #1a1a1a 100%);
    color: #ccc;
    padding: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    border: 1px solid #333;
}

.typing-dots {
    display: flex;
    gap: 6px;
}

.typing-dots span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #ff5e00;
    animation: typing 1.4s infinite ease-in-out both;
}

.typing-dots span:nth-child(1) {
    animation-delay: -0.32s;
}

.typing-dots span:nth-child(2) {
    animation-delay: -0.16s;
}

.typing-dots span:nth-child(3) {
    animation-delay: 0s;
}

@keyframes typing {

    0%,
    80%,
    100% {
        transform: scale(0.6);
        opacity: 0.5;
    }

    40% {
        transform: scale(1);
        opacity: 1;
    }
}

.ai-suggestions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
}

.ai-suggestion {
    background: rgba(255, 94, 0, 0.1);
    border: 1px solid rgba(255, 94, 0, 0.3);
    color: #ff8c42;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    font-weight: 500;
    backdrop-filter: blur(5px);
}

.ai-suggestion:hover {
    background: rgba(255, 94, 0, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 94, 0, 0.2);
}

#ai-chat-form {
    display: flex;
    padding: 20px;
    background: #1a1a1a;
    border-top: 1px solid #333;
    gap: 12px;
    position: relative;
}

#ai-chat-form::before {
    content: '';
    position: absolute;
    top: -1px;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg,
            transparent,
            #ff5e00,
            transparent);
}

#ai-user-input {
    flex: 1;
    padding: 16px 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid #333;
    border-radius: 12px;
    color: #fff;
    font-size: 0.95rem;
    font-family: 'Inter', sans-serif;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    outline: none;
}

#ai-user-input:focus {
    border-color: #ff5e00;
    box-shadow: 0 0 0 3px rgba(255, 94, 0, 0.1);
    background: rgba(255, 255, 255, 0.08);
}

#ai-user-input::placeholder {
    color: #666;
    font-weight: 500;
}

#ai-chat-form button {
    background: linear-gradient(135deg, #ff5e00, #ff8c42);
    color: #000;
    border: none;
    border-radius: 12px;
    width: 56px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    position: relative;
    overflow: hidden;
}

#ai-chat-form button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.6s;
}

#ai-chat-form button:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(255, 94, 0, 0.4);
}

#ai-chat-form button:hover::before {
    left: 100%;
}

#ai-chat-form button:active {
    transform: translateY(-1px);
}

#ai-toggle-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #ff5e00 0%, #ff8c42 100%);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: #000;
    z-index: 9997;
    box-shadow: 0 10px 35px rgba(255, 94, 0, 0.4),
        0 0 0 2px rgba(255, 94, 0, 0.2),
        inset 0 2px 0 rgba(255, 255, 255, 0.3);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    animation: aiPulse 2s infinite;
    overflow: hidden;
}

@keyframes aiPulse {

    0%,
    100% {
        box-shadow: 0 10px 35px rgba(255, 94, 0, 0.4),
            0 0 0 2px rgba(255, 94, 0, 0.2),
            inset 0 2px 0 rgba(255, 255, 255, 0.3);
    }

    50% {
        box-shadow: 0 10px 45px rgba(255, 94, 0, 0.6),
            0 0 0 3px rgba(255, 94, 0, 0.4),
            inset 0 2px 0 rgba(255, 255, 255, 0.4);
    }
}

#ai-toggle-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center,
            rgba(255, 255, 255, 0.2) 0%,
            transparent 70%);
    border-radius: 50%;
    animation: aiGlow 3s infinite linear;
}

@keyframes aiGlow {
    0% {
        transform: scale(0.8);
        opacity: 0.5;
    }

    50% {
        transform: scale(1.2);
        opacity: 0.8;
    }

    100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
}

#ai-toggle-btn:hover {
    transform: scale(1.1) rotate(15deg);
    box-shadow: 0 15px 50px rgba(255, 94, 0, 0.6),
        0 0 0 3px rgba(255, 94, 0, 0.4),
        inset 0 2px 0 rgba(255, 255, 255, 0.4);
}

#ai-toggle-btn:active {
    transform: scale(0.95);
}

.ai-notification {
    position: absolute;
    top: -8px;
    right: -8px;
    background: #ff4444;
    color: #000;
    font-size: 0.7rem;
    font-weight: 800;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: notificationPulse 1.5s infinite;
    border: 2px solid #1a1a1a;
    box-shadow: 0 3px 10px rgba(255, 68, 68, 0.4);
}

@keyframes notificationPulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }
}

.ai-welcome {
    background: linear-gradient(135deg, #2a2a2a 0%, #1a1a1a 100%);
    border: 1px solid #333;
    border-radius: 18px;
    padding: 20px;
    margin-bottom: 15px;
    position: relative;
    overflow: hidden;
}

.ai-welcome::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 100%;
    background: linear-gradient(180deg, #ff5e00, #ff8c42);
}

.ai-welcome h4 {
    color: #ff8c42;
    margin-bottom: 10px;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.ai-welcome h4::before {
    content: '✨';
    font-size: 1.2rem;
}

.ai-welcome p {
    color: #ccc;
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 15px;
}

.ai-code {
    background: #0a0a0a;
    border: 1px solid #333;
    border-radius: 10px;
    padding: 15px;
    margin: 10px 0;
    font-family: 'Monaco', 'Courier New', monospace;
    font-size: 0.85rem;
    color: #ff8c42;
    overflow-x: auto;
    position: relative;
}

.ai-code::before {
    content: '</>';
    position: absolute;
    top: -10px;
    right: 15px;
    background: #1a1a1a;
    color: #ff5e00;
    padding: 2px 10px;
    border-radius: 10px;
    font-size: 0.8rem;
    border: 1px solid #333;
}

.ai-message a {
    color: #ff8c42;
    text-decoration: none;
    border-bottom: 1px dashed #ff8c42;
    transition: all 0.3s;
    font-weight: 600;
}

.ai-message a:hover {
    color: #ff5e00;
    border-bottom: 1px solid #ff5e00;
}

@media (max-width: 768px) {
    #ai-assistant {
        width: calc(100vw - 40px);
        height: 500px;
        right: 20px;
        bottom: 90px;
    }

    #ai-toggle-btn {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
        bottom: 20px;
        right: 20px;
    }

    .ai-message {
        max-width: 90%;
    }
}

@media (max-width: 480px) {
    #ai-assistant {
        height: 450px;
        border-radius: 15px;
    }

    #ai-chat-header {
        padding: 15px;
        font-size: 1.1rem;
    }

    #ai-chat-body {
        padding: 20px;
    }

    .ai-message {
        padding: 15px;
        font-size: 0.9rem;
    }

    #ai-user-input {
        padding: 14px;
        font-size: 0.9rem;
    }

    #ai-chat-form button {
        width: 50px;
    }
}

@media (prefers-color-scheme: dark) {
    #ai-assistant {
        background: linear-gradient(135deg, #0a0a0a 0%, #000 100%);
        border-color: #444;
    }

    .ai-bot {
        background: linear-gradient(135deg, #1a1a1a 0%, #0a0a0a 100%);
    }
}

@media print {

    #ai-assistant,
    #ai-toggle-btn {
        display: none !important;
    }
}

@keyframes aiLoading {
    0% {
        background-position: -200px 0;
    }

    100% {
        background-position: calc(200px + 100%) 0;
    }
}

.ai-loading {
    background: linear-gradient(90deg,
            #2a2a2a 25%,
            #333 50%,
            #2a2a2a 75%);
    background-size: 200px 100%;
    animation: aiLoading 1.5s infinite linear;
}

@media (max-width: 768px) {
  .hero {
    height: auto;
    min-height: 100vh;
    padding-top: 120px;
  }

  .hero-content {
    text-align: left;
  }

  .hero-subtitle {
    font-size: 1rem;
    letter-spacing: 2px;
  }

  h1 {
    font-size: 2.6rem;
    line-height: 1.15;
  }

  .hero-description {
    font-size: 1rem;
  }
}

@media (max-width: 768px) {
  .about-content {
    gap: 40px;
  }

  .image-container {
    max-height: 360px;
  }

  .experience-badge {
    position: static;
    margin-top: 20px;
    width: fit-content;
  }
}
@media (max-width: 768px) {
  .contact-container {
    gap: 40px;
  }

  .contact-form-container {
    padding: 25px;
  }

  .contact-detail {
    align-items: flex-start;
  }
}
@media (max-width: 768px) {
  header {
    padding: 15px 0;
  }

  .mobile-nav {
    padding: 90px 30px 30px;
  }

  .mobile-nav-links a {
    font-size: 1.3rem;
  }
}
@media (max-width: 480px) {
  #ai-assistant {
    width: calc(100vw - 20px);
    right: 10px;
    bottom: 80px;
  }

  #ai-toggle-btn {
    right: 15px;
    bottom: 15px;
  }
}
html, body {
  width: 100%;
  overflow-x: hidden;
}

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