:root {
    --bg-color: #121212;
    --card-bg: #1e1e1e;
    --text-primary: #e6f1ff;
    --text-secondary: #8892b0;
    --accent: #64ffda;
    /* Tech Teal */
    --hover-bg: #252525;
}

body {
    margin: 0;
    font-family: 'Poppins', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-primary);
    line-height: 1.6;
}

/* Scrollbar styling */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--bg-color);
}

::-webkit-scrollbar-thumb {
    background: #333;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* Typography */
h1,
h2,
h3 {
    color: var(--text-primary);
    margin-top: 0;
}

h2 {
    border-bottom: 2px solid var(--accent);
    display: inline-block;
    padding-bottom: 5px;
    margin-bottom: 20px;
    font-size: 1.5rem;
}

a {
    color: var(--accent);
    text-decoration: none;
    transition: 0.3s;
}

a:hover {
    text-decoration: underline;
    opacity: 0.8;
}

p,
li {
    color: var(--text-secondary);
}

/* Hero Section */
.hero {
    position: relative;
    height: 350px;
    background-image: linear-gradient(rgba(18, 18, 18, 0.8), rgba(18, 18, 18, 0.9)),
        url('assets/images/campus.jpg');
    background-size: cover;
    background-position: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: 40px;
}

.profile-container {
    position: relative;
    margin-bottom: 15px;
}

.profile-pic {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    border: 4px solid var(--accent);
    object-fit: cover;
    box-shadow: 0 0 20px rgba(100, 255, 218, 0.2);
}

.hero h1 {
    margin: 10px 0 5px 0;
    font-size: 2.5rem;
    letter-spacing: 1px;
}

.hero h3 {
    color: var(--text-secondary);
    font-weight: 400;
    font-size: 1rem;
    max-width: 600px;
    padding: 0 20px;
}

/* Main Layout */
.container {
    max-width: 900px;
    margin: auto;
    padding: 40px 20px;
}

.section {
    background-color: var(--card-bg);
    padding: 30px;
    border-radius: 12px;
    margin-bottom: 30px;
    box-shadow: 0 10px 30px -15px rgba(2, 12, 27, 0.7);
    transition: transform 0.3s ease;
}

/* Experience List */
ul {
    list-style: none;
    padding: 0;
}

li {
    margin-bottom: 12px;
    position: relative;
    padding-left: 20px;
}

li::before {
    content: "▹";
    color: var(--accent);
    position: absolute;
    left: 0;
}

strong {
    color: #fff;
}

/* Skills */
.skill-tag {
    display: inline-block;
    background: rgba(100, 255, 218, 0.1);
    color: var(--accent);
    border: 1px solid var(--accent);
    padding: 6px 14px;
    border-radius: 4px;
    margin-right: 10px;
    margin-bottom: 10px;
    font-size: 0.9rem;
    font-weight: 500;
}

/* Projects - New Layout with Images */
.project-card {
    display: flex;
    gap: 20px;
    background: var(--bg-color);
    /* Slightly darker inside the card */
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    border: 1px solid #333;
    transition: transform 0.3s ease, border-color 0.3s ease;
    text-decoration: none;
    /* For when it becomes an anchor */
    color: inherit;
    cursor: pointer;
}

.project-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent);
    text-decoration: none;
}

.project-img-placeholder {
    width: 150px;
    height: 100px;
    background-color: #333;
    border-radius: 6px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #555;
    font-size: 0.8rem;
    overflow: hidden;
}

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

.project-content {
    flex: 1;
}

.project-content h3 {
    margin-top: 0;
    font-size: 1.2rem;
    color: var(--text-primary);
}

.project-content p {
    font-size: 0.95rem;
    margin-bottom: 0;
    color: var(--text-secondary);
}

.status-badge {
    font-size: 0.75rem;
    padding: 2px 8px;
    border-radius: 12px;
    margin-left: 8px;
    vertical-align: middle;
    font-weight: 600;
    display: inline-block;
}

.status-live {
    background-color: rgba(100, 255, 218, 0.15);
    color: var(--accent);
    border: 1px solid var(--accent);
}

.status-github {
    background-color: rgba(136, 146, 176, 0.15);
    color: var(--text-secondary);
    border: 1px solid var(--text-secondary);
}

/* Footer */
footer {
    text-align: center;
    color: var(--text-secondary);
    padding: 40px 0;
    font-size: 0.9rem;
    border-top: 1px solid #333;
    margin-top: 40px;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .project-card {
        flex-direction: column;
    }

    .project-img-placeholder {
        width: 100%;
        height: 150px;
    }

    .hero {
        height: auto;
        padding-bottom: 40px;
    }
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 10px 20px;
    border-radius: 4px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    margin-top: 10px;
}

.btn-primary {
    background-color: var(--accent);
    color: var(--bg-color);
    border: 1px solid var(--accent);
}

.btn-primary:hover {
    background-color: rgba(100, 255, 218, 0.8);
    text-decoration: none;
    transform: translateY(-2px);
}

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

.btn-secondary:hover {
    background-color: rgba(100, 255, 218, 0.1);
    text-decoration: none;
    transform: translateY(-2px);
}

/* Carousel Styles */
.carousel-container {
    position: relative;
    width: 100%;
    max-width: 800px;
    margin: 40px auto;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 10px 30px -15px rgba(2, 12, 27, 0.7);
}

.carousel-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.carousel-slide {
    min-width: 100%;
    height: 400px;
    /* Fixed height for consistency */
    background-color: #252525;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    /* Adapt to dimensions */
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: var(--accent);
    border: none;
    font-size: 2rem;
    padding: 10px 15px;
    cursor: pointer;
    z-index: 10;
    transition: background 0.3s;
}

.carousel-btn:hover {
    background: rgba(0, 0, 0, 0.8);
}

.carousel-btn.prev {
    left: 10px;
}

.carousel-btn.next {
    right: 10px;
}

/* Main App Screenshot Placeholder */
.main-app-screenshot {
    width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 40px;
    border: 1px solid #333;
    box-shadow: 0 10px 30px -15px rgba(2, 12, 27, 0.7);
}

/* Project Detail Page Specifics */
.project-header {
    margin-bottom: 40px;
}

.project-header h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.project-meta {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    font-size: 0.9rem;
    color: var(--accent);
}

.back-link {
    display: inline-block;
    margin-bottom: 20px;
    font-weight: 600;
}

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

.gallery-item {
    background: #333;
    height: 200px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
}

.feature-list li {
    margin-bottom: 15px;
}