:root {
    --bg: #050505;
    --card-bg: #111111;
    --accent: #FF160C;
    --accent-glow: rgba(255, 22, 12, 0.3);
    --text-main: #f8fafc;
    --text-muted: #a1a1aa;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
    background-color: var(--bg);
    color: var(--text-main);
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    scroll-behavior: smooth;
    background-image: radial-gradient(circle at 50% 0%, #1a0505 0%, #050505 100%);
    overflow-x : hidden ;
}

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

.skills-tags span:hover {
    border-color: var(--accent);
    box-shadow: 0 0 10px var(--accent-glow);
}

h3 {
    font-size : 1.5rem;
}

.techskill:hover {
    transform: translateY(-5px);
    border-color: white;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 2rem;
}


.navbar {
    padding: 1.5rem 2rem;
    position: sticky;
    top: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 1000;
}

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


.logo-container {
    text-decoration: none;
    display: inline-block;
    perspective: 1000px;
}

.logo-frame {
    position: relative;
    padding: 5px 15px;
    background: rgba(255, 22, 12, 0.05);
    border: 2px solid var(--accent);
    transform: skewX(-15deg);
    transition: all 1s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: -5px 0 0px rgba(255, 22, 12, 0.5);
}

.logo-text {
    display: block;
    font-weight: 900;
    font-size: 1.5rem;
    color: var(--text-main);
    transform: skewX(15deg);
    letter-spacing: 2px;
    position: relative;
}


.logo-container:hover .logo-frame {
    background: var(--accent);
    transform: skewX(-15deg) scale(1.1);
    box-shadow: 0 0 20px var(--accent-glow), 5px 0 0px #fff;
}

.logo-container:hover .logo-text {
    color: #000;
    text-shadow: none;
}


.logo-container:hover .logo-text::before {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    opacity: 0.8;
    color: #fff;
    animation: flicker 0.3s infinite;
}

@keyframes flicker {
    0% {
        clip-path: inset(10% 0 15% 0);
        transform: translate(-2px);
    }

    50% {
        clip-path: inset(80% 0 5% 0);
        transform: translate(2px);
    }

    100% {
        clip-path: inset(10% 0 15% 0);
        transform: translate(-2px);
    }
}

.nav-links a {
    color: var(--text-main);
    text-decoration: none;
    margin-left: 2rem;
    font-weight: 500;
    transition: var(--transition);
}

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

.nav-btn {
    border: 1px solid var(--accent);
    padding: 0.5rem 1.2rem;
    border-radius: 6px;
}


.hero {
    padding: 8rem 2rem 5rem;
    text-align: center;
}

.profile-img {
    width: 250px;
    height: 250px;
    border-radius: 20%;
    margin-bottom: 1.5rem;
    border: 2px solid var(--accent);
    padding: 5px;
    object-fit : cover;
    object-position : center;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 700;
    letter-spacing: -1px;
    margin-bottom: 0.5rem;
}

.subtitle {
    font-size: 1.5rem;
    color: var(--accent);
    font-weight: 600;
}

.hero-tagline {
    max-width: 600px;
    margin: 1.5rem auto;
    color: var(--text-muted);
    font-size: 1.1rem;
}

.social-row {
    margin-top: 2rem;
}

.social-row a {
    color: var(--text-main);
    margin: 0 1rem;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-bottom: 1px solid var(--accent);
}


.section {
    padding: 6rem 0;
}

.section-title {
    font-size: 2rem;
    margin-bottom: 3rem;
    display: flex;
    align-items: center;
}

.section-title::after {
    content: "";
    height: 1px;
    background: var(--accent);
    flex-grow: 1;
    margin-left: 1.5rem;
    opacity: 0.3;
}


.about-split-container {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 4rem;
    align-items: start;
    margin-top: 2rem;
}


.split-col {
    display: flex;
    flex-direction: column;
}

.section-title-small {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    color: var(--text-main);
    border-left: 3px solid var(--accent);
    padding-left: 15px;
}

.vertical-divider {
    width: 1px;
    background: var(--accent);
    height: 100%;
    min-height: 150px;
    opacity: 0.4;
    box-shadow: 0 0 10px var(--accent-glow);
}



.skills-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-top: 1rem;
}

.skills-tags span {
    background: var(--card-bg);
    padding: 0.4rem 1rem;
    border-radius: 4px;
    font-size: 1.25rem;
    border: 1px solid rgba(255, 22, 12, 0.2);
}

#stack .skills-tags {
    justify-content: center;
    max-width: 800px;
    margin: 2rem auto;
}



.cert-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 1.5rem 0 1.5rem;
}

.cert-card {
    min-height: 200px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    text-align: left;
    
}

.statuspic {
    font-size : 3rem;
}


.status-badge {
    background: rgba(255, 22, 12, 0.1);
    color: var(--accent);
    border: 1px solid var(--accent);
    padding: 2px 10px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 0 10px var(--accent-glow);
}

.cert-org {
    color: var(--text-main) !important;
    font-weight: 600;
    margin-top: 5px;
}

.cert-card:hover {
    border-color: var(--accent);
    box-shadow: 0 0 20px var(--accent-glow);
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.project-card {
    background: var(--card-bg);
    border-radius: 12px;
    overflow: hidden;
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.05);
    margin-bottom : 1.5rem;
}

.project-card:hover {
    transform: translateY(-15px);
    border-color: var(--accent);
}

.project-img-wrapper {
    height: 50%;
    width : auto;
    background: #000;

}

.project-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.8;
}

.project-info {
    padding: 1.5rem;
}

.project-info h3 {
    margin-bottom: 0.5rem;
}

.project-info p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

.stack {
    display: block;
    font-size: 0.8rem;
    color: var(--accent);
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.project-link {
    color: var(--text-main);
    text-decoration: none;
    font-weight: 600;
}


.footer {
    text-align: center;
    padding: 4rem;
    color: var(--text-muted);
    font-size: 0.9rem;
}


#loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #000000;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: transform 0.8s cubic-bezier(0.77, 0, 0.175, 1);
}

.loader-hidden {
    transform: translateY(-100%) !important;
}

.loader-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 15px;
    background-color : black;
    width : 100vw;
    height : 100vh;
}


.robotic-svg-detailed {
    filter: drop-shadow(0 0 15px rgba(255, 255, 255, 0.3));
}


.core-pulse {
    animation: pulseAmber 2s ease-in-out infinite;
}

.core-solid {
    animation: pulseAmber 2s ease-in-out infinite 0.3s;
}


.ring-inner-fast {
    animation: rotateCCW 3s linear infinite;
}


.ring-mid-gear {
    animation: rotateCW 10s linear infinite;
}


.main-progress {
    filter: drop-shadow(0 0 8px #ffffff);
    animation: fillComplexProgress 4s ease-in-out infinite;
}


.ring-outer-slow {
    animation: oscillate 15s ease-in-out infinite;
}


.orbitals {
    animation: rotateCW 7s linear infinite;
}


.text-container {
    text-align: center;
}

.mech-text-main {
    color: #ffffff;
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    letter-spacing: 3px;
    font-size: 0.9rem;
    margin-bottom: 5px;
}

.mech-text-sub {
    background-image : linear-gradient(to right, white, #ff0000) ;
    background-clip : text;
    color : transparent;
    font-family: monospace;
    font-size: 0.8rem;
}

.blink {
    animation: blinkCursor 0.5s steps(2, start) infinite;
}



@keyframes rotateCW {
    to {
        transform: rotate(360deg);
    }
}

@keyframes rotateCCW {
    to {
        transform: rotate(-360deg);
    }
}


@keyframes oscillate {
    0% {
        transform: rotate(0deg);
    }
    50% {
        transform: rotate(90deg);
    }
    100% {
        transform: rotate(0deg);
    }
}

@keyframes pulseAmber {

    0%,
    100% {
        transform: scale(1);
        opacity: 0.5;
    }
    50% {
        transform: scale(1.3);
        opacity: 0.9;
    }
}

@keyframes fillComplexProgress {
    0% {
        stroke-dashoffset: 597;
    }
    50% {
        stroke-dashoffset: 0;
    }
    100% {
        stroke-dashoffset: -597;
    }

    
}

@keyframes blinkCursor {
    to {
        visibility: hidden;
    }
}

@media (max-width: 768px) {
    .about-grid {
        grid-template-columns: 1fr;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .nav-links {
        font-size : .5rem;
    }

    .abouttxt {
        font-size : .75rem;
    }

}