/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
}

body {
    font-family: 'Source Sans Pro', sans-serif;
    line-height: 1.6;
    color: #27272a;
    background-color: #f3f4f6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    flex: 1 0 auto;
    margin-top: 150px; /* 100px navbar + 50px social header */
}

/* Navigation */
.navbar {
    background-color: #27272a;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    height: 100px;
    display: flex;
    align-items: center;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

.nav-brand-container {
    display: flex;
    flex-direction: column;
}

.nav-brand {
    font-family: 'Roboto Slab', 'Lora', serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: #ffffff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.nav-brand:hover {
    color: #f97316;
}

.nav-subtitle {
    font-family: 'Roboto Slab', 'Lora', serif;
    font-size: 0.8rem;
    margin-top: 0.1rem;
    font-weight: 500;
}

.subtitle-white {
    color: #ffffff;
}

.subtitle-orange {
    color: #f97316;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2.5rem;
}

.nav-links a {
    font-family: ui-monospace, monospace;
    text-decoration: none;
    color: #ffffff;
    font-weight: 500;
    font-size: 1rem;
    transition: color 0.3s ease;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #f97316;
    transition: width 0.3s ease;
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.nav-links a:hover,
.nav-links a.active {
    color: #f97316;
}

/* Hero Section */
.hero {
    padding: 4rem 0;
    background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%);
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.hero-text {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.hero h1 {
    font-family: 'Roboto Slab', 'Lora', serif;
    font-size: 3.5rem;
    color: #27272a;
    font-weight: 700;
    line-height: 1.2;
}

.hero .subtitle {
    font-family: ui-monospace, monospace;
    font-size: 1.5rem;
    color: #f97316;
    font-weight: 500;
}

.hero-description {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #4b5563;
}

.profile-image {
    width: 100%;
    max-width: 400px;
    aspect-ratio: 1;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.profile-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* About Section */
.about-section {
    padding: 6rem 0;
    background-color: #ffffff;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.about-text {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.about-text h2 {
    font-family: 'Roboto Slab', 'Lora', serif;
    font-size: 2.5rem;
    color: #27272a;
    font-weight: 700;
}

.about-text p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #4b5563;
}

.skills {
    background-color: #f3f4f6;
    padding: 2rem;
    border-radius: 20px;
}

.skills h3 {
    font-family: 'Roboto Slab', 'Lora', serif;
    font-size: 2rem;
    color: #27272a;
    margin-bottom: 2rem;
    text-align: center;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.skill-category {
    background-color: #f3f4f6;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    border: 2px solid #f97316;
}

.skill-category h4 {
    font-family: ui-monospace, monospace;
    font-size: 1.2rem;
    color: #f97316;
    margin-bottom: 1rem;
    text-align: center;
}

.skill-category ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.skill-category li {
    font-family: ui-monospace, monospace;
    font-size: 1rem;
    color: #27272a;
    padding: 0.5rem 1rem;
    background-color: #f3f4f6;
    border-radius: 8px;
    text-align: center;
    transition: transform 0.2s ease;
}

.skill-category li:hover {
    transform: translateY(-2px);
    background-color: #e5e7eb;
}

/* Experience Section */
.experience-section {
    padding: 4rem 0;
}

.section-title {
    font-family: 'Roboto Slab', 'Lora', serif;
    font-size: 2.5rem;
    color: #27272a;
    margin-bottom: 1rem;
    text-align: center;
}

.section-description {
    text-align: center;
    color: #404040;
    margin-bottom: 3rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.timeline {
    position: relative;
    width: 1000px;
    margin: 0 auto;
    padding: 2rem 0;
}

.timeline::before {
    content: '';
    position: absolute;
    width: 2px;
    background-color: #e5e7eb;
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -1px;
}

.timeline-item {
    padding: 1rem 0;
    position: relative;
    width: 48%;
    box-sizing: border-box;
}

.timeline-item:nth-child(odd) {
    padding-right: 1rem;
}

.timeline-item:nth-child(even) {
    padding-left: 1rem;
    margin-left: 52%;
}

.timeline-content {
    background-color: #ffffff;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    position: relative;
    width: 100%;
}

.timeline-item::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    background-color: #f97316;
    border-radius: 50%;
    top: 0;
    right: 0;
    z-index: 1;
}

.timeline-item:nth-child(odd)::after {
    right: -10px;
}

.timeline-item:nth-child(even)::after {
    left: -10px;
}

.timeline-date {
    font-family: ui-monospace, monospace;
    color: #f97316;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.timeline-title {
    font-family: 'Roboto Slab', 'Lora', serif;
    font-size: 1.25rem;
    color: #27272a;
    margin-bottom: 0.5rem;
}

.timeline-company {
    font-family: ui-monospace, monospace;
    color: #6b7280;
    font-size: 1rem;
    margin-bottom: 1rem;
}

.timeline-description {
    color: #4b5563;
    line-height: 1.6;
    font-size: 1rem;
    font-family: 'Roboto Slab', 'Lora', serif;
}

/* Responsive Design for Timeline */
@media (max-width: 1024px) {
    .timeline {
        width: 90%;
    }
}

@media (max-width: 768px) {
    .timeline::before {
        left: 40px;
    }

    .timeline-item {
        width: 100%;
        padding-left: 70px !important;
        padding-right: 25px !important;
    }

    .timeline-item:nth-child(even) {
        margin-left: 0;
    }

    .timeline-item::after {
        left: 30px !important;
        right: auto !important;
    }
    
    .section-title {
        font-size: 2rem;
    }
}

/* Works Section */
.works-section {
    padding: 4rem 0;
}

.section-title {
    font-family: 'Roboto Slab', 'Lora', serif;
    font-size: 2.5rem;
    color: #27272a;
    margin-bottom: 1rem;
    text-align: center;
}

.section-description {
    text-align: center;
    color: #404040;
    margin-bottom: 3rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.works-grid {
    padding: 2rem 0;
}

.works-grid .grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    padding: 0 1rem;
}

.work-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.work-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.work-image {
    position: relative;
    overflow: hidden;
    border-radius: 0.5rem;
    cursor: pointer;
}

.work-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.work-image:hover img {
    transform: scale(1.05);
}

.work-content {
    padding: 1.5rem;
}

.work-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.work-header h3 {
    font-family: 'Roboto Slab', 'Lora', serif;
    font-size: 1.25rem;
    color: #27272a;
    margin: 0;
}

.work-links {
    position: absolute;
    top: 1rem;
    right: 1rem;
    display: flex;
    gap: 0.5rem;
    z-index: 2;
}

.github-link,
.external-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    transition: all 0.3s ease;
}

.github-link:hover,
.external-link:hover {
    background: rgba(0, 0, 0, 0.9);
    color: #f97316;
    transform: translateY(-2px);
}

.work-description {
    color: #666;
    margin-bottom: 1rem;
    line-height: 1.5;
}

.work-skills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.skill-tag {
    background-color: #f97316;
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 500;
}

@media (max-width: 768px) {
    .works-section {
        padding: 2rem 0;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .works-grid .grid {
        grid-template-columns: 1fr;
    }
}

/* Contact Section */
.contact-section {
    padding: 4rem 0;
}

.contact-content {
    display: flex;
    justify-content: center;
    max-width: 1000px;
    margin: 0 auto;
}

.contact-info {
    background-color: #ffffff;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 600px;
}

.contact-subtitle {
    font-family: 'Roboto Slab', 'Lora', serif;
    font-size: 1.5rem;
    color: #27272a;
    margin-bottom: 1rem;
}

.contact-description {
    color: #404040;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.contact-details {
    margin-bottom: 2rem;
}

.contact-icon {
    width: 24px;
    height: 24px;
    color: #f97316;
    margin-right: 1rem;
    flex-shrink: 0;
}

.contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    color: #404040;
}

.contact-link {
    color: #27272a;
    text-decoration: underline;
    transition: color 0.3s ease;
}

.contact-link:hover {
    color: #f97316;
    text-decoration: underline;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-link {
    color: #404040;
    font-size: 1.5rem;
    transition: color 0.3s ease;
}

.social-link:hover {
    color: #f97316;
}

.contact-form {
    background-color: #ffffff;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.form-group {
    margin-bottom: 1.5rem;
    position: relative;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #27272a;
    font-family: 'Roboto Slab', 'Lora', serif;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #e5e7eb;
    border-radius: 4px;
    background-color: #ffffff;
    font-family: ui-monospace, monospace;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #f97316;
    box-shadow: 0 0 0 2px rgba(249, 115, 22, 0.1);
}

.error-message {
    color: #dc2626;
    font-size: 0.875rem;
    position: absolute;
    bottom: -1.25rem;
    left: 0;
    right: 0;
    min-height: 1.25rem;
}

.submit-btn {
    background-color: #f97316;
    color: white;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 4px;
    font-family: 'Roboto Slab', 'Lora', serif;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    margin-top: 0.5rem;
}

.submit-btn:hover {
    background-color: #ea580c;
}

.submit-btn:disabled {
    background-color: #fca5a5;
    cursor: not-allowed;
}

.btn-text {
    display: inline-block;
}

.btn-spinner {
    display: none;
}

.btn-spinner.hidden {
    display: none;
}

.spinner {
    animation: rotate 2s linear infinite;
    width: 20px;
    height: 20px;
}

.spinner .path {
    stroke: currentColor;
    stroke-linecap: round;
    animation: dash 1.5s ease-in-out infinite;
}

@keyframes rotate {
    100% {
        transform: rotate(360deg);
    }
}

@keyframes dash {
    0% {
        stroke-dasharray: 1, 150;
        stroke-dashoffset: 0;
    }
    50% {
        stroke-dasharray: 90, 150;
        stroke-dashoffset: -35;
    }
    100% {
        stroke-dasharray: 90, 150;
        stroke-dashoffset: -124;
    }
}

@media (max-width: 768px) {
    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

/* Footer */
footer {
    background-color: #27272a;
    color: #ffffff;
    padding: 2rem 0;
    margin-top: auto;
    width: 100%;
}

.footer-content {
    text-align: center;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-container {
        flex-direction: column;
        padding: 1rem;
    }

    .nav-links {
        margin-top: 1rem;
        gap: 1rem;
    }

    .about-content,
    .contact-container {
        grid-template-columns: 1fr;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .profile-image {
        width: 150px;
        height: 150px;
    }
}

h2, h3, h4, h5, h6 {
    font-family: 'Inter', sans-serif;
    font-weight: 600;
}

/* Social Header */
.social-header {
    background-color: #404040;
    padding: 0.5rem 0;
    border-bottom: 1px solid #e5e7eb;
    position: fixed;
    top: 100px;
    left: 0;
    right: 0;
    z-index: 999;
}

.social-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    display: flex;
    justify-content: flex-end;
    gap: 1.5rem;
}

.social-icon {
    color: #ffffff;
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
}

.social-icon:hover {
    color: #f97316;
}

/* LinkedIn specific hover */
.social-icon[href*="linkedin"]:hover {
    color: #0077b5; /* LinkedIn brand color */
}

/* GitHub specific hover */
.social-icon[href*="github"]:hover {
    color: #000000; /* GitHub brand color */
}

/* Instagram specific hover */
.social-icon[href*="instagram"]:hover {
    color: #E1306C; /* Instagram brand color */
}

.social-icon svg {
    width: 24px;
    height: 24px;
}

.resume-button {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1rem;
    background-color: #ffffff;
    color: #404040;
    text-decoration: none;
    border-radius: 4px;
    font-family: 'Roboto Slab', 'Lora', serif;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    margin-left: 0.5rem;
}

.resume-button:hover {
    background-color: #f3f4f6;
    transform: translateY(-2px);
}

.skills-section {
    margin-bottom: 4rem;
}

.skills-title {
    font-family: 'Roboto Slab', 'Lora', serif;
    font-size: 1.8rem;
    color: #27272a;
    margin-bottom: 2rem;
    text-align: center;
}

.skills-categories {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.skill-category {
    background-color: #f3f4f6;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    border: 2px solid #f97316;
}

.category-title {
    font-family: 'Roboto Slab', 'Lora', serif;
    font-size: 1.2rem;
    color: #27272a;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #f97316;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 0.5rem;
}

.skill-tag {
    background-color: #ffffff;
    color: #404040;
    padding: 0.3rem 0.6rem;
    border-radius: 4px;
    font-family: ui-monospace, monospace;
    font-size: 0.75rem;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.skill-tag:hover {
    background-color: #e5e7eb;
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    .skills-categories {
        grid-template-columns: 1fr;
    }
    
    .skills-grid {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    }
    
    .section-title {
        font-size: 2rem;
    }
}

.alert {
    padding: 1.25rem;
    margin-bottom: 1rem;
    border-radius: 0.5rem;
    font-size: 0.9rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.alert::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
}

.alert-success {
    background-color: #f0fdf4;
    color: #166534;
    border: 1px solid #bbf7d0;
}

.alert-success::before {
    background-color: #22c55e;
}

.alert-error {
    background-color: #fff1f2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

.alert-error::before {
    background-color: #ef4444;
}

.alert p {
    margin: 0.5rem 0;
    font-weight: 500;
}

.alert ul {
    margin: 0.5rem 0;
    padding-left: 1.5rem;
}

.alert li {
    margin: 0.25rem 0;
    font-weight: normal;
}

.form-container {
    position: relative;
    background-color: #ffffff;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

#alertContainer {
    position: absolute;
    top: -4rem;
    left: 0;
    right: 0;
    z-index: 10;
}

/* Works Page Styles */
.works-page {
    padding: 2rem 0;
}

.works-hero {
    text-align: center;
    padding: 4rem 0;
    background-color: #f8f9fa;
}

.works-hero h1 {
    font-size: 2.5rem;
    color: #1a1a1a;
    margin-bottom: 1rem;
}

.works-hero p {
    font-size: 1.2rem;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
}

.works-grid {
    padding: 2rem 0;
}

.works-grid .grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    padding: 0 1rem;
}

.work-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.work-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.work-image {
    position: relative;
    padding-top: 56.25%; /* 16:9 aspect ratio */
    overflow: hidden;
}

.work-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.work-card:hover .work-image img {
    transform: scale(1.05);
}

.work-content {
    padding: 1.5rem;
}

.work-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.work-header h3 {
    font-size: 1.25rem;
    color: #1a1a1a;
    margin: 0;
}

.work-links {
    display: flex;
    gap: 1rem;
    margin: 1rem 0;
}

.work-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.1);
    color: #27272a;
    transition: all 0.3s ease;
}

.work-link:hover {
    background: rgba(0, 0, 0, 0.2);
    color: #f97316;
    transform: translateY(-2px);
}

.work-link svg {
    width: 24px;
    height: 24px;
}

.work-description {
    color: #666;
    margin-bottom: 1rem;
    line-height: 1.5;
}

.work-skills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.skill-tag {
    background-color: #f97316;
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 500;
}

@media (max-width: 768px) {
    .works-hero {
        padding: 2rem 0;
    }
    
    .works-hero h1 {
        font-size: 2rem;
    }
    
    .works-grid .grid {
        grid-template-columns: 1fr;
    }
}

/* Skillset Section */
.skillset-section {
    padding: 4rem 0;
}

.section-title {
    font-family: 'Roboto Slab', 'Lora', serif;
    font-size: 2.5rem;
    color: #27272a;
    margin-bottom: 1rem;
    text-align: center;
}

.section-description {
    text-align: center;
    color: #404040;
    margin-bottom: 3rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.skills-section {
    margin-bottom: 4rem;
}

.skills-categories {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.skill-category {
    background-color: #f3f4f6;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    border: 2px solid #f97316;
}

.category-title {
    font-family: 'Roboto Slab', 'Lora', serif;
    font-size: 1.2rem;
    color: #27272a;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #f97316;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 0.5rem;
}

.skill-tag {
    background-color: #ffffff;
    color: #404040;
    padding: 0.3rem 0.6rem;
    border-radius: 4px;
    font-family: ui-monospace, monospace;
    font-size: 0.75rem;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.skill-tag:hover {
    background-color: #e5e7eb;
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    .skills-categories {
        grid-template-columns: 1fr;
    }
    
    .skills-grid {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    }
    
    .section-title {
        font-size: 2rem;
    }
}

/* Carousel Modal Styles */
.carousel-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.98);
    z-index: 1000;
    overflow: hidden;
}

.carousel-modal-content {
    position: relative;
    width: 90%;
    max-width: 1200px;
    height: 90vh;
    margin: 5vh auto;
    background-color: #1a1a1a;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.close-modal {
    position: absolute;
    top: 1rem;
    right: 1rem;
    color: #ef4444;
    font-size: 2rem;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
    z-index: 2;
    background: rgba(0, 0, 0, 0.5);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.close-modal:hover {
    color: #dc2626;
    background: rgba(0, 0, 0, 0.7);
}

.carousel-modal-title {
    color: #ffffff;
    font-size: 1.5rem;
    padding: 1rem;
    text-align: center;
    border-bottom: 1px solid #e5e7eb;
}

.carousel-container {
    position: relative;
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    overflow: hidden;
    background-color: #1a1a1a;
}

.carousel-slides {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #1a1a1a;
}

.carousel-slide {
    display: none;
    width: 100%;
    height: 100%;
    text-align: center;
    overflow: auto;
    background-color: #1a1a1a;
}

.carousel-slide img {
    max-width: 100%;
    max-height: none;
    width: auto;
    height: auto;
    object-fit: contain;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
}

.carousel-controls {
    position: absolute;
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 1rem;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
}

.carousel-control {
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    padding: 1rem;
    font-size: 1.5rem;
    cursor: pointer;
    border-radius: 50%;
    transition: background-color 0.3s ease;
    pointer-events: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
}

.carousel-control svg {
    width: 24px;
    height: 24px;
    stroke: white;
    transition: stroke 0.3s ease;
}

.carousel-control:hover {
    background: rgba(0, 0, 0, 0.8);
}

.carousel-control:hover svg {
    stroke: #f97316;
}

.carousel-indicators {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.5rem;
    pointer-events: auto;
}

.carousel-indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.5);
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.carousel-indicator.active {
    background: #f97316;
}

/* Responsive styles for carousel */
@media (max-width: 768px) {
    .carousel-modal-content {
        width: 95%;
        height: 80vh;
        margin: 10vh auto;
    }

    .carousel-control {
        padding: 0.75rem;
        font-size: 1.25rem;
    }

    .carousel-modal-title {
        font-size: 1.25rem;
    }
}

@media (max-width: 480px) {
    .carousel-modal-content {
        width: 95%;
        height: 70vh;
        margin: 15vh auto;
    }

    .carousel-control {
        padding: 0.5rem;
        font-size: 1rem;
    }

    .carousel-modal-title {
        font-size: 1rem;
    }
}

/* Mobile Menu */
.burger {
    display: none;
    cursor: pointer;
    z-index: 1001;
}

.burger div {
    width: 25px;
    height: 3px;
    background-color: #ffffff;
    margin: 5px;
    transition: all 0.3s ease;
}

/* Media Queries */
@media (max-width: 1024px) {
    .container {
        max-width: 90%;
    }
    
    .hero h1 {
        font-size: 3rem;
    }
    
    .hero .subtitle {
        font-size: 1.3rem;
    }
    
    .skills-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    body {
        overflow-x: hidden;
    }
    
    .container {
        margin-top: 120px;
        width: 100%;
        max-width: 100%;
        padding: 0 1rem;
    }
    
    .nav-container {
        padding: 0 1rem;
    }
    
    .burger {
        display: block;
    }
    
    .nav-links {
        position: fixed;
        top: 100px;
        right: -100%;
        width: 100%;
        height: calc(100vh - 100px);
        background-color: #27272a;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        padding-top: 2rem;
        transition: right 0.5s ease;
    }
    
    .nav-links.active {
        right: 0;
    }
    
    .nav-links li {
        margin: 1rem 0;
    }
    
    .nav-links a {
        font-size: 1.2rem;
    }
    
    /* Burger animation */
    .nav-active .line1 {
        transform: rotate(-45deg) translate(-5px, 6px);
    }
    
    .nav-active .line2 {
        opacity: 0;
    }
    
    .nav-active .line3 {
        transform: rotate(45deg) translate(-5px, -6px);
    }
    
    .hero-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .hero-text {
        align-items: center;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero .subtitle {
        font-size: 1.2rem;
    }
    
    .profile-image {
        max-width: 300px;
        margin: 0 auto;
    }
    
    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .skills-grid {
        grid-template-columns: 1fr;
    }
    
    .works-grid .grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .carousel-modal-content {
        width: 90%;
        padding: 1rem;
    }
    
    .carousel-control {
        width: 40px;
        height: 40px;
    }
    
    .carousel-modal-title {
        font-size: 1.2rem;
    }
    
    .contact-content {
        flex-direction: column;
        gap: 2rem;
    }
    
    .contact-info {
        text-align: center;
    }
    
    .contact-details {
        justify-content: center;
    }
    
    .social-container {
        padding: 0 1rem;
    }
}

@media (max-width: 480px) {
    .container {
        margin-top: 100px;
    }
    
    .nav-brand {
        font-size: 1.2rem;
    }
    
    .nav-subtitle {
        font-size: 0.7rem;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero .subtitle {
        font-size: 1rem;
    }
    
    .works-grid .grid {
        grid-template-columns: 1fr;
    }
    
    .carousel-modal-content {
        width: 95%;
        padding: 0.5rem;
    }
    
    .carousel-control {
        width: 30px;
        height: 30px;
    }
    
    .carousel-modal-title {
        font-size: 1rem;
    }
    
    .skill-tag {
        font-size: 0.8rem;
        padding: 0.3rem 0.6rem;
    }
    
    .social-icon {
        width: 35px;
        height: 35px;
    }
    
    .resume-button {
        padding: 0.5rem 1rem;
        font-size: 0.8rem;
    }
}

/* Animation for mobile menu */
@keyframes navLinkFade {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Toggle class for mobile menu */
.nav-active {
    transform: translateX(-8px);
}

.nav-active .line1 {
    transform: rotate(-45deg) translate(-5px, 6px);
}

.nav-active .line2 {
    opacity: 0;
}

.nav-active .line3 {
    transform: rotate(45deg) translate(-5px, -6px);
}
