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

@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@100;300;400;500;600;700;900&display=swap');

body {
    font-family: 'Roboto', sans-serif;
    background-color: #0C0C0C;
    color: #ffffff;
    overflow-x: hidden;
    min-height: 100vh;
}

/* Header Styles */
/* Promo banner above the header */
.promo-banner {
    background-color: #ffffff;
    color: #0C0C0C;
    padding: 10px 12px;
    text-align: center;
    font-weight: 600;
    position: sticky;
    top: 0;
    z-index: 120;
    border-bottom: 1px solid rgba(0,0,0,0.06);
}

header {
    background-color: #000000;
    padding: 1rem 2rem;
    position: sticky;
    top: 38px; /* space for promo banner */
    z-index: 110;
    border-bottom: 1px solid #1a1a1a;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.3rem;
    font-weight: 700;
    color: #ffffff;
    text-decoration: none;
    letter-spacing: 2px;
    display: flex;
    align-items: center;
}

.logo-img {
    width: 35px;
    height: 35px;
    border-radius: 6px;
    object-fit: cover;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 2.5rem;
    margin: 0;
    padding: 0;
}

.nav-links a {
    color: #ffffff;
    text-decoration: none;
    font-size: 0.95rem;
    letter-spacing: 0.5px;
    transition: color 0.3s ease;
    position: relative;
    font-weight: 600;
}

.nav-links a:hover,
.nav-links a.active {
    color: #cccccc;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 1px;
    background-color: #ffffff;
    transition: width 0.3s ease;
}

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

.hamburger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    font-size: 1.5rem;
    color: #ffffff;
}

.hamburger i {
    transition: transform 0.3s ease;
}

.hamburger.active i {
    transform: rotate(90deg);
}

/* Hero Section */
.hero {
    background-color: #0C0C0C;
    min-height: calc(100vh - 80px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4rem 2rem;
    position: relative;
    overflow: hidden;
}

.hero-background-text {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    filter: blur(4px);
    overflow: hidden;
}

.bg-text {
    position: absolute;
    font-size: 8.5rem;
    font-weight: 800;
    color: transparent;
    -webkit-text-stroke: 2px rgba(255, 255, 255, 0.15);
    letter-spacing: 3px;
    text-transform: uppercase;
    white-space: nowrap;
    user-select: none;
}

.bg-text:nth-child(1) {
    top: 10%;
    left: 5%;
    font-size: 7rem;
}

.bg-text:nth-child(2) {
    top: 35%;
    right: 10%;
    font-size: 6rem;
}

.bg-text:nth-child(3) {
    bottom: 30%;
    left: 15%;
    font-size: 8rem;
}

.bg-text:nth-child(4) {
    bottom: 10%;
    right: 5%;
    font-size: 7.5rem;
}

.hero-content {
    max-width: 900px;
    position: relative;
    z-index: 1;
}

.hero h1 {
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 1rem;
    letter-spacing: -1px;
}

.name {
    color: #ffffff;
}

.subtitle {
    font-size: 1.2rem;
    color: #999999;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.hero-socials {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

.hero-socials a {
    color: #ffffff;
    font-size: 1.5rem;
    transition: all 0.3s ease;
}

.hero-socials a:hover {
    color: #cccccc;
    transform: translateY(-3px);
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.btn {
    padding: 1rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 2px;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    letter-spacing: 0.5px;
}

.btn-primary {
    background-color: #ffffff;
    color: #0C0C0C;
}

.btn-primary:hover {
    background-color: #0C0C0C;
    color: #ffffff;
    border: 1px solid #ffffff;
    padding: calc(1rem - 1px) calc(2rem - 1px);
}

.btn-secondary {
    background-color: transparent;
    color: #ffffff;
    border: 1px solid #666666;
}

.btn-secondary:hover {
    background-color: #ffffff;
    color: #0C0C0C;
}

/* Projects Section */
.projects {
    padding: 4rem 2rem;
    background-color: #0C0C0C;
    min-height: calc(100vh - 80px);
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h1 {
    font-size: 3rem;
    font-weight: 700;
    letter-spacing: 1px;
}

.category-nav {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 3rem;
}

.cat-btn {
    background-color: transparent;
    color: #999999;
    border: none;
    padding: 0.6rem 1.5rem;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    font-weight: 500;
}

.cat-btn:hover,
.cat-btn.active {
    color: #ffffff;
}

.cat-btn.active::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    right: 0;
    height: 2px;
    background-color: #ffffff;
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem;
    max-width: 1400px;
    margin: 0 auto;
}

.project-item {
    background-color: #1a1a1a;
    border: 1px solid #333333;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
    display: flex;
    flex-direction: column;
}

.project-item:hover {
    transform: translateY(-6px);
    border-color: #666666;
    box-shadow: 0 12px 40px rgba(255, 255, 255, 0.1);
}

.project-image {
    width: 100%;
    height: 280px;
    background-color: #0a0a0a;
    overflow: hidden;
}

.project-image img,
.project-image video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.project-item:hover .project-image img,
.project-item:hover .project-image video {
    transform: scale(1.05);
}

.project-details {
    padding: 2rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.project-details h3 {
    font-size: 1.3rem;
    margin-bottom: 0.8rem;
    font-weight: 700;
    color: #ffffff;
}

.project-details p {
    color: #b0b0b0;
    font-size: 0.95rem;
    margin-bottom: 1.2rem;
    flex: 1;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.tag {
    background-color: transparent;
    padding: 0.3rem 0.6rem;
    font-size: 0.8rem;
    font-weight: 600;
}

/* Skills Section */
.skills {
    padding: 4rem 2rem;
    background-color: #0C0C0C;
    min-height: calc(100vh - 80px);
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2.5rem;
    max-width: 1000px;
    margin: 0 auto;
}

.skill-item {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    animation: skillFadeIn 0.6s ease-out forwards;
    opacity: 0;
}

.skill-item:nth-child(1) { animation-delay: 0.1s; }
.skill-item:nth-child(2) { animation-delay: 0.2s; }
.skill-item:nth-child(3) { animation-delay: 0.3s; }
.skill-item:nth-child(4) { animation-delay: 0.4s; }
.skill-item:nth-child(5) { animation-delay: 0.5s; }
.skill-item:nth-child(6) { animation-delay: 0.6s; }
.skill-item:nth-child(7) { animation-delay: 0.7s; }
.skill-item:nth-child(8) { animation-delay: 0.8s; }

@keyframes skillFadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

.skill-icon-name {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.skill-icon-name i {
    font-size: 1.5rem;
    transition: transform 0.3s ease;
}

.skill-item:hover .skill-icon-name i {
    transform: scale(1.2) rotate(10deg);
}

.skill-name {
    color: #ffffff;
    font-size: 1rem;
    font-weight: 600;
}

.skill-meta {
    display: flex;
    gap: 0.8rem;
    flex-wrap: wrap;
}

.skill-percent {
    background: #000000;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-weight: 700;
    font-size: 0.95rem;
    color: #ffffff;
}

.skill-proficiency {
    background: #000000;
    padding: 0.4rem 0.9rem;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    color: #ffffff;
    transition: all 0.3s ease;
}

.skill-item:hover .skill-proficiency {
    background: #1a1a1a;
    border-color: rgba(255, 255, 255, 0.5);
    transform: scale(1.05);
}

.skill-bar {
    width: 100%;
    height: 8px;
    background-color: #1a1a1a;
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    overflow: hidden;
}

.skill-fill {
    height: 100%;
    border-radius: 4px;
    transition: width 0.8s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.2);
}

/* Contact Section */
.contact {
    padding: 4rem 2rem;
    background-color: #0C0C0C;
    min-height: calc(100vh - 80px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.contact-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4rem;
    max-width: 900px;
    width: 100%;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-socials {
    text-align: center;
}

.contact-cv {
    text-align: center;
}

.info-item {
    display: flex;
    gap: 1.5rem;
}

.info-item i {
    font-size: 2rem;
    width: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
}

.info-item h3 {
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    color: #ffffff;
}

.info-item a,
.info-item p {
    color: #999999;
    text-decoration: none;
    transition: color 0.3s ease;
}

.info-item a:hover {
    color: #ffffff;
    text-decoration: none;
}

.contact-socials {
    text-align: center;
}

.contact-socials h2 {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    color: #ffffff;
}

.social-links {
    display: flex;
    gap: 2rem;
    justify-content: center;
    flex-wrap: wrap;
}

.social-links a {
    width: 60px;
    height: 60px;
    border: 2px solid #666666;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 1.5rem;
    transition: all 0.3s ease;
    text-decoration: none;
}

.social-links a:hover {
    border-color: #ffffff;
    background-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-5px);
    text-decoration: none;
}

.contact-cv {
    text-align: center;
}

/* Modal */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(5px);
    z-index: 2000;
    align-items: center;
    justify-content: center;
}

.modal-overlay.active {
    display: flex;
}

.modal-content {
    background: linear-gradient(135deg, #1a1a1a 0%, #0a0a0a 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    width: 95%;
    max-width: 900px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    animation: modalSlideIn 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

@keyframes modalSlideIn {
    from {
        transform: translateY(50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: transparent;
    color: #ffffff;
    border: none;
    width: 40px;
    height: 40px;
    font-size: 1.8rem;
    cursor: pointer;
    z-index: 2001;
    transition: all 0.3s ease;
}

.modal-close:hover {
    color: #cccccc;
    transform: scale(1.1);
}

.modal-header {
    padding: 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    background: #000000;
}

.modal-header h2 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
    color: #ffffff;
}

.modal-header p {
    color: #999999;
}

.modal-body {
    padding: 2rem;
}

.cv-embed-container {
    width: 100%;
    height: 500px;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background-color: #0a0a0a;
}

.canva-iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* Project Modal */
.modal-project {
    max-width: 800px;
}

.modal-image {
    width: 100%;
    height: 400px;
    background-color: #0a0a0a;
    overflow: hidden;
}

.modal-image img,
.modal-image video {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.modal-details {
    padding: 3rem;
    color: #ffffff;
}

.modal-details h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.modal-desc {
    color: #b0b0b0;
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 2rem;
}

.modal-details h4 {
    color: #ffffff;
    font-size: 1rem;
    margin-top: 1.5rem;
    margin-bottom: 0.8rem;
    font-weight: 600;
}

.modal-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-bottom: 2rem;
}

.modal-tag {
    background-color: transparent;
    padding: 0.3rem 0.6rem;
    font-size: 0.85rem;
    font-weight: 600;
}

.modal-links {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.modal-link {
    flex: 1;
    background-color: #ffffff;
    color: #000000;
    text-decoration: none;
    padding: 0.8rem 1.5rem;
    border-radius: 4px;
    font-weight: 600;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid #ffffff;
}

.modal-link:hover {
    background-color: transparent;
    color: #ffffff;
}

/* Scrollbar Styling */
.modal-content::-webkit-scrollbar {
    width: 8px;
}

.modal-content::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
}

.modal-content::-webkit-scrollbar-thumb {
    background: rgba(102, 126, 234, 0.5);
    border-radius: 4px;
}

.modal-content::-webkit-scrollbar-thumb:hover {
    background: rgba(102, 126, 234, 0.8);
}

/* Responsive */
@media (max-width: 768px) {
    header {
        padding: 1rem;
    }

    .hamburger {
        display: block;
    }

    .nav-links {
        position: fixed;
        top: 60px;
        left: 0;
        right: 0;
        background-color: #000000;
        flex-direction: column;
        gap: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
        border-bottom: 1px solid #333333;
    }

    .nav-links.active {
        max-height: 400px;
        padding: 1.5rem 0;
    }

    .nav-links li {
        padding: 0.8rem 1.5rem;
        border-bottom: 1px solid #333333;
    }

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

    .nav-links a {
        display: block;
    }

    .logo-img {
        width: 28px;
        height: 28px;
    }

    .hero h1 {
        font-size: 3rem;
    }

    .bg-text {
        font-size: 4rem !important;
    }

    .section-header h1 {
        font-size: 2.5rem;
    }

    .project-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .skills-grid {
        grid-template-columns: 1fr;
    }

    .contact-content {
        flex-direction: column;
        gap: 2rem;
    }

    .modal-content {
        width: 95%;
    }

    .modal-details {
        padding: 2rem;
    }

    .modal-details h2 {
        font-size: 1.5rem;
    }

    .modal-image {
        height: 300px;
    }

    .modal-close {
        color: #ffffff;
    }

    .modal-close:hover {
        color: #ffffff;
    }
}

@media (max-width: 480px) {
    header {
        padding: 0.8rem 0.5rem;
    }

    .nav-container {
        padding: 0 1rem;
    }

    .logo-img {
        width: 24px;
        height: 24px;
    }

    .hamburger {
        font-size: 1.2rem;
    }

    .hero {
        padding: 2rem 1rem;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .subtitle {
        font-size: 1rem;
    }

    .bg-text {
        font-size: 3rem !important;
    }

    .section-header h1 {
        font-size: 2rem;
    }

    .project-image {
        height: 200px;
    }

    .project-details {
        padding: 1.5rem;
    }

    .modal-details {
        padding: 1.5rem;
    }

    .modal-links {
        flex-direction: column;
    }

    .contact-content {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .modal-close {
        color: #ffffff;
    }

    .modal-close:hover {
        color: #ffffff;
    }
}

* {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

img, video {
    pointer-events: none;
    -webkit-user-drag: none;
    -khtml-user-drag: none;
    -moz-user-drag: none;
    -o-user-drag: none;
    user-drag: none;
}


img, video {
    -webkit-touch-callout: none;
}