:root {
    --bg-color: #050505;
    --text-primary: #ffffff;
    --text-secondary: #a0a0a0;
    --accent-color: #f26d36; /* orange from the design */
    --accent-hover: #e05b25;
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
}

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

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: 'Inter', sans-serif;
    overflow-x: hidden;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

body::-webkit-scrollbar {
    display: none;
}

h1, h2, h3, h4, .logo, .bg-text, .bg-text-back {
    font-family: 'Outfit', sans-serif;
}

/* Background Video Setup */
.background-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 0;
}

#video-canvas {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.6; /* Lowered opacity to make text pop */
    filter: brightness(0.8) contrast(1.1);
}

/* Content Overlay */
.content-wrapper {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 4rem;
}

/* Navbar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 0;
    margin-top: 2rem;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 1px;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 2rem;
    background: var(--glass-bg);
    padding: 0.75rem 2rem;
    border-radius: 50px;
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(10px);
}

.nav-links a {
    color: var(--text-primary);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--accent-color);
}

/* Buttons */
.btn-primary {
    background: var(--accent-color);
    color: #fff;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: background 0.3s;
}

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

.btn-secondary {
    background: transparent;
    color: var(--text-primary);
    padding: 0.75rem 1.5rem;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: opacity 0.3s;
}

.btn-secondary:hover {
    opacity: 0.7;
}

/* Hero Section */
.hero {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 72vh;
    padding: 3rem 1rem;
    position: relative;
    text-align: center;
    z-index: 2;
}

.hero-container {
    width: 100%;
    max-width: 980px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.hero-title {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.65rem;
    width: 100%;
    margin: 0;
}

.hero-line-1 {
    display: block;
    font-family: 'Outfit', sans-serif;
    font-size: clamp(1.85rem, 4.2vw, 3.7rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.2;
    color: #ffffff;
    text-shadow: 0 4px 24px rgba(0, 0, 0, 0.85), 0 2px 6px rgba(0, 0, 0, 0.9);
}

.hero-line-2 {
    display: block;
    font-family: 'Outfit', sans-serif;
    font-size: clamp(1.4rem, 3.2vw, 2.85rem);
    font-weight: 400;
    letter-spacing: -0.01em;
    line-height: 1.25;
    color: rgba(255, 255, 255, 0.92);
    text-shadow: 0 4px 24px rgba(0, 0, 0, 0.85), 0 2px 6px rgba(0, 0, 0, 0.9);
}

.trusted-badge {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    letter-spacing: 0.5px;
}

.hero-left h1 {
    font-size: 3rem;
    line-height: 1.1;
    font-weight: 600;
    margin-bottom: 2rem;
}

.hero-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* Hero Center */
.hero-center {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    height: 100%;
}

.bg-text, .bg-text-back {
    position: absolute;
    font-size: 8rem;
    font-weight: 700;
    text-transform: uppercase;
    line-height: 0.8;
    letter-spacing: -2px;
}

.bg-text-back {
    top: 10%;
    color: transparent;
    -webkit-text-stroke: 1px rgba(255,255,255,0.2);
    z-index: 1;
}

.bg-text {
    top: 30%;
    color: #fff;
    z-index: 3;
}

.portrait-container {
    z-index: 4;
    position: relative;
    width: 100%;
    max-width: 400px;
    mask-image: linear-gradient(to top, transparent 5%, black 40%);
    -webkit-mask-image: linear-gradient(to top, transparent 5%, black 40%);
}

.portrait {
    width: 100%;
    height: auto;
    object-fit: cover;
    filter: drop-shadow(0 0 30px rgba(242, 109, 54, 0.4)); /* orange glow */
}

/* Hero Right */
.hero-right {
    z-index: 2;
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.glass {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(15px);
    border-radius: 20px;
}

.stats-card {
    padding: 1.5rem;
    max-width: 250px;
}

.avatars {
    display: flex;
    margin-bottom: 1rem;
}

.avatars img {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    border: 2px solid #222;
    margin-right: -10px;
}

.stats-card p {
    font-size: 0.9rem;
    line-height: 1.4;
    margin-bottom: 0.5rem;
}

.stats-card .subtitle {
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

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

.card-tags span {
    font-size: 0.7rem;
    padding: 0.3rem 0.6rem;
    background: rgba(255,255,255,0.1);
    border-radius: 20px;
}

/* Marquee */
.marquee-strip {
    margin-top: 6rem;
    border-top: 1px solid var(--glass-border);
    border-bottom: 1px solid var(--glass-border);
    padding: 1.5rem 0;
    overflow: hidden;
    white-space: nowrap;
}

.marquee-content {
    display: inline-block;
    animation: marquee 20s linear infinite;
}

.marquee-content span {
    font-family: 'Outfit', sans-serif;
    font-size: 1.2rem;
    font-weight: 500;
    letter-spacing: 2px;
}

@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* About Section */
.about {
    margin-top: 8rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.about-label {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.about-content {
    max-width: 900px;
    margin: 0 auto;
}

.about-content h3 {
    font-size: 2rem;
    line-height: 1.4;
    font-weight: 400;
    margin-bottom: 3rem;
    color: #e0e0e0;
}

/* Logo Strip */
.logo-strip {
    margin-top: 8rem;
}

.logos {
    display: flex;
    justify-content: space-between;
    align-items: center;
    opacity: 0.5;
    font-family: 'Outfit', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
}

/* Projects Section */
.projects {
    margin-top: 10rem;
    padding-bottom: 5rem;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header .label {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 600;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
}

.skill-card {
    background: rgba(255,255,255,0.02);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 1.8rem;
    transition: transform 0.3s, background 0.3s, border-color 0.3s;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    min-width: 320px;
    width: 320px;
    white-space: normal;
}

.skills-marquee {
    display: inline-flex;
    gap: 1.5rem;
    animation: skills-scroll 45s linear infinite;
    padding: 1rem 0;
}

.skills-marquee:hover {
    animation-play-state: paused;
}

@keyframes skills-scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.skill-card:hover {
    transform: translateY(-5px);
    background: rgba(255,255,255,0.04);
    border-color: var(--accent-color);
}

.skill-icon {
    font-size: 2.4rem;
    color: var(--accent-color);
    margin-bottom: 1.2rem;
}

.skill-card h4 {
    font-size: 1.25rem;
    margin-bottom: 0.8rem;
    font-weight: 600;
}

.skill-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.5;
}

.tool-tag {
    font-size: 0.95rem;
    font-weight: 500;
    padding: 0.6rem 1.2rem;
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--glass-border);
    border-radius: 10px;
    color: var(--text-primary);
    transition: all 0.3s ease;
}

.tool-tag:hover {
    background: var(--accent-color);
    color: #fff;
    border-color: var(--accent-color);
    transform: translateY(-2px);
}

.tools-marquee-container {
    overflow: hidden;
    white-space: nowrap;
    width: 100%;
    position: relative;
    /* Add subtle fade at edges */
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.tools-marquee {
    display: inline-flex;
    gap: 1rem;
    animation: tools-scroll 35s linear infinite;
}

.tools-marquee:hover {
    animation-play-state: paused;
}

@keyframes tools-scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.tools-tech-card:hover {
    border-color: var(--accent-color);
}

/* Contact Section Layout */
.contact-layout {
    display: flex;
    flex-direction: column;
    gap: 4rem;
    max-width: 1200px;
    margin: 0 auto;
    text-align: left;
    margin-top: 3rem;
}

.contact-top {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 3rem;
}

.contact-avatar img {
    max-width: 250px;
    border-radius: 20px;
}

.contact-info-list {
    list-style: none;
}

.contact-info-list li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 1.2rem;
    font-size: 1.1rem;
    color: var(--text-primary);
}

.contact-info-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.5rem;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent-color);
}

.contact-bottom {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: stretch;
}

.contact-map-wrapper h3, .contact-form-wrapper h3 {
    font-size: 1.4rem;
    margin-bottom: 1.5rem;
    color: var(--text-secondary);
    position: relative;
    padding-bottom: 0.5rem;
    font-weight: 600;
}

.contact-map-wrapper h3::after, .contact-form-wrapper h3::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 50px;
    height: 3px;
    background: var(--accent-color);
}

.contact-map {
    width: 100%;
    height: calc(100% - 3.5rem);
    min-height: 400px;
    border-radius: 12px;
    overflow: hidden;
    background: var(--glass-bg);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-size: 0.95rem;
    font-weight: 500;
}

.form-group input, .form-group textarea {
    background: #ffffff;
    border: none;
    padding: 1rem;
    border-radius: 5px;
    font-family: inherit;
    font-size: 1rem;
    color: #333;
}

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

.form-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.form-actions .btn-primary, .form-actions .btn-secondary {
    padding: 0.8rem 1.5rem;
    font-size: 1rem;
    border: none;
    cursor: pointer;
    border-radius: 5px;
    font-weight: 500;
}

.form-actions .btn-secondary {
    background: rgba(255,255,255,0.1);
    color: white;
    transition: background 0.3s;
}
.form-actions .btn-secondary:hover {
    background: rgba(255,255,255,0.2);
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    .hero {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 4rem;
    }
    .hero-left {
        padding-right: 0;
    }
    .hero-actions {
        justify-content: center;
    }
    .hero-right {
        justify-content: center;
    }
    .about {
        grid-template-columns: 1fr;
    }
    .project-grid {
        grid-template-columns: 1fr;
    }
    .project-grid .project-card:nth-child(2) {
        transform: translateY(0);
    }
    .contact-top {
        flex-direction: column;
        text-align: center;
    }
    .contact-info-list li {
        text-align: left;
    }
    .contact-bottom {
        grid-template-columns: 1fr;
        gap: 4rem;
    }
    .form-row {
        grid-template-columns: 1fr;
    }
    .timeline-header {
        flex-direction: column;
        align-items: flex-start;
    }
    .timeline-meta {
        align-items: flex-start;
        text-align: left;
        margin-top: 0.5rem;
    }
    .timeline-content:hover {
        transform: translateY(-5px);
    }
}

.experience-card:hover {
    transform: translateY(-5px) !important;
    border-color: var(--accent-color) !important;
    background: rgba(255,255,255,0.04) !important;
}

/* Timeline (Experience) Styles */
.timeline {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
    padding-left: 2rem;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--glass-border);
}

.timeline-item {
    position: relative;
    margin-bottom: 4rem;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-dot {
    position: absolute;
    left: -2rem;
    top: 0;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--accent-color);
    transform: translateX(-50%);
    box-shadow: 0 0 10px rgba(242, 109, 54, 0.5);
}

.timeline-content {
    background: rgba(255,255,255,0.02);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 2.5rem;
    transition: transform 0.3s, border-color 0.3s;
}

.timeline-content:hover {
    transform: translateX(10px);
    border-color: var(--accent-color);
}

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

.timeline-header h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.3rem;
}

.timeline-role {
    font-size: 1.1rem;
    color: var(--accent-color);
    font-weight: 500;
}

.timeline-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    text-align: right;
    font-size: 0.95rem;
    color: var(--text-secondary);
}

.timeline-date {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.timeline-location {
    font-style: italic;
    margin-top: 0.4rem;
}

.timeline-desc {
    font-size: 1.05rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.timeline-bullets {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.timeline-bullets li {
    position: relative;
    padding-left: 1.5rem;
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

.timeline-bullets li::before {
    content: '→';
    position: absolute;
    left: 0;
    top: 0;
    color: var(--accent-color);
    font-weight: bold;
}

.timeline-bullets li strong {
    color: var(--text-primary);
}

.edu-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-color);
    background: rgba(255,255,255,0.04);
}

@media (max-width: 768px) {
    .navbar {
        flex-direction: column;
        gap: 1.5rem;
    }
    .nav-links {
        flex-wrap: wrap;
        justify-content: center;
        padding: 0.75rem 1rem;
        gap: 1rem;
    }
    .hero-title {
        font-size: clamp(2.5rem, 8vw, 4rem);
    }
    .hero-line-2 {
        font-size: clamp(1.2rem, 4vw, 2rem);
    }
    .section-header h2 {
        font-size: 2.5rem;
    }
    .content-wrapper {
        padding: 2rem 1.5rem;
    }
    .hero {
        margin-top: 4rem;
        gap: 2rem;
    }
    /* Override inline margins for better spacing on mobile */
    section[id] {
        margin-top: 3rem !important;
        padding-top: 3rem !important;
    }
    footer {
        margin-top: 3rem !important;
        padding: 3rem 1.5rem !important;
    }
    /* Ensure marquee cards fit smaller screens */
    .skill-card, .experience-card {
        min-width: 85vw !important;
        width: 85vw !important;
        padding: 1.5rem !important;
    }
    .tools-tech-card {
        padding: 1.5rem !important;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: clamp(2rem, 10vw, 3rem);
    }
    .nav-links {
        gap: 0.8rem;
    }
    .nav-links a {
        font-size: 0.85rem;
    }
    .timeline-header {
        flex-direction: column;
        align-items: flex-start;
    }
    .timeline-meta {
        align-items: flex-start;
        text-align: left;
    }
    /* Adjust Thank You footer text */
    footer h2 {
        font-size: clamp(3rem, 15vw, 5rem) !important;
    }
}
