:root {
    --primary-bg: #050505;
    --secondary-bg: #0f0f0f;
    --accent-color: #00f2ff;
    --accent-glow: rgba(0, 242, 255, 0.5);
    --text-main: #ffffff;
    --text-muted: #a0a0a0;
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);
    --transition: 0.3s ease;
}

[data-theme="light"] {
    --primary-bg: #f8fafc;
    --secondary-bg: #ffffff;
    --accent-color: #3b82f6;
    --accent-glow: rgba(59, 130, 246, 0.5);
    --text-main: #0f172a;
    --text-muted: #64748b;
    --glass-bg: rgba(0, 0, 0, 0.02);
    --glass-border: rgba(0, 0, 0, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--primary-bg);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    transition: background-color var(--transition), color var(--transition);
}

h1, h2, h3, h4, h5, h6 {
    color: var(--text-main);
}

p, span, label {
    color: var(--text-main);
}

.text-muted {
    color: var(--text-muted) !important;
}

/* Laptop/Desktop Navbar Fixes */
@media (min-width: 992px) {
    .navbar {
        padding: 15px 50px !important;
        margin: 20px 50px !important;
        border-radius: 50px !important;
        background: rgba(15, 23, 42, 0.8) !important;
        backdrop-filter: blur(10px);
        border: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .navbar-brand {
        font-size: 1.5rem !important;
    }
    
    .navbar-nav .nav-link {
        padding: 8px 15px !important;
    }
}

/* Hero Section Laptop Fixes */
@media (min-width: 992px) {
    .hero {
        padding: 120px 10% 80px;
    }
    
    .circle-container {
        width: 450px;
        height: 450px;
    }
    
    .profile-img-wrapper {
        width: 300px;
        height: 300px;
    }
}

/* Form inputs fix */
.form-control {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    color: var(--text-main);
}

.form-control:focus {
    background: var(--glass-bg);
    color: var(--text-main);
    border-color: var(--accent-color);
    box-shadow: 0 0 10px var(--accent-glow);
}

/* Theme Toggle */
.theme-toggle {
    cursor: pointer;
    font-size: 1.3rem;
    color: var(--text-main);
    transition: var(--transition);
    display: flex;
    align-items: center;
}

/* Glassmorphism Card */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 30px;
    transition: 0.3s;
}

.glass-card:hover {
    border-color: var(--accent-color);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transform: translateY(-5px);
}

[data-theme="light"] .glass-card:hover {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

/* Premium Buttons */
.btn-premium {
    background: linear-gradient(135deg, var(--accent-color), #0066ff);
    color: #fff !important;
    padding: 12px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    display: inline-block;
    transition: 0.3s;
    border: none;
    cursor: pointer;
    box-shadow: 0 5px 15px var(--accent-glow);
}

.btn-premium:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 25px var(--accent-glow);
    color: #fff !important;
}

/* Animations */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Loading Screen */
#loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.loader-logo {
    font-size: 3rem;
    font-weight: 800;
    color: var(--accent-color);
    margin-bottom: 20px;
    animation: glow 2s infinite alternate;
}

.loader-bar {
    width: 200px;
    height: 2px;
    background: rgba(255,255,255,0.1);
    position: relative;
}

.loader-progress {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background: var(--accent-color);
    width: 0%;
    transition: 0.1s;
}

@keyframes glow {
    from { text-shadow: 0 0 10px var(--accent-glow); }
    to { text-shadow: 0 0 30px var(--accent-color); }
}

/* Rotating Code Circle */
.circle-container {
    position: relative;
    width: 450px;
    height: 450px;
    display: flex;
    justify-content: center;
    align-items: center;
}

@media (max-width: 991.98px) {
    .circle-container {
        width: 320px;
        height: 320px;
        margin: 0 auto 40px;
    }
}

.profile-img-wrapper {
    position: relative;
    width: 300px;
    height: 300px;
    z-index: 2;
    border-radius: 50%;
    padding: 10px;
    background: linear-gradient(135deg, var(--accent-color), #0066ff);
    box-shadow: 0 0 50px var(--accent-glow);
}

@media (max-width: 991.98px) {
    .profile-img-wrapper {
        width: 220px;
        height: 220px;
    }
}

.profile-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    border: 5px solid var(--secondary-bg);
}

.rotating-text {
    position: absolute;
    width: 100%;
    height: 100%;
    animation: rotateText 20s linear infinite;
}

@keyframes rotateText {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.rotating-text span {
    position: absolute;
    left: 50%;
    transform-origin: 0 225px;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--accent-color);
    text-transform: uppercase;
    letter-spacing: 2px;
}

@media (max-width: 991.98px) {
    .rotating-text span {
        transform-origin: 0 160px;
        font-size: 0.9rem;
    }
}

.code-icons {
    position: absolute;
    width: 100%;
    height: 100%;
    animation: rotateText 30s linear infinite reverse;
}

.code-icons i {
    position: absolute;
    left: 50%;
    top: 50%;
    font-size: 1.5rem;
    color: rgba(255,255,255,0.2);
    transform-origin: 0 180px;
}

@media (max-width: 991.98px) {
    .code-icons i {
        transform-origin: 0 130px;
        font-size: 1.2rem;
    }
}

/* Typing Text Enhancement */
.typing-text {
    border-right: 3px solid var(--accent-color);
    padding-right: 5px;
    animation: blink 0.7s infinite;
}

@keyframes blink {
    50% { border-color: transparent; }
}

/* Float Animation for Hero */
.hero-content {
    animation: fadeInUp 1s ease-out;
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}


@media (max-width: 991.98px) {
    .hero {
        padding: 120px 5% 60px;
        text-align: center;
    }
    .hero-content h1 {
        font-size: 2.5rem !important;
    }
    .hero-content p {
        padding-right: 0 !important;
    }
    .d-flex.gap-4 {
        justify-content: center;
    }
}


.hero-content h1 {
    font-size: 4rem;
    font-weight: 800;
    margin-bottom: 20px;
}

.accent-text {
    color: var(--accent-color);
}

/* Floating Shapes */
.shape {
    position: absolute;
    z-index: -1;
    filter: blur(50px);
    border-radius: 50%;
    opacity: 0.3;
}

.shape-1 {
    width: 300px;
    height: 300px;
    background: var(--accent-color);
    top: 10%;
    right: 10%;
    animation: float 10s infinite alternate;
}

@keyframes float {
    from { transform: translate(0, 0); }
    to { transform: translate(-50px, 50px); }
}

/* Section Headings */
.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 50px;
    text-align: center;
}

@media (max-width: 767.98px) {
    .section-title {
        font-size: 2rem;
    }
    .section-padding {
        padding: 60px 0;
    }
}

.section-padding {
    padding: 100px 0;
}

/* Skill Bars */
.skill-item {
    margin-bottom: 25px;
}

.skill-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

.skill-bar {
    height: 8px;
    background: rgba(255,255,255,0.05);
    border-radius: 10px;
    overflow: hidden;
}

[data-theme="light"] .skill-bar {
    background: rgba(0,0,0,0.1);
}

.skill-progress {
    height: 100%;
    background: linear-gradient(90deg, var(--accent-color), #0066ff);
    width: 0;
    transition: 1.5s ease-in-out;
}

/* Portfolio Filter */
.filter-btn {
    background: transparent;
    border: 1px solid var(--glass-border);
    color: var(--text-muted);
    padding: 8px 20px;
    border-radius: 30px;
    cursor: pointer;
    margin: 5px;
    transition: 0.3s;
}

.filter-btn.active, .filter-btn:hover {
    background: var(--accent-color);
    color: #000;
    border-color: var(--accent-color);
}

/* Project Card */
.project-card {
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    aspect-ratio: 4/3;
}

.project-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.5s;
}

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: 0.5s;
    padding: 20px;
    text-align: center;
}

.project-card:hover .project-overlay {
    opacity: 1;
}

.project-card:hover .project-img {
    transform: scale(1.1);
}

/* Responsive Grid Adjustments */
@media (max-width: 575.98px) {
    .container {
        padding-left: 20px;
        padding-right: 20px;
    }
}
