/* ====================================
   ARN PORTFOLIO - EXECUTIVE PREMIUM CSS
   ==================================== */

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
    scroll-behavior:smooth;
}

/* Base presentation structure setup with smooth native frame layout */
html {
    scroll-behavior: smooth;
}

body{
    font-family:'Poppins',sans-serif;
    background:#020208; /* Ultra-deep tech workspace black */
    color:#fff;
    overflow-x: hidden;
    overflow-y: auto; /* Fixed: Pure single vertical browser scrollbar track */
    position: relative;
    z-index: 0;
}

/* Clean transparent layout anchor */
.scroll-container {
    width: 100%;
    position: relative;
}

/* 🎯 DEAD-CENTER FULL SCREEN PRESENTATION SLIDES */
.slide-section, .section {
    height: 100vh;
    min-height: 100vh;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;     /* Centers content horizontally perfectly */
    justify-content: center;   /* Centers content vertically dead-center */
    position: relative;
    overflow: hidden;        /* Shield layer preventing sub-elements from trailing out */
    padding: 100px 8% 40px 8%;  /* Safe distribution margin beneath sticky navbar */
    box-sizing: border-box;
}

/* 🚀 HERO SPECIFIC PERFECT DEAD-CENTER FIX */
.hero {
    height: 100vh;
    min-height: 100vh;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;       /* Absolute horizontal centering */
    justify-content: center;     /* Absolute vertical centering */
    position: relative;
    overflow: hidden;
    padding: 80px 8% 0 8%;      /* Adjusted padding to balance navbar mathematically */
    box-sizing: border-box;
}

/* Inner Layout Wrapping Constraint */
.hero-content {
    position: relative;
    z-index: 10;
    width: 100%;
    max-width: 1200px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.slide-wrapper {
    width: 100%;
    max-width: 1200px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* Base Ambient Space & Nebula Coordinates Grid */
body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        radial-gradient(circle at 15% 20%, rgba(124, 58, 237, 0.18), transparent 35%),
        radial-gradient(circle at 85% 15%, rgba(0, 191, 255, 0.15), transparent 30%),
        radial-gradient(circle at 50% 85%, rgba(124, 58, 237, 0.12), transparent 40%),
        /* Precision Dot-Matrix Starfield Network Elements */
        radial-gradient(rgba(255, 255, 255, 0.15) 1px, transparent 1px),
        radial-gradient(rgba(0, 191, 255, 0.2) 1.5px, transparent 1.5px);
    background-size: 100% 100%, 100% 100%, 100% 100%, 80px 80px, 240px 240px;
    background-position: 0 0, 0 0, 0 0, 0 0, 40px 40px;
    z-index: -4;
    opacity: 0.85;
}

/* Core Mainframe Structural Alignment Mesh */
.bg-grid{
    position:fixed;
    width:100%;
    height:100%;
    background-image:
    linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    background-size:40px 40px;
    z-index:-3;
    opacity: 0.7;
}

/* Advanced Stark UI Schematic Layer (Neural Nets, Matrices & Right Globe System) */
.tech-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        /* Left: Neural Nodes Matrix Intersections */
        radial-gradient(circle at 10% 25%, rgba(0, 212, 255, 0.08) 4px, transparent 12px),
        radial-gradient(circle at 18% 40%, rgba(139, 92, 246, 0.08) 5px, transparent 15px),
        radial-gradient(circle at 8% 65%, rgba(0, 212, 255, 0.07) 6px, transparent 18px),
        /* Right: High-ML System Globe Axis Curves */
        radial-gradient(circle at 88% 22%, transparent 120px, rgba(0, 212, 255, 0.04) 122px, rgba(0, 212, 255, 0.05) 124px, transparent 126px),
        radial-gradient(circle at 88% 22%, transparent 180px, rgba(139, 92, 246, 0.03) 182px, rgba(139, 92, 246, 0.04) 185px, transparent 188px),
        /* Universal Engineering Tech Metrics Mapping */
        linear-gradient(rgba(0, 191, 255, 0.015) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 191, 255, 0.015) 1px, transparent 1px);
    background-size: 100% 100%, 100% 100%, 100% 100%, 100% 100%, 100% 100%, 200px 12px, 12px 200px;
    z-index: -2;
    opacity: 0.9;
    pointer-events: none;
}

/* Ambient Visual Glow Highlights */
.bg-glow{
    position:fixed;
    border-radius:50%;
    filter:blur(140px);
    z-index:-1;
}

.glow1{
    width:400px;
    height:400px;
    background:#00bfff;
    top:-100px;
    left:-100px;
    opacity:.15;
}

.glow2{
    width:400px;
    height:400px;
    background:#7c3aed;
    bottom:-100px;
    right:-100px;
    opacity:.15;
}

/* Navbar Layout */
.navbar{
    position:fixed;
    top:0;
    left:0;
    width:100%;
    padding:20px 8%;
    display:flex;
    justify-content:space-between;
    align-items:center;
    backdrop-filter:blur(20px);
    background:rgba(2, 2, 8, 0.7);
    z-index:1000;
}

.logo{
    display: flex;
    align-items: center;
}

.logo .arn-logo{
    background:linear-gradient(
        135deg,
        #00d4ff,
        #8b5cf6
    );
    -webkit-background-clip: text; /* Fixed spelling syntax error */
    background-clip:text;
    -webkit-text-fill-color:transparent;
    font-size:1.8rem;
    font-weight:900;
    letter-spacing:1px;
    display: inline-block;
}

.nav-links{
    display:flex;
    list-style:none;
    gap:30px;
}

.nav-links a{
    color:white;
    text-decoration:none;
    transition:.3s;
}

.nav-links a:hover{
    color:#00bfff;
}

/* Hero Inner Graphic Glow Fix */
.hero-content::before{
    content:"";
    position:absolute;
    width:300px;
    height:300px;
    top:50%;
    left:50%;
    transform:translate(-50%,-50%);
    border-radius:50%;
    background:radial-gradient(
        circle,
        rgba(0,191,255,.25),
        transparent 70%
    );
    filter:blur(70px);
    z-index:-1;
}

.tag{
    display:inline-block;
    width: max-content;
    padding:10px 18px;
    border:1px solid rgba(255,255,255,.1);
    border-radius:50px;
    margin: 0 auto 10px auto;
    background:rgba(255,255,255,.05);
    font-size: 0.9rem;
    letter-spacing: 0.5px;
}

/* 🛠️ FIXED GLITCH: ARN.init() TEXT MASK PROTECTED FROM BOXING EFFECT */
.hero .arn-logo{
    font-size:6.5rem; 
    font-weight:900;
    letter-spacing:6px;
    margin:5px 0 5px 0;
    display: inline-block;
    width: auto; /* Width auto handles absolute typography footprint bounds */
    background:linear-gradient(
        135deg,
        #00d4ff,
        #3b82f6,
        #8b5cf6
    );
    -webkit-background-clip: text; /* Fixed spelling syntax error */
    background-clip:text;
    -webkit-text-fill-color:transparent;
    color: transparent;
    filter: drop-shadow(0 0 15px rgba(0, 212, 255, 0.3)); /* Glow protection rule */
    position: relative;
    animation:glowPulse 4s ease-in-out infinite;
}

.hero h2{
    margin-top:2px;
    font-size:1.8rem;
}

.hero-line{
    color:#c4b5fd;
    font-size:1.3rem;
    font-weight:600;
    margin-top:10px;
}

.hero-description{
    max-width:750px;
    margin:10px auto;
    color:#bdbdbd;
    line-height:1.6;
    font-size:0.95rem;
}

.hero-buttons{
    display:flex;
    justify-content:center;
    gap:20px;
    margin-top:15px;
}

/* Premium Core Action Controls */
.btn-primary{
    background:linear-gradient(
        135deg,
        #00bfff,
        #7c3aed
    );
    color:white;
    font-weight:600;
    padding:12px 26px;
    text-decoration:none;
    border-radius:12px;
    transition:.3s;
    border:none;
}

.btn-primary:hover{
    transform:translateY(-5px);
    box-shadow:0 0 25px rgba(0,191,255,.4);
}

.btn-secondary{
    padding:12px 26px;
    text-decoration:none;
    border-radius:12px;
    transition:.3s;
    border:1px solid #00bfff;
    color:white;
}

.btn-secondary:hover{
    background:#00bfff;
    color:black;
}

/* Structural Spacing Compression Rules */
.section-title{
    text-align:center;
    margin-bottom:25px !important;
}

.section-title span{
    color:#00bfff;
    letter-spacing:2px;
}

.section-title h2{
    font-size:2.6rem;
    margin-top:5px;
}

/* About Layout Rules */
.about-card{
    max-width:900px;
    margin:auto;
    padding:40px;
    border-radius:20px;
    background:rgba(255,255,255,.05);
    backdrop-filter:blur(15px);
    border:1px solid rgba(255,255,255,.08);
}

.about-card p{
    color:#cfcfcf;
    line-height:1.9;
    margin-bottom:15px;
}

/* Skills System Metrics Grid */
.skills-grid{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(180px,1fr));
    gap:15px !important; 
    width: 100%;
}

.skill-card{
    padding:15px !important;
    text-align:center;
    border-radius:15px;
    background:rgba(255,255,255,.05);
    border:1px solid rgba(255,255,255,.08);
    transition:.3s;
}

.skill-card:hover{
    transform:translateY(-8px);
    border-color:#00bfff;
}

/* Experience Modules Layout */
.experience-card{
    width: 100%;
    max-width:800px;
    margin:auto;
    text-align:center;
    padding:40px;
    border-radius:20px;
    background:rgba(255,255,255,.05);
    border:1px solid rgba(255,255,255,.08);
}

.experience-card h3{
    font-size:1.8rem;
    color:#00bfff;
}

.experience-card h4{
    margin:10px 0;
}

.experience-card p{
    color:#cfcfcf;
    line-height:1.8;
}

/* Featured Projects Modules Layout */
.projects-grid{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(280px,1fr));
    gap:15px !important;
    width: 100%;
}

.project-card{
    overflow:hidden;
    border-radius:24px;
    background:rgba(255,255,255,.04);
    border:1px solid rgba(255,255,255,.08);
    backdrop-filter:blur(15px);
    transition:.4s;
}

.project-card:hover{
    transform:translateY(-12px);
    border-color:rgba(0,191,255,.4);
}

.project-card img{
    width:100%;
    height:140px !important; 
    object-fit:cover;
}

.project-content{
    padding:20px;
}

.project-content h3{
    margin-bottom:8px;
    font-size: 1.3rem;
}

.project-content p{
    color:#cfcfcf;
    line-height:1.6;
    font-size: 0.9rem;
}

.tech-stack{
    display:flex;
    flex-wrap:wrap;
    gap:8px;
    margin:15px 0;
}

.tech-stack span{
    background:#10182b;
    padding:4px 10px;
    border-radius:50px;
    font-size:.75rem;
}

.project-btn{
    display:inline-block;
    margin-top:5px;
    text-decoration:none;
    background:#00bfff;
    color:black;
    padding:10px 18px;
    border-radius:10px;
    font-weight:600;
    font-size: 0.9rem;
}

/* 🛠 Ink symmetry adjustments for Code + Live buttons */
.project-buttons {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.project-btn.live-btn {
    background: transparent !important;
    border: 1px solid #00bfff;
    color: #00bfff;
    transition: 0.3s ease;
}

.project-btn.live-btn:hover {
    background: #00bfff !important;
    color: black;
    box-shadow: 0 0 15px rgba(0, 191, 255, 0.4);
}

/* Contact Module Configurations */
.contact-grid{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(250px,1fr));
    gap:25px;
    width: 100%;
}

.contact-card{
    text-decoration:none;
    color:white;
    padding:35px;
    text-align:center;
    border-radius:18px;
    background:rgba(255,255,255,.05);
    border:1px solid rgba(255,255,255,.08);
    transition:.3s;
}

.contact-card:hover{
    transform:translateY(-8px);
    border-color:#00bfff;
}

.contact-card h3{
    margin-bottom:10px;
}

/* Footer Element Configuration */
footer{
    text-align:center;
    padding:40px 20px;
    width: 100%;
}

footer h2{
    color:#00bfff;
    margin-bottom:10px;
}

footer p{
    margin-bottom:10px;
    color:#cfcfcf;
}

footer span{
    color:#8f8f8f;
}

/* Presentation boundary specifications for footer element layers */
.footer-slide {
    height: auto !important;
    min-height: 40vh !important;
}

/* Responsive Adaptive Scaling Query Sets */
@media(max-width:768px){
    .slide-section, .section {
        height: auto;
        min-height: auto;
        padding: 80px 20px 40px 20px;
    }

    .hero {
        height: auto;
        min-height: auto;
        padding: 100px 20px 60px 20px;
    }

    .hero .arn-logo{
        font-size:3.5rem;
        letter-spacing:3px;
    }

    .hero h2{
        font-size:1.4rem;
    }

    .tag {
        font-size: 0.8rem;
        padding: 8px 14px;
    }

    .nav-links{
        display:none;
    }

    .hero-buttons{
        flex-direction:column;
    }

    .section-title h2{
        font-size:2rem;
    }
}

/* Viewport Global Scroll Animation Modules */
.about-card,
.skill-card,
.experience-card,
.project-card,
.contact-card{
    opacity:0;
    transform:translateY(40px);
    transition:0.8s ease;
}

.show{
    opacity:1;
    transform:translateY(0);
}

/* Active State Anchor Nav Elements */
.nav-links a.active{
    color:#00bfff;
}

/* Frame Top Action Controls Link Trigger */
#topBtn{
    position:fixed;
    bottom:30px;
    right:30px;
    width:50px;
    height:50px;
    border:none;
    border-radius:50%;
    background:#00bfff;
    color:black;
    font-size:22px;
    font-weight:bold;
    cursor:pointer;
    display:none;
    z-index:999;
    transition:.3s;
}

#topBtn:hover{
    transform:scale(1.1);
}

/* Engine Dynamic Core Pulses & Interaction Keyframes Set */
@keyframes glowPulse{
    0%{
        transform:scale(1);
    }
    50%{
        transform:scale(1.02);
    }
    100%{
        transform:scale(1);
    }
}

.arn-logo{
    cursor:default;
    transition:.4s;
}

.arn-logo:hover{
    transform:scale(1.03);
}
