/* Modern Abstract Theme - Home Page */
:root {
    --bg-color: #0a0a0a;
    --text-primary: #ffffff;
    --text-secondary: #a0a0a0;
    --accent-color: #e63946;
    --card-bg: rgba(255, 255, 255, 0.03);
    --card-border: rgba(255, 255, 255, 0.05);
    --card-hover-bg: rgba(255, 255, 255, 0.07);
    --font-heading: 'Space Grotesk', sans-serif;
    --font-body: 'Inter', sans-serif;
    --transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--bg-color);
}

::-webkit-scrollbar-thumb {
    background: rgba(160, 160, 160, 0.4);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent-color);
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-color);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
}

/* Abstract Background */
.abstract-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

.shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
    animation: float 20s infinite alternate;
}

.shape-1 { top: -10%; left: -10%; width: 600px; height: 600px; background: radial-gradient(circle, #e63946, transparent 70%); }
.shape-2 { bottom: 10%; right: -5%; width: 500px; height: 500px; background: radial-gradient(circle, #4361ee, transparent 70%); animation-delay: -5s; }
.shape-3 { top: 40%; left: 40%; width: 300px; height: 300px; background: radial-gradient(circle, #7209b7, transparent 70%); animation-delay: -10s; }

@media (max-width: 768px) {
    .shape-2 {
        opacity: 0.05; /* Reduce blue intensity on mobile */
    }
}

@keyframes float {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(30px, 50px) scale(1.1); }
}

/* Header */
header {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 2rem;
    position: relative;
    overflow: hidden; /* Ensure the background doesn't spill out */
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 110%; /* Slightly taller for parallax */
    background-image: url('images/background-hero.jpg');
    background-size: cover;
    background-position: center;
    z-index: -1;
    opacity: 0.3;
    filter: grayscale(100%) contrast(1.2); /* Abstract feel */
    will-change: transform;
}

.header-content h1 {
    font-family: var(--font-heading);
    font-size: clamp(3.5rem, 10vw, 7rem);
    line-height: 0.9;
    font-weight: 700;
    margin-bottom: 1.5rem;
    background: linear-gradient(to right, #fff, #aaa);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    font-weight: 300;
}

/* Social Links */
.social-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--card-border);
    border-radius: 50%;
    transition: var(--transition);
}

.social-link:hover {
    background: var(--accent-color);
    transform: translateY(-5px);
    border-color: var(--accent-color);
}

.social-link img {
    width: 24px;
    height: 24px;
    filter: brightness(0) invert(1);
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 3rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    opacity: 0.7;
    cursor: pointer;
    transition: var(--transition);
}

.scroll-indicator:hover {
    opacity: 1;
}

.scroll-text {
    font-size: 0.8rem;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.scroll-arrow {
    width: 20px;
    height: 20px;
    border-right: 2px solid #fff;
    border-bottom: 2px solid #fff;
    transform: rotate(45deg);
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0) rotate(45deg); }
    40% { transform: translateY(-10px) rotate(45deg); }
    60% { transform: translateY(-5px) rotate(45deg); }
}

/* Sections */
section {
    padding: 6rem 5%;
    max-width: 1200px;
    margin: 0 auto;
}

h2 {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: var(--text-primary);
}

/* Glass Card (About & Skills) */
.glass-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 24px;
    padding: 3rem;
    backdrop-filter: blur(20px);
}

.about-content p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    max-width: 800px;
}

.about-content p:last-child {
    margin-bottom: 0;
}

/* Projects Section */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 3rem;
}

.view-all-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition);
}

.view-all-link:hover {
    color: var(--text-primary);
}

.view-all-link .arrow {
    transition: transform 0.3s ease;
}

.view-all-link:hover .arrow {
    transform: translateX(5px);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

/* Project Card (Same as projects page) */
.project-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 24px;
    backdrop-filter: blur(20px);
    transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1), 
                background 0.6s ease, 
                box-shadow 0.6s ease, 
                border-color 0.6s ease;
    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.project-card:hover {
    background: var(--card-hover-bg);
    transform: translateY(-10px) scale(1.02);
    border-color: var(--accent-color);
    box-shadow: 0 30px 60px -12px rgba(0, 0, 0, 0.5),
                0 0 0 1px rgba(230, 57, 70, 0.2);
    z-index: 10;
}

.card-content {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.card-head {
    margin-bottom: 1rem;
}

.title-group {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.project-logo {
    width: 28px;
    height: 28px;
    object-fit: contain;
}

.project-card h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0;
}

.project-desc {
    color: var(--text-secondary);
    margin-bottom: 2rem;
    flex-grow: 1;
    font-size: 1rem;
}

.project-links {
    margin-top: auto;
}

.btn-link {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding-bottom: 2px;
    border-bottom: 1px solid transparent;
    transition: var(--transition);
}

.btn-link:hover {
    border-bottom-color: var(--accent-color);
    color: var(--accent-color);
}

.btn-link .arrow {
    transition: transform 0.3s ease;
}

.btn-link:hover .arrow {
    transform: translateX(5px);
}

.project-card:hover .btn-link .arrow {
    transform: translateX(5px);
    color: var(--accent-color);
}

/* FAQ / Skills */
.faq-item {
    border-bottom: 1px solid var(--card-border);
}

.faq-item:last-child {
    border-bottom: none;
}

.faq-question {
    padding: 1.5rem 0;
    font-size: 1.2rem;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition);
}

.faq-question:hover {
    color: var(--accent-color);
}

.faq-question::after {
    content: '+';
    font-size: 1.5rem;
    font-weight: 300;
    transition: transform 0.3s ease;
}

.faq-question.active::after {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-answer.show {
    max-height: 200px;
}

.faq-answer p {
    padding-bottom: 1.5rem;
    color: var(--text-secondary);
}

/* Footer */
footer {
    text-align: center;
    padding: 3rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
    border-top: 1px solid var(--card-border);
}

/* Responsive */
@media (max-width: 768px) {
    .header-content h1 { font-size: 3.5rem; }
    section { padding: 4rem 5%; }
    .glass-card { padding: 2rem; }
}
