:root {
    --bg-dark: #0D0D0D;
    --bg-card: #1A1A1A;
    --bg-card-hover: #222222;
    --text-primary: #FFFFFF;
    --text-secondary: #AAAAAA;
    --accent: #CDFF00;
    --accent-hover: #B3E000;
    --border-color: #333333;
    --font-primary: 'Inter', sans-serif;
    --font-heading: 'Outfit', sans-serif;
    --transition: all 0.3s ease;
    --container-width: 1200px;
    --header-height: 80px;
}

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

body {
    font-family: var(--font-primary);
    background-color: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* Typography Utilities */
.text-outline {
    color: transparent;
    -webkit-text-stroke: 1px var(--text-primary);
    transition: var(--transition);
}

.accent {
    color: var(--accent);
}

.section-subtitle {
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--accent);
    margin-bottom: 10px;
}

.section-title {
    font-size: 48px;
    margin-bottom: 60px;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    transition: var(--transition);
}

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

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

.btn-outline {
    background-color: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.btn-outline:hover {
    background-color: var(--bg-card);
    border-color: var(--text-primary);
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    background-color: rgba(13, 13, 13, 0.85);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.logo {
    font-family: var(--font-heading);
    font-size: 24px;
    font-weight: 800;
    color: var(--text-primary);
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-link {
    font-size: 15px;
    font-weight: 500;
    color: var(--text-secondary);
    position: relative;
}

.nav-link.active,
.nav-link:hover {
    color: var(--text-primary);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent);
    transition: var(--transition);
}

.nav-link.active::after,
.nav-link:hover::after {
    width: 100%;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.hamburger {
    display: none;
    cursor: pointer;
    flex-direction: column;
    gap: 6px;
}

.hamburger span {
    width: 30px;
    height: 2px;
    background-color: var(--text-primary);
    transition: var(--transition);
}

.mobile-menu {
    position: fixed;
    top: var(--header-height);
    left: 0;
    width: 100%;
    background-color: var(--bg-dark);
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    transform: translateY(-150%);
    transition: var(--transition);
    z-index: 999;
    border-bottom: 1px solid var(--border-color);
}

.mobile-menu.active {
    transform: translateY(0);
}

.mobile-link {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-secondary);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    padding-top: var(--header-height);
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 50px;
}

.hero-label {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
    padding: 8px 16px;
    border-radius: 30px;
    margin-bottom: 30px;
    background: rgba(255, 255, 255, 0.05);
}

.online-status {
    width: 8px;
    height: 8px;
    background-color: #00FF55;
    border-radius: 50%;
    box-shadow: 0 0 10px #00FF55;
}

.hero-title {
    font-size: 80px;
    line-height: 1.1;
    margin-bottom: 25px;
}

.hero-description {
    font-size: 18px;
    color: var(--text-secondary);
    max-width: 500px;
    margin-bottom: 40px;
}

.hero-btns {
    display: flex;
    gap: 20px;
    margin-bottom: 50px;
}

.social-links-hero {
    display: flex;
    gap: 20px;
}

.social-links-hero a {
    width: 45px;
    height: 45px;
    border: 1px solid var(--border-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    font-size: 18px;
}

.social-links-hero a:hover {
    color: var(--accent);
    border-color: var(--accent);
    transform: translateY(-3px);
}

.hero-image-wrapper {
    position: relative;
    display: flex;
    justify-content: center;
}

.hero-image-bg {
    position: absolute;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(205, 255, 0, 0.1) 0%, rgba(13, 13, 13, 0) 70%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: -1;
}

.hero-img {
    width: 100%;
    max-width: 450px;
    border-radius: 30px;
    filter: grayscale(100%);
    transition: var(--transition);
}

.hero-img:hover {
    filter: grayscale(0);
}

.floating-badge {
    position: absolute;
    background: rgba(26, 26, 26, 0.9);
    padding: 12px 20px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    border: 1px solid var(--border-color);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(5px);
    z-index: 10;
}

.badge-1 {
    top: 40px;
    left: -20px;
    animation: float 6s ease-in-out infinite;
}

.badge-2 {
    bottom: 80px;
    right: -20px;
    animation: float 6s ease-in-out infinite 2s;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-15px);
    }
}

.floating-badge i {
    font-size: 24px;
    color: var(--accent);
}

.floating-badge span {
    font-weight: 600;
    font-size: 14px;
}

.scroll-down {
    position: absolute;
    bottom: 40px;
    left: 40px;
    /* Aligned with container padding */
    display: flex;
    align-items: center;
    gap: 15px;
    writing-mode: vertical-rl;
    text-orientation: mixed;
    color: var(--text-secondary);
    font-size: 12px;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.scroll-down i {
    animation: bounce 2s infinite;
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0);
    }

    40% {
        transform: translateY(-10px);
    }

    60% {
        transform: translateY(-5px);
    }
}

/* Ticker */
.ticker-container {
    margin: 50px 0;
    /* Increased from 30px for better spacing */
    transform: rotate(-2deg);
}

/* Contact Section */
.contact {
    padding: 60px 0;
    /* Reduced from 100px */
    text-align: center;
}

/* Footer */
.footer {
    padding: 10px 0;
    /* Reduced from 15px */
    border-top: 1px solid var(--border-color);
}

.footer-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-logo {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 14px;
    /* Reduced from 16px */
}

.copyright {
    color: var(--text-secondary);
    font-size: 11px;
    /* Reduced from 12px */
}

.ticker-wrap {
    width: 100%;
    overflow: hidden;
    background-color: var(--accent);
    padding: 15px 0;
    margin-bottom: 5px;
    /* Gap between tickers */
}

/* Second ticker style - Dark theme */
.ticker-skills {
    background-color: #1a1a1a;
    /* Dark background */
    border-top: 1px solid var(--accent);
    border-bottom: 1px solid var(--accent);
}

.ticker-skills .ticker-item {
    color: var(--text-primary);
    /* White text */
}

.ticker-skills .separator {
    color: var(--accent);
}

.ticker {
    display: flex;
    white-space: nowrap;
    animation: ticker 30s linear infinite;
}

.ticker-reverse {
    animation: ticker-reverse 35s linear infinite;
}

.ticker-item {
    font-family: var(--font-heading);
    font-size: 24px;
    font-weight: 800;
    color: #000;
    padding: 0 20px;
    text-transform: uppercase;
}

.separator {
    margin-left: 20px;
}

@keyframes ticker {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-100%);
    }
}

@keyframes ticker-reverse {
    0% {
        transform: translateX(-100%);
    }

    100% {
        transform: translateX(0%);
    }
}

/* About Section */
.about {
    padding: 120px 0;
}

.about-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.about-img-3d {
    width: 100%;
    /* Add subtle hover movement */
    transition: transform 0.5s ease;
}

.about-img-3d:hover {
    transform: scale(1.02);
}

.about-text {
    font-size: 18px;
    color: var(--text-secondary);
    margin-bottom: 25px;
}

.about-text strong {
    color: var(--text-primary);
}

.personal-info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin: 40px 0;
}

.info-item {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.info-item .label {
    font-size: 12px;
    text-transform: uppercase;
    color: var(--text-secondary);
    letter-spacing: 1px;
}

.info-item .value {
    font-size: 16px;
    font-weight: 600;
}

/* Experience Section */
.experience {
    padding: 0 0;
    background-color: #111;
    /* Slightly lighter background */
}

.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 20px;
    height: 100%;
    width: 2px;
    background-color: var(--border-color);
}

.timeline-item {
    position: relative;
    padding-left: 60px;
    margin-bottom: 60px;
}

.timeline-item::after {
    content: '';
    position: absolute;
    left: 11px;
    top: 5px;
    width: 20px;
    height: 20px;
    background-color: var(--bg-dark);
    border: 2px solid var(--border-color);
    border-radius: 50%;
    z-index: 1;
    transition: var(--transition);
}

.timeline-item:hover::after,
.timeline-item.active::after {
    background-color: var(--accent);
    border-color: var(--accent);
}

.timeline-year {
    display: inline-block;
    padding: 5px 15px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--text-secondary);
}

.timeline-content h3 {
    font-size: 24px;
    margin-bottom: 5px;
}

.company {
    display: block;
    font-size: 16px;
    color: var(--accent);
    margin-bottom: 15px;
    font-weight: 500;
}

.timeline-content p {
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tags span {
    font-size: 12px;
    padding: 5px 12px;
    border: 1px solid var(--border-color);
    border-radius: 20px;
    color: var(--text-secondary);
}

/* Services/Skills Section */
.services {
    padding: 120px 0;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.service-card {
    background-color: var(--bg-card);
    padding: 40px;
    border-radius: 20px;
    border: 1px solid transparent;
    transition: var(--transition);
}

.service-card:hover {
    border-color: var(--border-color);
    transform: translateY(-10px);
    background-color: var(--bg-card-hover);
}

.service-icon {
    font-size: 40px;
    color: var(--accent);
    margin-bottom: 25px;
}

.service-card h3 {
    font-size: 24px;
    margin-bottom: 15px;
}

.service-card p {
    color: var(--text-secondary);
    margin-bottom: 25px;
    font-size: 15px;
}

.service-list {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

.service-list li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 10px;
    color: var(--text-secondary);
    font-size: 14px;
}

.service-list li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--accent);
}

/* Awards Section */
.awards {
    padding: 60px 0;
    background-color: var(--bg-card);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.awards-banner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.award-content {
    display: flex;
    align-items: center;
    gap: 20px;
}

.award-icon {
    font-size: 40px;
    color: #FFD700;
}

.award-date {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-secondary);
}

/* Projects Section */
.projects {
    padding: 120px 0;
}

.projects-header {
    display: flex;
    justify-content: space-between;
    align-items: end;
    margin-bottom: 60px;
}

.view-all-link {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 16px;
    font-weight: 600;
    padding-bottom: 5px;
    border-bottom: 2px solid var(--accent);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 50px;
}

.project-card {
    position: relative;
}

.project-img {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    margin-bottom: 25px;
    background-color: var(--bg-card);
    aspect-ratio: 16/10;
}

.project-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.project-card:hover .project-img img {
    transform: scale(1.1);
}

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

.project-card:hover .project-overlay {
    opacity: 1;
}

.project-link {
    width: 60px;
    height: 60px;
    background-color: var(--accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #000;
    font-size: 24px;
    transform: scale(0);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.project-card:hover .project-link {
    transform: scale(1);
}

.project-category {
    font-size: 12px;
    text-transform: uppercase;
    color: var(--accent);
    font-weight: 600;
    letter-spacing: 1px;
    margin-bottom: 5px;
    display: block;
}

.project-info h3 {
    font-size: 28px;
    margin-bottom: 10px;
}

.project-info p {
    color: var(--text-secondary);
    margin-bottom: 15px;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.project-tech span {
    font-size: 12px;
    padding: 4px 10px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 5px;
    color: var(--text-secondary);
}

/* Contact Section */
.contact {
    padding: 100px 0;
    text-align: center;
}

.contact-title {
    font-size: 100px;
    line-height: 1;
    margin-bottom: 30px;
}

.contact-text {
    max-width: 600px;
    margin: 0 auto 50px;
    font-size: 18px;
    color: var(--text-secondary);
}

.email-link {
    display: inline-flex;
    align-items: center;
    gap: 15px;
    font-size: 24px;
    font-weight: 600;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 60px;
}

.email-link:hover {
    color: var(--accent);
    border-color: var(--accent);
}

.contact-socials {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.contact-socials a {
    padding: 15px 40px;
    border: 1px solid var(--border-color);
    border-radius: 50px;
    font-weight: 600;
}

.contact-socials a:hover {
    background-color: var(--text-primary);
    color: #000;
}

/* Footer */

/* Footer */
.footer {
    padding: 0;
    /* Removing padding as we align items center with height */
    height: var(--header-height);
    /* Match navbar height */
    border-top: 1px solid var(--border-color);
    display: flex;
    align-items: center;
}

.footer-container {
    width: 100%;
    /* Fix: Ensure container takes full width to space items */
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-logo {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 20px;
    /* Restored to original */
}

.copyright {
    color: var(--text-secondary);
    font-size: 14px;
    /* Restored to original */
}

.heart {
    color: var(--accent);
}

.footer-links {
    display: flex;
    gap: 20px;
}

.footer-links a {
    font-size: 14px;
    color: var(--text-secondary);
}

.footer-links a:hover {
    color: var(--text-primary);
}

/* Responsive Design */
@media (max-width: 992px) {
    .section-title {
        font-size: 36px;
    }

    .hero-title {
        font-size: 60px;
    }

    .hero-container,
    .about-container {
        grid-template-columns: 1fr;
        gap: 50px;
    }

    .hero-image-wrapper {
        order: -1;
    }

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

    .contact-title {
        font-size: 70px;
    }
}

@media (max-width: 768px) {

    .nav-links,
    .nav-actions .btn {
        display: none;
    }

    .hamburger {
        display: flex;
    }

    .hero-title {
        font-size: 42px;
    }

    .ticker-item {
        font-size: 24px;
    }

    .contact-title {
        font-size: 48px;
    }

    .footer-container {
        flex-direction: column;
        gap: 10px;
    }

    /* Fix scroll down for larger mobiles/tablets too */
    .scroll-down {
        position: relative;
        left: auto;
        transform: none;
        bottom: auto;
        margin-top: 30px;
        writing-mode: horizontal-tb;
        text-orientation: mixed;
        flex-direction: row;
        gap: 10px;
        font-size: 12px;
        width: 100%;
        justify-content: center;
    }

    .scroll-down i {
        animation: bounce-mobile 2s infinite;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    /* Fix button sizes */
    .btn {
        padding: 10px 20px;
        font-size: 14px;
    }

    .hero-btns {
        flex-direction: column;
        width: 100%;
        gap: 15px;
    }

    .hero-btns .btn {
        width: 100%;
        justify-content: center;
    }

    /* Footer */
    .footer p,
    .footer h3,
    .footer div {
        margin: 0;
    }

    /* Adjust scroll down for mobile */
    .scroll-down {
        position: relative;
        /* Force relative to flow */
        left: auto;
        transform: none;
        bottom: auto;
        margin-top: 20px;
        writing-mode: horizontal-tb;
        text-orientation: mixed;
        flex-direction: row;
        gap: 8px;
        font-size: 12px;
        width: 100%;
        justify-content: center;
    }

    .scroll-down i {
        animation: bounce-mobile 2s infinite;
    }

    @keyframes bounce-mobile {

        0%,
        20%,
        50%,
        80%,
        100% {
            transform: translateY(0);
        }

        40% {
            transform: translateY(-6px);
            /* Bounce UP */
        }

        60% {
            transform: translateY(-3px);
        }
    }

    /* Adjust typography */
    .hero-title {
        font-size: 36px;
    }

    .hero-description {
        font-size: 16px;
    }

    .section-title {
        font-size: 32px;
        margin-bottom: 40px;
    }

    /* Fix horizontal overflow */
    .hero-image-bg {
        width: 300px;
        height: 300px;
    }

    .floating-badge {
        padding: 8px 12px;
    }

    .floating-badge span {
        font-size: 12px;
    }

    .badge-1 {
        left: 0;
    }

    .badge-2 {
        right: 0;
    }

    /* Adjust contact section */
    .contact-title {
        font-size: 40px;
    }

    .email-link {
        font-size: 18px;
        word-break: break-all;
    }

    .contact-socials a {
        padding: 10px 20px;
        font-size: 14px;
        width: 100%;
    }

    /* Fix Social Icons in Hero */
    .social-links-hero {
        justify-content: center;
        margin-bottom: 30px;
    }

    .social-links-hero a {
        width: 35px;
        height: 35px;
        font-size: 16px;
    }

    /* Fix About Info sizing */
    .personal-info-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .info-item .label {
        font-size: 10px;
    }

    .info-item .value {
        font-size: 14px;
    }
}