:root {
    --primary: #00e0ff;
    --primary-glow: #00e1ff4d;
    --secondary: #6366f1;
    --background: #0b0f19;
    --surface: #1e293b70;
    --white: #f8fafc;
    --gray: #94a3b8;
    --text-muted: #64748b;
    --glass: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --nav-height: 80px;
    --transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

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

body {
    background: var(--background);
    color: var(--white);
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
    overflow-y: hidden; /* Prevent scrolling during preloader */
}

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

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

.highlight {
    color: var(--primary);
    text-shadow: 0 0 20px var(--primary-glow);
}

.badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: var(--glass);
    border: 1px solid var(--primary-glow);
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--primary);
    margin-bottom: 1.5rem;
}

.btn-primary {
    display: inline-block;
    padding: 0.8rem 2rem;
    background: var(--primary);
    color: var(--background);
    border: none;
    border-radius: 8px;
    font-weight: 700;
    transition: var(--transition);
    cursor: pointer;
    text-decoration: none;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px var(--primary-glow);
}

.btn-secondary {
    display: inline-block;
    padding: 0.8rem 2rem;
    background: var(--glass);
    color: var(--white);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    font-weight: 600;
    transition: var(--transition);
    cursor: pointer;
    text-decoration: none;
}

.btn-secondary:hover {
    background: var(--white);
    color: var(--background);
    transform: translateY(-3px);
}

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

@media (max-width: 992px) {
    .hero-cta {
        justify-content: center;
        flex-wrap: wrap;
    }
}

.cta-btns {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

.resume-btns {
    display: flex;
    gap: 1rem;
}

.resume-btns .btn-secondary {
    margin-left: 0;
}

/* Navbar */
.navbar {
    height: var(--nav-height);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--glass-border);
    transition: var(--transition);
}

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

.logo {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--white);
    text-decoration: none;
    letter-spacing: -0.5px;
}

.logo span {
    color: var(--primary);
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 3rem;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: var(--white);
    font-weight: 500;
    transition: var(--transition);
}

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

.menu-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Hero Section */
.hero-section {
    position: relative;
    padding: 160px 0 100px;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.hero-content {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 2;
}

.hero-text h1 {
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    font-weight: 800;
}

.hero-text .lead {
    font-size: 1.2rem;
    color: var(--gray);
    margin-bottom: 2.5rem;
    max-width: 600px;
}

/* Profile Design */
.profile-container {
    position: relative;
    width: 400px;
    height: 520px;
    display: flex;
    justify-content: center;
    align-items: center;
    animation: floating 8s ease-in-out infinite;
    z-index: 10;
}

.profile-glow {
    position: absolute;
    width: 120%;
    height: 120%;
    background: radial-gradient(circle, var(--primary-glow) 0%, transparent 70%);
    filter: blur(100px);
    z-index: -1;
    opacity: 0.6;
}

.profile-frame {
    position: relative;
    width: 100%;
    height: 100%;
    background: var(--surface);
    border-radius: 24px;
    padding: 6px;
    box-shadow: 0 0 50px rgba(0, 224, 255, 0.4);
    display: flex;
    justify-content: center;
    align-items: center;
    transition: var(--transition);
    background: linear-gradient(135deg, var(--primary), var(--secondary));
}

.profile-frame::before {
    content: '';
    position: absolute;
    top: 6px;
    left: 6px;
    right: 6px;
    bottom: 6px;
    background: var(--background);
    border-radius: 18px;
    z-index: 0;
}

.profile-photo {
    width: calc(100% - 12px);
    height: calc(100% - 12px);
    object-fit: cover;
    object-position: center top;
    border-radius: 18px;
    position: relative;
    z-index: 1;
    transition: var(--transition);
    filter: grayscale(0.2);
}

.profile-container:hover .profile-photo {
    transform: scale(1.05);
    filter: grayscale(0);
}

.floating-badge {
    position: absolute;
    background: var(--surface);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    padding: 0.8rem 1.2rem;
    border-radius: 15px;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--white);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    z-index: 20;
    transition: var(--transition);
}

.floating-badge i {
    color: var(--primary);
    font-size: 1.2rem;
}

.badge-top {
    top: 10%;
    right: -20px;
    animation: floatingInner 5s ease-in-out infinite both;
}

.badge-bottom {
    bottom: 15%;
    left: -30px;
    animation: floatingInner 6s ease-in-out infinite reverse both;
}

@keyframes floatingInner {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-15px) rotate(3deg); }
}

@media (max-width: 992px) {
    .profile-container {
        width: 320px;
        height: 420px;
        margin: 50px auto 0;
    }
}

/* Background Effects */
.background-effects {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    overflow: hidden;
}

.gradient-sphere {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.15;
}

.sphere-1 {
    width: 600px;
    height: 600px;
    background: var(--primary);
    top: -200px;
    right: -200px;
}

.sphere-2 {
    width: 500px;
    height: 500px;
    background: var(--secondary);
    bottom: -100px;
    left: -100px;
}

.grid-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(rgba(255,255,255,0.05) 1px, transparent 0);
    background-size: 40px 40px;
}

/* Stats Section */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin-top: -50px;
    position: relative;
    z-index: 10;
}

.stat-card {
    background: var(--surface);
    backdrop-filter: blur(15px);
    padding: 2rem;
    border-radius: 20px;
    border: 1px solid var(--glass-border);
    text-align: center;
}

.stat-card h3 {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

/* Skills Section */
.skills-section {
    padding: 100px 0;
}

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

.section-header h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.skill-category {
    background: var(--surface);
    padding: 3rem 2rem;
    border-radius: 24px;
    border: 1px solid var(--glass-border);
    transition: var(--transition);
}

.skill-category:hover {
    transform: translateY(-10px);
    border-color: var(--primary-glow);
    background: rgba(255,255,255,0.04);
}

.category-icon {
    width: 60px;
    height: 60px;
    background: var(--primary-glow);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--primary);
    margin-bottom: 1.5rem;
}

.skill-list {
    list-style: none;
    margin-top: 1.5rem;
}

.skill-list li {
    padding: 0.5rem 0;
    color: var(--gray);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.skill-list li::before {
    content: "→";
    color: var(--primary);
}

.versatility-footer {
    margin-top: 4rem;
    text-align: center;
    padding: 2rem;
    background: var(--glass);
    border-radius: 50px;
    color: var(--gray);
}

/* Timeline */
.timeline-section {
    padding: 100px 0;
}

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

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

.timeline-item {
    padding: 20px 40px;
    position: relative;
    width: 50%;
    margin-bottom: 2rem;
}

.timeline-item:nth-child(even) {
    left: 50%;
}

.timeline-item:nth-child(odd) {
    left: 0;
    text-align: right;
}

.timeline-content {
    background: var(--surface);
    padding: 2rem;
    border-radius: 20px;
    border: 1px solid var(--glass-border);
}

.timeline-date {
    color: var(--primary);
    font-weight: 700;
    margin-bottom: 0.5rem;
}

/* Certifications */
.certs-section {
    padding: 100px 0;
}

.cert-card {
    display: flex;
    align-items: center;
    gap: 2rem;
    background: var(--surface);
    padding: 2.5rem;
    border-radius: 24px;
    border: 1px solid var(--glass-border);
    max-width: 700px;
    margin: 0 auto;
}

.highlight-cert {
    border: 1px solid var(--primary-glow);
    box-shadow: 0 0 40px rgba(0, 224, 255, 0.05);
}

.cert-icon {
    font-size: 3.5rem;
    color: var(--primary);
}

.cert-status {
    padding: 0.5rem 1rem;
    background: var(--primary);
    color: var(--background);
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 700;
}

/* Hire CTA */
.hire-cta-section {
    padding: 100px 0;
}

.cta-box {
    background: linear-gradient(135deg, var(--secondary), var(--primary));
    padding: 5rem;
    border-radius: 40px;
    text-align: center;
    color: var(--white);
}

.cta-box h2 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    color: white;
}

.cta-box p {
    font-size: 1.2rem;
    margin-bottom: 2.5rem;
    opacity: 0.9;
}

.cta-box .btn-primary {
    background: white;
    color: var(--secondary);
    font-size: 1.1rem;
}

/* Contact Section */
.contact-section {
    padding: 100px 0;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.contact-details {
    list-style: none;
    margin-top: 2rem;
}

.contact-details li {
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    font-size: 1.1rem;
    color: var(--gray);
}

.contact-details i {
    color: var(--primary);
    font-size: 1.2rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.contact-form input, .contact-form textarea {
    width: 100%;
    padding: 1.2rem;
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    color: white;
    outline: none;
    transition: var(--transition);
}

.contact-form input:focus, .contact-form textarea:focus {
    border-color: var(--primary);
    background: rgba(255,255,255,0.08);
}

.full-width {
    width: 100%;
}

/* Footer */
footer {
    padding: 50px 0;
    border-top: 1px solid var(--glass-border);
    text-align: center;
}

.social-links {
    margin-top: 1.5rem;
    display: flex;
    justify-content: center;
    gap: 1.5rem;
}

.social-links a {
    font-size: 1.5rem;
    color: var(--gray);
    transition: var(--transition);
}

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

/* Mobile Responsive */
@media (max-width: 992px) {
    .nav-links { display: none; }
    .menu-toggle { display: block; }
    .hero-content { grid-template-columns: 1fr; text-align: center; }
    .hero-text h1 { font-size: 3rem; }
    .hero-text .lead { margin: 0 auto 2.5rem; }
    .stats-grid { grid-template-columns: 1fr 1fr; margin-top: 0; }
    .skills-grid { grid-template-columns: 1fr; }
    .contact-grid { grid-template-columns: 1fr; }
    .timeline::after { left: 40px; }
    .timeline-item { width: 100%; padding-left: 80px; text-align: left !important; }
    .timeline-item:nth-child(even) { left: 0; }
}

/* Preloader Styles */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.8s ease-in-out, visibility 0.8s;
}

#preloader.fade-out {
    opacity: 0;
    visibility: hidden;
}

.preloader-content {
    position: relative;
    text-align: center;
    perspective: 1000px;
}

.fire-text {
    font-size: 6rem;
    font-weight: 900;
    text-transform: uppercase;
    color: #fff;
    letter-spacing: 5px;
    margin: 0;
    transform-style: preserve-3d;
    perspective: 1000px;
}

.fire-text span {
    display: inline-block;
    opacity: 0;
    transform: translateY(-200px) rotateX(25deg) scale(0.5);
    background: linear-gradient(to top, var(--primary), var(--secondary), #fff);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: ball-throw 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards, 
               cyan-glow 2s ease-in-out infinite alternate;
}

/* Sequential delays for each letter ASHOKKUMAR (10 letters) */
.fire-text span:nth-child(1) { animation-delay: 0.1s, 0.1s; }
.fire-text span:nth-child(2) { animation-delay: 0.2s, 0.2s; }
.fire-text span:nth-child(3) { animation-delay: 0.3s, 0.3s; }
.fire-text span:nth-child(4) { animation-delay: 0.4s, 0.4s; }
.fire-text span:nth-child(5) { animation-delay: 0.5s, 0.5s; }
.fire-text span:nth-child(6) { animation-delay: 0.6s, 0.6s; }
.fire-text span:nth-child(7) { animation-delay: 0.7s, 0.7s; }
.fire-text span:nth-child(8) { animation-delay: 0.8s, 0.8s; }
.fire-text span:nth-child(9) { animation-delay: 0.9s, 0.9s; }
.fire-text span:nth-child(10) { animation-delay: 1.0s, 1.0s; }

@keyframes ball-throw {
    0% {
        opacity: 0;
        transform: translateY(-200px) rotateX(25deg) scale(0.5) rotate(45deg);
        filter: blur(10px);
    }
    100% {
        opacity: 1;
        transform: translateY(0) rotateX(25deg) scale(1) rotate(0deg);
        filter: blur(0);
    }
}

.fire-base {
    position: absolute;
    bottom: -30px;
    left: 50%;
    transform: translateX(-50%);
    width: 140%;
    height: 60px;
    background: radial-gradient(ellipse at center, var(--primary-glow) 0%, transparent 70%);
    filter: blur(25px);
    opacity: 0.4;
    animation: pulsate 2s ease-in-out infinite alternate;
}

@keyframes cyan-glow {
    0% {
        text-shadow: 
            0 0 10px rgba(0, 224, 255, 0.3), 
            0 0 20px rgba(0, 224, 255, 0.1);
    }
    100% {
        text-shadow: 
            0 0 20px rgba(0, 224, 255, 0.6), 
            0 0 40px rgba(0, 224, 255, 0.3),
            0 0 60px rgba(99, 102, 241, 0.2);
    }
}

@keyframes pulsate {
    0% { transform: translateX(-50%) scale(0.9); opacity: 0.3; }
    100% { transform: translateX(-50%) scale(1.1); opacity: 0.6; }
}

@media (max-width: 768px) {
    .fire-text { font-size: 3.5rem; letter-spacing: 2px; }
}
