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

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
}

/* Header & Navigation */
header {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 1rem 0;
    transition: all 0.3s ease;
}

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

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: #dc2626;
}

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

.nav-links a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: #dc2626;
}

.mobile-menu {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.mobile-menu span {
    width: 25px;
    height: 3px;
    background: #333;
    margin: 3px 0;
    transition: 0.3s;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    color: white;
    position: relative;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
}

.hero-gradient {
    flex: 1;
    background: linear-gradient(135deg, #32292F 0%, #dc2626 70%, rgba(220, 38, 38, 0.8) 100%);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-gradient::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 100px;
    background: linear-gradient(to right, transparent 0%, rgba(220, 38, 38, 0.3) 100%);
}

.hero-image-container {
    display: none;
}

.hero-image-bg {
    flex: 1;
    background-image: url('imgs/ryker.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
}

.hero-image-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    width: 15%;
    background: linear-gradient(to right, rgba(220, 38, 38, 0.3) 0%, transparent 100%);
}

.hero-content {
    max-width: 600px;
    padding: 0 3rem;
    z-index: 2;
    position: relative;
    width: 100%;
}

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

.hero-text h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    opacity: 0;
    animation: slideUp 1s ease 0.5s forwards;
}

.hero-text .subtitle {
    font-size: 1.3rem;
    font-weight: 300;
    margin-bottom: 2rem;
    opacity: 0;
    animation: slideUp 1s ease 0.7s forwards;
}

.hero-text .description {
    font-size: 1.1rem;
    margin-bottom: 3rem;
    opacity: 0;
    animation: slideUp 1s ease 0.9s forwards;
}

.hero-image .profile-image {
    width: 250px;
    height: 250px;
    opacity: 0;
    animation: slideUp 1s ease 1.3s forwards;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    opacity: 0;
    animation: slideUp 1s ease 1.1s forwards;
}

.btn {
    padding: 1rem 2rem;
    border: none;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    line-height: 1;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-primary {
    background: #dc2626;
    box-shadow: 0 0px 10px rgba(0, 0, 0, 0.3);
    color: #fff;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.btn-secondary:hover {
    background: white;
    color: #dc2626;
}

/* About Section */
.about {
    padding: 5rem 0;
    background: #f8fafc;
}

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

.section-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 3rem;
    color: #373737;
}

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

.profile-image {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    border: 4px solid #dc2626;
    box-shadow: 0 8px 32px rgba(220, 38, 38, 0.2);
    cursor: pointer;
    margin-bottom: 2.5rem;
    transition: all 0.3s ease;
}

.profile-image:hover {
    transform: scale(1.05);
    box-shadow: 0 12px 40px rgba(220, 38, 38, 0.3);
    border-color: #f87171;
}

.about-text h3 {
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #dc2626;
}

.about-text p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    color: #64748b;
}

.stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 2rem;
}

.stat {
    text-align: center;
    padding: 1.5rem;
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    transform:
    perspective(800px)
    rotateY(-15deg)
    rotateX(10deg)
    scale(1);
}

.stat-left { }

.stat-shine {
    position: absolute;
    top: 0;
    left: -70px;
    height: 100%;
    width: 60%;
    background: rgba(255, 255, 255, 0);
    filter: blur(10px);
    transition: all .6s ease;
    transform: skewX(-40deg) translateX(-100%);
}
  
.stat:hover {
    transform: scale(1.1);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
    border-color: #f87171;
}

.stat:hover .stat-shine {
    background: rgba(255, 255, 255, 0.15);
    transform: skewX(-40deg) translateX(350%);
}

.stat-special {
    background: linear-gradient(135deg, rgba(220, 38, 38, 0.8) 0%, #dc2626 70%, rgba(220, 38, 38, 0.8) 100%);
    border-radius: 10px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
    color: #fff;
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: #dc2626;
    display: block;
}

.stat-label {
    font-size: 0.9rem;
    color: #64748b;
    margin-top: 0.5rem;
}

.special {
    color: #fff !important;
}

/* Skills Section */
.skills {
    padding: 5rem 0;
    background: white;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.skill-card {
    background: #f8fafc;
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease !important;
}

.skill-card:hover {
    transform: translateY(-3px) !important;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.skill-icon {
    font-size: 3rem;
    color: #dc2626;
    margin-bottom: 1rem;
}

.skill-card h4 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #373737;
}

/* Desktop: Show all content by default */
.skill-card-header {
    display: block;
}

.skill-card-arrow {
    display: none;
}

.project-card-header {
    display: block;
}

.project-card-arrow {
    display: none;
}

.project-content {
    display: block;
}

.skill-card p {
    color: #64748b;
    font-size: 0.95rem;
}

/* Projects Section */
.projects {
    padding: 5rem 0;
    background: #f8fafc;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.project-card {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    border: 1px solid #e2e8f0;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.project-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.project-header h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: #272727;
    margin: 0;
    flex: 1;
    min-width: 200px;
}

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

.tag {
    background: #dc2626;
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 500;
}

.project-card img {
    width: 100%;
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    margin: 1rem 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border: 1px solid #e2e8f0;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-card img:hover {
    transform: scale(1.02);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.project-description {
    color: #64748b;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.code-snippet {
    background: #f8fafc;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 1.5rem;
    border: 1px solid #e2e8f0;
}

.code-header {
    background: #dc2626;
    padding: 0.8rem 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #dc2626;
    cursor: pointer;
    transition: background 0.3s ease;
}

.code-toggle {
    color: #fff;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

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

.code-snippet.expanded .code-toggle i {
    transform: rotate(180deg);
}

.code-content {
    position: relative;
}

.code-lang {
    color: #fff;
    font-weight: 500;
    font-size: 0.9rem;
}

.code-name {
    color: #cfddee;
    font-weight: 500;
    font-size: 0.9rem;
}

.copy-btn {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: #475569;
    color: white;
    border: none;
    padding: 0.4rem 0.8rem;
    border-radius: 5px;
    font-size: 0.8rem;
    cursor: pointer;
    transition: background 0.3s ease;
    z-index: 10;
}

.copy-btn:hover {
    background: #64748b;
}

.code-snippet pre {
    margin: 0;
    padding: 1rem;
    overflow-x: auto;
    background: transparent;
}

.code-snippet code {
    color: #404040;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 0.75rem;
    line-height: 1.1;
    white-space: pre-wrap;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.project-links {
    display: flex;
    gap: 1rem;
}

.project-link {
    color: #dc2626;
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border: 2px solid #dc2626;
    border-radius: 25px;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.project-link:hover {
    background: #dc2626;
    color: white;
    transform: translateY(-2px);
}

.project-content-images {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Lightbox Modal */
.lightbox {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(5px);
    cursor: pointer;
}

.lightbox-content {
    display: block;
    margin: auto;
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 10px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
    cursor: default;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: white;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    z-index: 10001;
    transition: color 0.3s ease;
}

.lightbox-close:hover,
.lightbox-close:focus {
    color: #f87171;
}

.lightbox-caption {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    text-align: center;
    font-size: 1.1rem;
    background: rgba(0, 0, 0, 0.7);
    padding: 1rem 2rem;
    border-radius: 25px;
    backdrop-filter: blur(10px);
}

/* Lightbox Animation */
.lightbox.show {
    display: block;
    animation: fadeIn 0.3s ease;
}

.lightbox.show .lightbox-content {
    animation: zoomIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes zoomIn {
    from { 
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.8);
    }
    to { 
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}

.contact {
    padding: 5rem 0;
    background: linear-gradient(to right, #2a0f0f, #3b1e1e);
    color: white;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.contact-info-header {
    justify-content: center;
    align-items: center;
    display: grid;
    grid-template-columns: 1fr 1fr;
}

.profile-image-container {
    display: grid;
    justify-content: center;
}

.contact-info h3 {
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 2rem;
    color: #dc2626;
}

.contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
}

.contact-item i {
    font-size: 1.2rem;
    color: #dc2626;
    margin-right: 1rem;
    width: 20px;
}

.contact-form {
    background: #3b1e1e;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 0px 6px rgba(0, 0, 0, 0.25);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border: none;
    border-radius: 8px;
    background: #2a0f0f;
    color: white;
    font-size: 1rem;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #b89494;
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* Footer */
footer {
    background: #481a1a;
    color: white;
    text-align: center;
    padding: 2rem 0;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.social-links a {
    display: inline-block;
    width: 50px;
    height: 50px;
    background: rgb(92, 52, 52);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: #dc2626;
    transform: translateY(-3px);
}

.project-card-title-v {}

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

/* Responsive Design */
@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 70px;
        right: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(10px);
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        padding-top: 2rem;
        transition: right 0.3s ease;
        box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
        z-index: 999;
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links li {
        margin: 1rem 0;
    }

    .nav-links a {
        font-size: 1.2rem;
        padding: 1rem;
        display: block;
        width: 100%;
        text-align: center;
    }

    .mobile-menu {
        display: flex;
    }

    .mobile-menu.active span:nth-child(1) {
        transform: rotate(-45deg) translate(-5px, 6px);
    }

    .mobile-menu.active span:nth-child(2) {
        opacity: 0;
    }

    .mobile-menu.active span:nth-child(3) {
        transform: rotate(45deg) translate(-5px, -6px);
    }

    .hero-background {
        flex-direction: row;
    }

    .hero-gradient {
        flex: 1;
        background: linear-gradient(135deg, #32292F 0%, #dc2626 70%, rgba(220, 38, 38, 0.8) 100%);
        position: relative;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .hero-gradient::before {
        width: 100%;
    }

    .hero-gradient::after {
        background: transparent;
        border: 0px;
    }

    .hero-image {
        width: 200px;
        height: 200px;
        border-radius: 50%;
        border: 4px solid #dc2626;
        box-shadow: 0 8px 32px rgba(220, 38, 38, 0.2);
        cursor: pointer;
        transition: all 0.3s ease;
    }

    .hero-image-container {
        display: flex;
        justify-content: center;
        align-items: center;
        padding-bottom: 2.5rem;
    }

    .hero-image-bg {
        flex: 0;
        opacity: 0;
    }

    .hero-image-bg::before {
        background: linear-gradient(to right, rgba(0, 0, 0, 0.6) 0%, rgba(0, 0, 0, 0.3) 100%);
    }

    .hero {
        position: relative;
        padding-top: 80px;
    }

    .hero::after {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.4);
        z-index: 1;
    }

    .hero-content {
        position: static;
        padding: 0 2rem;
        max-width: none;
        width: 100%;
        z-index: 3;
    }

    .hero-text {
        max-width: none;
    }

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

    .hero-text .subtitle {
        font-size: 1.1rem;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

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

    .stat-left {
        transform:
        perspective(800px)
        rotateY(15deg)
        rotateX(10deg)
        scale(1);
    }    

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

    .skill-card {
        padding: 1rem;
        cursor: pointer;
    }

    .skill-icon {
        font-size: 2rem;
        color: #dc2626;
        margin-bottom: 0;
    }

    .skill-card-arrow {
        display: flex;
        justify-content: center;
        font-size: 1rem;
        color: #242424;
        transition: transform 0.3s ease;
        transform-origin: 35% 0%;
    }

    .skill-card.expanded .skill-card-arrow {
        transform: rotate(90deg) translateY(-10px);
        transform-origin: 35% 0%;
    }
    
    .skill-card h4 {
        font-size: 1.2rem;
        font-weight: 600;
        margin-bottom: 0;
        text-align: center;
        color: #373737;
    }

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

    .skill-card-title {
        display: grid;
        grid-template-columns: 1fr 5fr 1fr;
        align-items: center;
        gap: 1rem;
        flex: 1;
    }

    .skill-card p {
        display: none;
        margin-top: 1rem;
        padding-top: 1rem;
        border-top: 1px solid #e2e8f0;
    }

    .skill-card.expanded p {
        display: block;
    }

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

    .project-card {
        padding: 1rem;
        cursor: pointer;
    }

    .project-icon {
        font-size: 2rem;
        color: #dc2626;
        margin-bottom: 0;
    }

    .project-card-title-v {
        display: grid;
        grid-template-columns: 1fr;
        text-align: left;
    }

    .project-card-arrow {
        display: flex;
        justify-content: center;
        font-size: 1rem;
        color: #242424;
        transition: transform 0.3s ease;
        transform-origin: 35% 0%;
    }

    .project-card.expanded .project-card-arrow {
        transform: rotate(90deg) translateY(-10px);
        transform-origin: 35% 0%;
    }
    
    .project-card h3 {
        font-size: 1.2rem;
        font-weight: 600;
        margin-bottom: 0.5rem;
        color: #272727;
    }

    .project-card-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 0;
    }

    .project-card-title {
        display: grid;
        grid-template-columns: 5fr 1fr;
        align-items: center;
        gap: 1rem;
        flex: 1;
    }

    .project-content {
        display: none;
        margin-top: 1rem;
        padding-top: 1rem;
        border-top: 1px solid #e2e8f0;
    }

    .project-card.expanded .project-content {
        display: block;
    }

    .project-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .code-snippet pre {
        font-size: 0.75rem;
    }

    .contact-info-header {
        justify-content: center;
        align-items: center;
        display: grid;
        grid-template-columns: 1fr 1fr;
    }

    .profile-image-container {
        display: grid;
        justify-content: center;
    }
    
    .profile-image {
        width: 150px;
        height: 150px;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 2rem;
    }

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

    .container {
        padding: 0 1rem;
    }
}
