:root {
  /* Luminescent Black Theme: Tech Blue Accent */
  --bg: #000000; /* Deep Black Background */
  --card: #141414; /* Dark Card Background */
  --text: #ffffff; /* Pure White Text */
  --muted: #a3a3a3; /* Light Gray for Muted Text */
  --accent: #00BFFF; /* Primary Tech Blue Accent (Sky Blue) */
  --accent-light: #00A3E0; /* Slightly darker shade for hover */
  --radius-xl: 12px; /* Large radius for main containers/cards */
  --radius-sm: 8px;  /* Small radius for buttons */
  --container: 1200px;
  --shadow-glow: rgba(0, 191, 255, 0.4); /* Blue Glow */
  --shadow-dark: rgba(0, 0, 0, 0.8);
  --border-subtle: 1px solid #1a1a1a;
}

body {
    margin: 0;
    font-family: Inter, sans-serif;
    background: var(--bg);
    color: var(--text); 
}
.container {
    max-width: var(--container);
    margin: auto;
    padding: 0 20px;
}
a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s;
}
h2 {
    margin-bottom: 25px;
    font-size: 32px;
}
.center {
    text-align: center;
}
.section {
    padding: 80px 0;
}

/* Header */
.header {
    background: rgba(0, 0, 0, 0.95); /* Semi-transparent black */
    position: sticky;
    top: 0;
    z-index: 50;
    border-bottom: var(--border-subtle);
}
.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 0;
}
.brand {
    font-weight: 800;
    font-size: 1.2rem;
    color: var(--text);
}
.brand span {
    color: var(--accent);
}
.main-nav {
    display: flex;
    gap: 20px;
}
.main-nav a {
    color: var(--muted);
    font-weight: 500;
    padding: 5px 0;
}
.main-nav a:hover {
    color: var(--accent);
}
.hamburger { display: none; }
.main-nav.open { display: flex; flex-direction: column; position: absolute; top: 100%; left: 0; right: 0; background: var(--bg); border-top: var(--border-subtle); padding: 10px 20px; }


/* Hero */
.hero {
    padding: 100px 0 80px;
    display: flex;
    align-items: center;
}
.hero-inner {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    align-items: center;
}
.hero-left {
    flex: 2;
    min-width: 280px;
}
.hero-right {
    flex: 1;
    display: flex;
    justify-content: center;
}
.eyebrow {
    color: var(--accent);
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1.5px;
    margin-bottom: 10px;
}
.profile-photo-big {
    width: 220px;
    height: 220px;
    border-radius: 50%;
    border: 4px solid var(--accent);
    box-shadow: 0 0 20px var(--shadow-glow);
    object-fit: cover;
}

/* --- ANIMATION: Floating Profile Photo --- */
.float {
    animation: float 5s ease-in-out infinite;
}
@keyframes float {
    0%, 100% { transform: translateY(0) }
    50% { transform: translateY(-15px) }
}
/* ----------------------------------------- */

.hero-title {
    font-size: clamp(34px, 6vw, 52px);
    margin: 10px 0 20px;
    line-height: 1.2;
}
.hero-sub {
    color: var(--muted);
    margin-bottom: 30px;
    line-height: 1.6;
}
.hero-ctas {
    display: flex;
    gap: 15px;
}

/* Buttons */
.btn {
    padding: 12px 24px;
    border-radius: var(--radius-sm);
    display: inline-block;
    font-weight: 600;
    text-align: center;
    transition: background 0.3s, box-shadow 0.3s, color 0.3s;
}
.btn.primary {
    background: var(--accent);
    color: var(--bg);
    box-shadow: 0 0 10px var(--shadow-glow);
}
.btn.primary:hover {
    background: var(--accent-light);
    box-shadow: 0 0 15px var(--shadow-glow);
}
.btn.ghost {
    border: 1px solid var(--accent);
    color: var(--accent);
}
.btn.ghost:hover {
    background: rgba(0, 191, 255, 0.1);
    color: var(--accent-light);
}

/* About Section */
.about-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    align-items: flex-start;
}
.about-image {
    flex: 1;
    text-align: center;
    min-width: 200px;
    position: relative;
    padding: 20px; 
}
.about-photo {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    border: 3px solid var(--accent);
    object-fit: cover;
}
.about-content {
    flex: 2;
}
.about-content p {
    color: var(--muted);
    line-height: 1.6;
    margin-bottom: 15px;
}
.about-content strong {
    color: var(--text);
}

/* Stats */
.stats-bar {
    background: var(--card);
    display: flex;
    justify-content: space-around;
    padding: 30px 40px;
    border-radius: var(--radius-xl);
    margin: 40px 0;
    box-shadow: 0 4px 10px var(--shadow-dark);
    border: var(--border-subtle);
}
.stats-item {
    text-align: center;
    padding: 0 20px;
    border-right: 1px solid #333;
}
.stats-item:last-child {
    border-right: none;
}
.stats-item strong {
    font-size: 2rem;
    display: block;
    color: var(--accent);
    margin-bottom: 5px;
}
.stats-item span {
    color: var(--muted);
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 1px;
}

/* Bullet Points */
.bullets {
    list-style: none;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 10px;
    margin-top: 20px;
}
.bullets li {
    background: var(--card);
    padding: 10px 15px;
    border-radius: var(--radius-sm);
    color: var(--muted);
    font-weight: 500;
    border-left: 3px solid var(--accent);
}
.bullets li:hover {
    border-left-color: var(--accent-light);
    color: var(--text);
}


/* Skills & Certifications Grid */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}
.skill-card, .cert-card {
    background: var(--card);
    padding: 25px;
    border-radius: var(--radius-xl);
    box-shadow: 0 4px 10px var(--shadow-dark);
    border: var(--border-subtle);
    transition: border-color 0.3s;
}
.skill-card:hover, .cert-card:hover {
    border-color: var(--accent);
}
.skill-card h3, .cert-card h3 {
    margin-top: 0;
    color: var(--accent);
}

/* Progress Bar (Animation is applied in script.js) */
.bar{
    background:#222;
    border-radius: 6px;
    height: 10px;
    overflow: hidden;
    margin-top: 10px;
}
.bar span{
    display:block;
    height:100%;
    border-radius: 6px;
    background: var(--accent);
    width:0;
    /* --- ANIMATION: Skill Bar Expansion --- */
    transition:width 1.5s ease; 
    /* -------------------------------------- */
}

/* Experience (Timeline) */
.timeline {
    display: grid;
    grid-template-columns: 1fr;
    gap: 25px;
}
.timeline-item {
    background: var(--card);
    padding: 25px;
    border-radius: var(--radius-xl);
    border: var(--border-subtle);
    transition: transform 0.3s, border-color 0.3s;
}
.timeline-item:hover {
    transform: translateY(-5px);
    border-color: var(--accent);
}
.timeline-item h3 {
    margin-top: 0;
    color: var(--text);
}
.timeline-item span {
    display: block;
    color: var(--accent);
    font-size: 0.9rem;
    margin-bottom: 10px;
}
.timeline-item p {
    color: var(--muted);
}


/* Projects */
.project-block {
    display: flex;
    gap: 40px;
    align-items: center;
    margin-bottom: 60px;
    padding: 20px;
    border-radius: var(--radius-xl);
    background: var(--card);
    border: var(--border-subtle);
}
.project-block:nth-child(even) {
    flex-direction: row-reverse;
}
.project-image {
    flex: 1;
    min-width: 300px;
    text-align: center;
}
.project-image img {
    max-width: 100%;
    border-radius: var(--radius-sm);
    box-shadow: 0 0 15px var(--shadow-dark);
    transition: transform 0.4s, box-shadow 0.4s;
    border: 1px solid #333;
}
.project-image:hover img {
    transform: scale(1.02);
    box-shadow: 0 0 25px var(--shadow-glow);
}
.project-info {
    flex: 2;
}
.project-info h3 {
    color: var(--accent);
    font-size: 24px;
    margin-top: 0;
}
.project-info p {
    color: var(--muted);
    line-height: 1.6;
    margin-bottom: 20px;
}


/* Services Section */
#services {
    padding: 80px 0;
    background: var(--bg);
    text-align: center;
}
.services-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-top: 40px;
}
.service-card {
    background: var(--card);
    padding: 30px;
    border-radius: var(--radius-xl);
    box-shadow: 0 4px 10px var(--shadow-dark);
    border: var(--border-subtle);
    text-align: left;
    transition: transform 0.3s ease, border-color 0.3s ease;
}
.service-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent);
}
.service-card h3 {
    font-size: 22px;
    margin-bottom: 15px;
    color: var(--accent);
}
.service-card p {
    font-size: 15px;
    color: var(--muted);
    line-height: 1.6;
}

/* Contact */
#contact .contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 40px;
}
.contact-card {
    background: var(--card);
    padding: 25px;
    border-radius: var(--radius-xl);
    text-align: center;
    font-weight: 600;
    color: var(--muted);
    transition: background 0.3s, color 0.3s, border-color 0.3s;
    border: var(--border-subtle);
}
.contact-card:hover {
    background: #202020;
    color: var(--accent);
    border-color: var(--accent);
}


/* Footer */
.footer {
    padding: 40px 0;
    background: #080808;
    border-top: var(--border-subtle);
}
.footer-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    padding-bottom: 30px;
}
.footer-col {
    color: var(--muted);
    font-size: 0.95rem;
}
.footer-col h3 {
    color: var(--text);
    margin-top: 0;
    font-size: 1.2rem;
}
.footer-col a {
    display: block;
    margin-bottom: 8px;
    color: var(--muted);
}
.footer-col a:hover {
    color: var(--accent);
}
.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #1a1a1a;
    font-size: 0.85rem;
    color: #555;
}


/* --- ANIMATION: Scroll Reveal (CSS part) --- */
.reveal{opacity:0;transform:translateY(40px);transition:all .8s ease;}
.reveal.active{opacity:1;transform:translateY(0);}

/* --- ANIMATION: Typing Cursor --- */
.cursor{color:var(--accent);font-weight:bold;animation:blink 1s infinite;}
@keyframes blink{50%{opacity:0}}
/* ----------------------------------------- */


/* Media Queries for Responsiveness */
@media(max-width:992px){
    .project-block, .project-block:nth-child(even) { flex-direction: column; }
    .project-image { margin-bottom: 20px; }
    .project-info { min-width: auto; }
    .footer-grid { grid-template-columns: repeat(2, 1fr); }
    .stats-bar { padding: 25px 20px; }
}

@media(max-width:768px){
    .container { padding: 0 15px; }
    .about-grid { flex-direction: column; text-align: center; align-items: center;}
    
    .hero-inner { flex-direction: column; text-align: center; align-items: center;}
    .hero-title { font-size: 40px; }
    .hero-ctas { justify-content: center; }
    
    .stats-bar { flex-direction: column; gap: 20px; padding: 20px 10px;}
    .stats-item { border-right: none; padding: 10px 0; border-bottom: 1px solid #333; width: 100%;}
    .stats-item:last-child { border-bottom: none;}

    /* Navigation simplification for mobile */
    .main-nav { display: none; flex-direction: column; }
    .hamburger { display: block; background: none; border: none; cursor: pointer; padding: 0; }
    .hamburger span { display: block; width: 25px; height: 3px; background: var(--text); margin: 5px auto; transition: all 0.3s ease-in-out; }
    
    .main-nav.open { display: flex; position: absolute; top: 100%; left: 0; right: 0; background: var(--bg); border-top: var(--border-subtle); padding: 10px 0; }
    .main-nav.open a { padding: 10px 20px; text-align: center; }

    .footer-grid { grid-template-columns: 1fr; text-align: center; }
}