/* CSS Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #ffffff;
    background-color: #000000;
    font-weight: 500;
    overflow-x: hidden;
    width: 100%;
}

/* Mobile-first responsive design */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Navigation */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    background: #000000;
    z-index: 1000;
    padding: 1rem 0;
    border-bottom: 4px solid #90ee90;
    box-shadow: 0 4px 0 #ffffff;
}

nav.scrolled {
    background: #000000;
    border-bottom: 4px solid #ffffff;
}

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

.logo {
    font-weight: 900;
    font-size: 1.5rem;
    color: #90ee90;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 2px;
    border: 3px solid #90ee90;
    padding: 0.5rem 1rem;
    background: #000000;
    transform: rotate(-2deg);
    transition: all 0.2s ease;
}

.logo:hover {
    transform: rotate(0deg);
    background: #90ee90;
    color: #000000;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-menu a {
    text-decoration: none;
    color: #ffffff;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: 2px solid #ffffff;
    padding: 0.5rem 1rem;
    background: #000000;
    transition: all 0.2s ease;
}

.nav-menu a:hover {
    background: #ffffff;
    color: #000000;
    transform: translateY(-2px);
    box-shadow: 4px 4px 0 #90ee90;
}

.mobile-menu-toggle {
    display: block;
    background: #000000;
    border: 3px solid #ffffff;
    font-size: 1.5rem;
    cursor: pointer;
    color: #ffffff;
    padding: 0.5rem 0.75rem;
    font-weight: 900;
    transition: all 0.2s ease;
    -webkit-tap-highlight-color: transparent;
}

.mobile-menu-toggle:hover,
.mobile-menu-toggle:active {
    background: #ffffff;
    color: #000000;
}

.mobile-menu-toggle i {
    transition: transform 0.3s ease;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: #000000;
    color: white;
    text-align: center;
    padding: 2rem 0;
    border-bottom: 8px solid #90ee90;
    position: relative;
    width: 100%;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: repeating-linear-gradient(
        45deg,
        transparent,
        transparent 10px,
        rgba(0, 255, 0, 0.1) 10px,
        rgba(0, 255, 0, 0.1) 20px
    );
    pointer-events: none;
}

.hero-content h1 {
    font-size: 3rem;
    font-weight: 900;
    margin-bottom: 1rem;
    animation: fadeInUp 1s ease-out;
    text-transform: uppercase;
    letter-spacing: 4px;
    text-shadow: 4px 4px 0 #90ee90;
    transform: rotate(-1deg);
    position: relative;
    z-index: 1;
}

.hero-content .subtitle {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    animation: fadeInUp 1s ease-out 0.2s both;
    text-transform: uppercase;
    letter-spacing: 2px;
    border: 3px solid #ffffff;
    padding: 0.5rem 1rem;
    background: #000000;
    display: inline-block;
    transform: rotate(1deg);
    position: relative;
    z-index: 1;
}

.hero-content .location {
    font-size: 1.125rem;
    margin-bottom: 2rem;
    animation: fadeInUp 1s ease-out 0.4s both;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    z-index: 1;
}

.cta-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
    animation: fadeInUp 1s ease-out 0.6s both;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    text-decoration: none;
    font-weight: 900;
    transition: all 0.2s ease;
    border: 4px solid;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 1rem;
    position: relative;
    z-index: 1;
}

.btn-primary {
    background: #90ee90;
    color: #000000;
    border-color: #000000;
    box-shadow: 6px 6px 0 #ffffff;
}

.btn-primary:hover {
    background: #000000;
    color: #ffffff;
    border-color: #90ee90;
    transform: translate(-2px, -2px);
    box-shadow: 8px 8px 0 #90ee90;
}

.btn-secondary {
    background: #000000;
    color: #ffffff;
    border-color: #ffffff;
    box-shadow: 6px 6px 0 #90ee90;
}

.btn-secondary:hover {
    background: #90ee90;
    color: #000000;
    border-color: #000000;
    transform: translate(-2px, -2px);
    box-shadow: 8px 8px 0 #ffffff;
}

/* Section Styles */
section {
    padding: 4rem 0;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 900;
    margin-bottom: 3rem;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 3px;
    position: relative;
    display: inline-block;
    width: 100%;
}

.section-title::after {
    content: '';
    display: block;
    width: 100px;
    height: 6px;
    background: #90ee90;
    margin: 1rem auto;
    border: 2px solid #ffffff;
}

.section-title::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: calc(100% + 2rem);
    height: calc(100% + 1rem);
    border: 3px solid #90ee90;
    z-index: -1;
    background: #000000;
}

/* About Section */
.about {
    background: #000000;
    border-top: 8px solid #ffffff;
    border-bottom: 8px solid #90ee90;
}

.about-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.about-text {
    font-size: 1.125rem;
    line-height: 1.8;
    color: #ffffff;
    margin-bottom: 2rem;
    font-weight: 500;
    border: 3px solid #ffffff;
    padding: 2rem;
    background: #000000;
    position: relative;
}

.about-text::before {
    content: '';
    position: absolute;
    top: -6px;
    left: -6px;
    right: -6px;
    bottom: -6px;
    background: #333333;
    z-index: -1;
}

/* Stat Items - New classes for inline styles */
.stat-item h3 {
    color: #90ee90;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.stat-item p {
    color: #ffffff;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Experience Section */
.experience-item {
    background: #1a1a1a;
    padding: 2rem;
    margin-bottom: 2rem;
    border: 3px solid #ffffff;
    position: relative;
    transform: rotate(-0.5deg);
    transition: all 0.3s ease;
}

.experience-item:nth-child(even) {
    transform: rotate(0.5deg);
}

.experience-item:hover {
    transform: rotate(0deg) scale(1.02);
    border-color: #90ee90;
}

.experience-item::before {
    content: '';
    position: absolute;
    top: -6px;
    left: -6px;
    right: -6px;
    bottom: -6px;
    background: #333333;
    z-index: -1;
}

.experience-item h3 {
    font-size: 1.5rem;
    font-weight: 900;
    color: #ffffff;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.experience-item .company {
    font-size: 1.25rem;
    color: #90ee90;
    font-weight: 700;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.experience-item .duration {
    color: #ffffff;
    font-size: 1rem;
    margin-bottom: 1rem;
    font-weight: 700;
    border: 2px solid #666666;
    padding: 0.25rem 0.5rem;
    display: inline-block;
    background: #333333;
}

.experience-item p {
    color: #ffffff;
    line-height: 1.6;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

/* Skills Section */
.skills {
    background: #000000;
    border-top: 8px solid #90ee90;
    border-bottom: 8px solid #ffffff;
}

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

.skill-category {
    background: #1a1a1a;
    padding: 2rem;
    text-align: center;
    border: 3px solid #ffffff;
    position: relative;
    transform: rotate(-0.5deg);
}

.skill-category:nth-child(even) {
    transform: rotate(0.5deg);
}

.skill-category:hover {
    transform: rotate(0deg);
    border-color: #90ee90;
}

.skill-category::before {
    content: '';
    position: absolute;
    top: -6px;
    left: -6px;
    right: -6px;
    bottom: -6px;
    background: #333333;
    z-index: -1;
}

.skill-category h3 {
    font-size: 1.5rem;
    font-weight: 900;
    color: #ffffff;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
}

.skill-tag {
    background: #000000;
    color: #ffffff;
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
    font-weight: 700;
    border: 3px solid #ffffff;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.2s ease;
}

.skill-tag:hover {
    background: #90ee90;
    color: #000000;
    border-color: #000000;
    transform: rotate(-2deg);
}

/* Education & Certifications */
.education-item, .cert-item {
    background: #1a1a1a;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    border: 3px solid #ffffff;
    position: relative;
    transform: rotate(-0.5deg);
}

.education-item:nth-child(even), .cert-item:nth-child(even) {
    transform: rotate(0.5deg);
}

.education-item::before, .cert-item::before {
    content: '';
    position: absolute;
    top: -6px;
    left: -6px;
    right: -6px;
    bottom: -6px;
    background: #333333;
    z-index: -1;
}

.education-item h3, .cert-item h3 {
    font-size: 1.25rem;
    font-weight: 900;
    color: #ffffff;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.education-item .institution, .cert-item .issuer {
    color: #90ee90;
    font-weight: 700;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
}

.education-item .year, .cert-item .date {
    color: #ffffff;
    font-size: 1rem;
    font-weight: 700;
    border: 2px solid #666666;
    padding: 0.25rem 0.5rem;
    display: inline-block;
    background: #333333;
}

/* Languages Section Heading - New class for inline style */
.languages-heading {
    margin: 2rem 0 1rem 0;
    color: #ffffff;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 2px;
    border: 3px solid #90ee90;
    padding: 1rem;
    background: #000000;
    display: inline-block;
}

/* Contact Section */
.contact {
    background: #000000;
    color: white;
    text-align: center;
    border-top: 8px solid #ffffff;
}

.contact .section-title {
    color: white;
}

.contact-links {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    align-items: center;
    margin-top: 2rem;
}

.contact-link {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    color: #ffffff;
    text-decoration: none;
    font-size: 1.125rem;
    padding: 1.5rem 2rem;
    background: #000000;
    border: 4px solid #ffffff;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    transform: rotate(-1deg);
    transition: all 0.2s ease;
}

.contact-link:nth-child(even) {
    transform: rotate(1deg);
}

.contact-link::before {
    content: '';
    position: absolute;
    top: -6px;
    left: -6px;
    right: -6px;
    bottom: -6px;
    background: #333333;
    z-index: -1;
}

.contact-link:hover {
    background: #90ee90;
    color: #000000;
    border-color: #000000;
    transform: rotate(0deg) scale(1.05);
}

.contact-link:hover::before {
    background: #90ee90;
}

/* Footer */
footer {
    background: #000000;
    color: #ffffff;
    text-align: center;
    padding: 2rem 0;
    border-top: 4px solid #90ee90;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Tablet Styles */
@media (min-width: 768px) {
    .container {
        padding: 0 2rem;
    }

    .nav-menu {
        display: flex;
    }

    .mobile-menu-toggle {
        display: none;
    }

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

    .hero-content .subtitle {
        font-size: 1.5rem;
    }

    .cta-buttons {
        flex-direction: row;
        justify-content: center;
    }

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

    .contact-links {
        flex-direction: row;
        justify-content: center;
        flex-wrap: wrap;
    }
}

/* Desktop Styles */
@media (min-width: 1024px) {
    .hero-content h1 {
        font-size: 4rem;
    }

    .skills-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .about-content {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 3rem;
        text-align: left;
        align-items: center;
    }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Focus styles for accessibility */
.btn:focus,
.nav-menu a:focus,
.contact-link:focus {
    outline: 4px solid #90ee90;
    outline-offset: 4px;
}

/* Mobile Styles */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        width: calc(100% - 8px);
        margin: 0 4px;
        background: #000000;
        flex-direction: column;
        padding: 2rem 0;
        transform: translateY(-150%);
        opacity: 0;
        transition: transform 0.3s ease, opacity 0.3s ease;
        border: 4px solid #90ee90;
        border-top: none;
        z-index: 999;
        pointer-events: none;
        max-height: calc(100vh - 70px);
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    .nav-menu.mobile-active {
        transform: translateY(0);
        opacity: 1;
        pointer-events: auto;
    }

    .nav-menu li {
        width: 100%;
        text-align: center;
        padding: 0 1rem;
        margin-bottom: 1rem;
    }

    .nav-menu a {
        display: block;
        width: 100%;
        padding: 1rem 1.5rem;
        font-size: 1.125rem;
        -webkit-tap-highlight-color: transparent;
        touch-action: manipulation;
    }

    .nav-menu a:active {
        transform: scale(0.98);
    }

    .hero {
        padding-top: 6rem;
        min-height: 100vh;
    }

    .hero-content h1 {
        font-size: 2.5rem;
        letter-spacing: 2px;
    }

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

    .cta-buttons {
        flex-direction: column;
        gap: 1.5rem;
    }

    .about-content {
        flex-direction: column;
    }

    .about-stats {
        margin-top: 2rem;
    }

    .contact-links {
        gap: 1.5rem;
        padding: 0 0.5rem;
    }

    .contact-link {
        font-size: 0.875rem;
        padding: 1rem 1rem;
        gap: 0.5rem;
        letter-spacing: 0.5px;
        border-width: 3px;
        word-break: break-word;
        overflow-wrap: break-word;
        max-width: 100%;
        box-sizing: border-box;
        transform: rotate(0deg);
        -webkit-tap-highlight-color: transparent;
        touch-action: manipulation;
    }

    .contact-link:nth-child(even) {
        transform: rotate(0deg);
    }

    .contact-link i {
        flex-shrink: 0;
        font-size: 1.25rem;
    }

    .experience-item,
    .skill-category,
    .education-item,
    .cert-item {
        transform: rotate(0deg);
    }

    .logo {
        font-size: 1.25rem;
        letter-spacing: 1px;
        padding: 0.25rem 0.75rem;
    }

    .section-title {
        font-size: 2rem;
        letter-spacing: 2px;
    }

    .section-title::before {
        width: calc(100% + 1rem);
        left: 50%;
        transform: translate(-50%, -50%);
    }

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

/* Extra small mobile devices */
@media (max-width: 480px) {
    .contact-link {
        font-size: 0.75rem;
        padding: 0.875rem 0.75rem;
        gap: 0.375rem;
        letter-spacing: 0px;
        flex-direction: column;
        text-align: center;
    }

    .contact-link i {
        font-size: 1.5rem;
        margin-bottom: 0.25rem;
    }

    .container {
        padding: 0 0.75rem;
    }

    .section-title::before {
        width: 100%;
        border-width: 2px;
    }

    .section-title {
        font-size: 1.75rem;
        letter-spacing: 1px;
    }

    .hero {
        padding-top: 5.5rem;
    }

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

@media (min-width: 769px) {
    .nav-menu {
        display: flex;
    }

    .mobile-menu-toggle {
        display: none;
    }

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

@media (min-width: 1024px) {
    .skills-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .about-content {
        display: flex;
        align-items: center;
        gap: 3rem;
    }

    .about-text {
        flex: 2;
    }

    .about-stats {
        flex: 1;
        display: flex;
        flex-direction: column;
        gap: 1rem;
    }
}

