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

:root {
    --bg: #0f0f0f;
    --fg: #fff;
    --card-1: #b2b2b2;
    --card-2: #ce2017;
    --card-3: #2f2f2f;
    --accent: #ce2017;
    --text-secondary: #b2b2b2;
}
/* scrollbar */
::selection {
    background: var(--accent);
    color: var(--fg);
}
/* scrollbar */
::-webkit-scrollbar {
    width: 5px;
}
::-webkit-scrollbar-track {
    background: var(--bg);
}
::-webkit-scrollbar-thumb {
    background: var(--accent);
    border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
    background: #a01a12;
}
/* general */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    overflow-x: hidden;
}



img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

h1 {
    font-size: 4rem;
    font-weight: 500;
    line-height: 1;

}

P {
    font-size: 2rem;
    font-weight: 500;
    line-height: 1;
}

section {
    position: relative;
    width: 100%;
    height: 100svh;
    padding: 2rem;
    background-color: var(--bg);
    color: var(--fg);
    overflow-y: auto;
}

footer {
    height: auto;
    min-height: auto;
}


/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 1.5rem 2rem;
    background: rgba(15, 15, 15, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

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

.nav-logo {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--fg);
    opacity: 0;
    transform: translateX(-20px);
    transition: all 0.3s ease;
    cursor: pointer;
    letter-spacing: 1px;
}

.nav-logo:hover {
    color: var(--accent);
    transform: translateX(0) scale(1.05);
    text-shadow: 0 0 15px rgba(206, 32, 23, 0.5);
}

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

.nav-menu li {
    opacity: 0;
    transform: translateY(30px) scale(0.8);
}

.nav-menu a {
    color: var(--fg);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    display: inline-block;
    padding: 0.5rem 1rem;
    letter-spacing: 0.5px;
    overflow: hidden;
}

.nav-menu a::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(206, 32, 23, 0.1), transparent);
    transition: left 0.5s ease;
}

.nav-menu a:hover::before {
    left: 100%;
}

.nav-menu a:hover {
    color: var(--accent);
    transform: translateY(-3px) scale(1.05);
    text-shadow: 0 0 20px rgba(206, 32, 23, 0.5);
}

.nav-menu a.active {
    color: var(--accent);
    transform: translateY(-2px) scale(1.03);
    text-shadow: 0 0 15px rgba(206, 32, 23, 0.6);
}

.nav-menu a.active:hover {
    transform: translateY(-3px) scale(1.05);
    text-shadow: 0 0 20px rgba(206, 32, 23, 0.7);
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 0 10px var(--accent);
}

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

.nav-menu a.active::after {
    width: 100%;
    box-shadow: 0 0 15px var(--accent);
}

/* Hero Section */
.intro {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding-top: 80px;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 5rem);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.highlight {
    color: var(--accent);
    display: inline-block;
}

.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.5rem);
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    font-weight: 400;
    line-height: 1.6;
}

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

.btn {
    padding: 1rem 2.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-block;
    font-size: 1rem;
}

.btn-primary {
    background: var(--accent);
    color: var(--fg);
}

.btn-primary:hover {
    background: #a01a12;
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(206, 32, 23, 0.3);
}

.btn-secondary {
    background: transparent;
    color: var(--fg);
    border: 2px solid var(--fg);
}

.btn-secondary:hover {
    background: var(--fg);
    color: var(--bg);
    transform: translateY(-2px);
}

.scroll-indicator {
    position: absolute;
    bottom: 3rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
    animation: bounce 2s infinite;
}

.scroll-indicator i {
    font-size: 1.2rem;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

/* About Section */
.about-section {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4rem 2rem;
    min-height: 100svh;
    height: auto;
    overflow-y: visible;
}

.about-content {
    max-width: 1200px;
    width: 100%;
    position: relative;
    z-index: 1;
    opacity: 1;
    visibility: visible;
}

.about-content h2 {
    font-size: clamp(2.5rem, 4vw, 4rem);
    margin-bottom: 3rem;
    text-align: center;
    opacity: 1;
    visibility: visible;
}

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

.about-text {
    display: block;
}

.about-text p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    opacity: 1;
    visibility: visible;
}

.skills-list {
    display: block;
    opacity: 1;
    visibility: visible;
}

.skills-list h3 {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    color: var(--fg);
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    opacity: 1;
    visibility: visible;
}

.skill-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.skill-item:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-5px);
}

.skill-item i {
    font-size: 2.5rem;
    color: var(--accent);
}

.skill-item span {
    font-size: 0.9rem;
    color: var(--fg);
    font-weight: 500;
}

/* Card Back Enhancements */
.card-back h2 {
    font-size: clamp(1.5rem, 2.5vw, 2rem);
    margin: 0;
    color: var(--fg);
    font-weight: 600;
    line-height: 1.2;
    word-wrap: break-word;
    max-width: 100%;
    padding: 0 0.5rem;
}

.card-back p {
    font-size: clamp(0.85rem, 1.5vw, 1rem);
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
    line-height: 1.6;
    word-wrap: break-word;
    max-width: 100%;
    padding: 0 0.5rem;
}

.project-tags {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 0.5rem;
}

.project-tags span {
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.25);
    border-radius: 20px;
    font-size: clamp(0.7rem, 1.2vw, 0.85rem);
    color: var(--fg);
    font-weight: 500;
    white-space: nowrap;
}

/* Contact Section */
.outro {
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-content {
    text-align: center;
    max-width: 700px;
    width: 100%;
}

.contact-content h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    margin-bottom: 1.5rem;
}

.contact-subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 3rem;
    line-height: 1.6;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.contact-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    font-size: 1.1rem;
}

.contact-item i {
    font-size: 1.5rem;
    color: var(--accent);
}

.contact-item a {
    color: var(--fg);
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-item a:hover {
    color: var(--accent);
}

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

.social-link {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--fg);
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.social-link:hover {
    background: var(--accent);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(206, 32, 23, 0.3);
}

.intro h1,
.outro h1 {
    width: auto;
    margin: 0;
}

.sticky {
    display: flex;
    justify-content: center;
    align-items: center;
}

.sticky-header {
    position: absolute;
    top: 19%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.sticky-header h2 {
    position: relative;
    text-align: center;
    will-change: transform, opacity;
    transform: translateY(40px);
    opacity: 0;
}

.card-container {
    position: relative;
    width: 75%;
    display: flex;
    perspective: 1000px;
    will-change: width;
}

.card {
    position: relative;
    flex: 1;
    aspect-ratio: 5/7;
    transform-style: preserve-3d;
    transform-origin: top;
}

#card-1 {
    border-radius: 20px 0 0 20px;
}

#card-3 {
    border-radius: 0 20px 20px 0;
}

.card-front,
.card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    border-radius: inherit;
    overflow: hidden;
}

.card-back {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    transform: rotateY(180deg);
    padding: 2.5rem 1.5rem;
    gap: 1.2rem;
    overflow: visible;
    box-sizing: border-box;
}

.card-back > span {
    position: absolute;
    top: 1.5rem;
    left: 1.5rem;
    opacity: 0.6;
    font-size: 1.5rem;
    font-weight: 700;
    z-index: 1;
    color: var(--fg);
}

#card-1 .card-back {
    background-color: var(--card-1);
}

#card-2 .card-back {
    background-color: var(--card-2);
}

#card-3 .card-back {
    background-color: var(--card-3);
}

/* media queries */
@media(max-width: 1000px) {
    h2 {
        font-size: 3rem;
    }

    .nav-menu {
        gap: 1rem;
        font-size: 0.9rem;
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

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

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

    .btn {
        width: 100%;
        max-width: 300px;
    }

    .intro h1,
    .outro h1 {
        width: 100%;
    }

    .sticky {
        height: max-content;
        padding: 4rem 2rem;
        flex-direction: column;
    }

    .sticky-header {
        position: relative;
        top: 0;
        left: 0;
        transform: none;
        margin-bottom: 4rem;
    }

    .sticky-header h2 {
        opacity: 1;
    }

    .card-container {
        width: 100%;
        flex-direction: column;
        gap: 2rem;
    }

    .card {
        width: 100%;
        max-width: 400px;
        border-radius: 20px !important;
        margin: 0 auto;
    }

    #card-1,
    #card-2,
    #card-3 {
        transform: none;
    }

    .contact-info {
        font-size: 0.9rem;
    }

    .contact-item {
        flex-direction: column;
        gap: 0.5rem;
    }
}

@media(max-width: 600px) {
    .navbar {
        padding: 1rem;
    }

    .nav-menu {
        gap: 0.5rem;
        font-size: 0.8rem;
    }

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

    .social-links {
        gap: 1rem;
    }

    .social-link {
        width: 45px;
        height: 45px;
    }
}

/* Footer */
.footer {
    background: var(--bg);
    color: var(--fg);
    padding: 4rem 2rem 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 3rem;
    margin-bottom: 3rem;
    padding-bottom: 3rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-brand {
    grid-column: span 1;
}

.footer-logo {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--fg);
    margin-bottom: 1rem;
    opacity: 0;
    transform: translateX(-20px);
    letter-spacing: 1px;
}

.footer-description {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.6;
    max-width: 250px;
}

.footer-links,
.footer-services,
.footer-contact {
    display: flex;
    flex-direction: column;
}

.footer-links h3,
.footer-services h3,
.footer-contact h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: var(--fg);
}

.footer-menu {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-menu li {
    opacity: 0;
    transform: translateY(20px) scale(0.8);
}

.footer-menu a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    display: inline-block;
    position: relative;
    padding-left: 0;
}

.footer-menu a::before {
    content: '→';
    position: absolute;
    left: -20px;
    opacity: 0;
    transition: all 0.3s ease;
    color: var(--accent);
}

.footer-menu a:hover {
    color: var(--accent);
    padding-left: 20px;
    transform: translateX(5px);
}

.footer-menu a:hover::before {
    opacity: 1;
    left: -15px;
}

.footer-contact-info {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.footer-contact-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateX(-20px);
}

.footer-contact-item i {
    color: var(--accent);
    font-size: 1.1rem;
    width: 20px;
}

.footer-contact-item:hover {
    color: var(--accent);
    transform: translateX(5px);
}

.footer-social-links {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.footer-social-link {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--fg);
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 1.1rem;
    opacity: 0;
    transform: scale(0.5) rotate(-180deg);
}

.footer-social-link:hover {
    background: var(--accent);
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 10px 30px rgba(206, 32, 23, 0.4);
    border-color: var(--accent);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-copyright {
    font-size: 0.9rem;
    color: var(--text-secondary);
    opacity: 0;
    transform: translateY(20px);
}

.footer-legal {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.9rem;
}

.footer-legal a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-legal a:hover {
    color: var(--accent);
}

.footer-legal span {
    color: var(--text-secondary);
    opacity: 0.5;
}

/* Footer Responsive */
@media(max-width: 1000px) {
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
        gap: 2.5rem;
    }

    .footer-brand {
        grid-column: span 2;
    }
}

@media(max-width: 600px) {
    .footer {
        padding: 3rem 1.5rem 1.5rem;
    }

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

    .footer-brand {
        grid-column: span 1;
    }

    .footer-description {
        max-width: 100%;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }

    .footer-social-link {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
}