
/* ===== HACKNOW - PROFESSIONAL CSS FRAMEWORK ===== */
/* Version: 2.0 | Author: Professional Frontend Developer */

/* ===== CSS VARIABLES & CUSTOM PROPERTIES ===== */
:root {
    /* Color Palette */
    --primary-color: #00ff00;
    --primary-dark: #00cc00;
    --primary-light: #33ff33;
    --primary-transparent: rgba(0, 255, 0, 0.1);
    --primary-glow: rgba(0, 255, 0, 0.3);
    
    --background-primary: #000000;
    --background-secondary: rgba(0, 0, 0, 0.8);
    --background-tertiary: rgba(0, 0, 0, 0.95);
    
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.7);
    --text-muted: rgba(255, 255, 255, 0.5);
    --text-accent: #00ff00;
    
    --border-primary: rgba(0, 255, 0, 0.3);
    --border-secondary: rgba(0, 255, 0, 0.2);
    --border-hover: rgba(0, 255, 0, 0.6);
    
    --shadow-primary: 0 4px 20px rgba(0, 255, 0, 0.2);
    --shadow-secondary: 0 8px 30px rgba(0, 0, 0, 0.3);
    --shadow-glow: 0 0 20px rgba(0, 255, 0, 0.4);
    
    /* Typography */
    --font-primary: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-mono: 'Share Tech Mono', 'Courier New', monospace;
    --font-display: 'Saira Stencil One', sans-serif;
    --font-jersey: 'Jersey 10', sans-serif;
    
    /* Spacing Scale */
    --space-xs: clamp(4px, 1vw, 6px);
    --space-sm: clamp(8px, 1.5vw, 12px);
    --space-md: clamp(12px, 2vw, 16px);
    --space-lg: clamp(16px, 2.5vw, 24px);
    --space-xl: clamp(20px, 3vw, 32px);
    --space-2xl: clamp(24px, 4vw, 40px);
    --space-3xl: clamp(32px, 5vw, 48px);
    
    /* Border Radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --radius-full: 50%;
    
    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
    
    /* Z-Index Scale */
    --z-dropdown: 1000;
    --z-header: 1000;
    --z-modal: 2000;
    --z-toast: 3000;
    --z-loading: 4000;
    
    /* Breakpoints */
    --bp-sm: 480px;
    --bp-md: 768px;
    --bp-lg: 1024px;
    --bp-xl: 1200px;
    --bp-2xl: 1400px;
}

/* ===== CSS RESET & BASE STYLES ===== */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* ===== GLOBAL ICON ALIGNMENT FIX ===== */
.material-icons,
.material-symbols-outlined {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 1.2em !important;
    height: 1.2em !important;
    vertical-align: middle !important;
    line-height: 1 !important;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
}

body {
    font-family: var(--font-primary);
    background-color: var(--background-primary);
    color: var(--text-primary);
    line-height: 1.6;
    font-weight: 400;
    overflow-x: hidden;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: var(--space-md);
    color: var(--text-primary);
}

h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.75rem, 4vw, 3rem); }
h3 { font-size: clamp(1.5rem, 3.5vw, 2.5rem); }
h4 { font-size: clamp(1.25rem, 3vw, 2rem); }
h5 { font-size: clamp(1.125rem, 2.5vw, 1.75rem); }
h6 { font-size: clamp(1rem, 2vw, 1.5rem); }

p {
    margin-bottom: var(--space-md);
    color: var(--text-secondary);
    font-size: clamp(14px, 2.5vw, 16px);
}

a {
    color: var(--text-accent);
    text-decoration: none;
    transition: all var(--transition-normal);
}

a:hover {
    color: var(--primary-light);
    text-shadow: var(--shadow-glow);
}

/* ===== UTILITY CLASSES ===== */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }
.text-justify { text-align: justify; }

.text-primary { color: var(--text-primary); }
.text-secondary { color: var(--text-secondary); }
.text-muted { color: var(--text-muted); }
.text-accent { color: var(--text-accent); }

.font-mono { font-family: var(--font-mono); }
.font-display { font-family: var(--font-display); }
.font-jersey { font-family: var(--font-jersey); }

/* ===== SPACING UTILITIES ===== */
.m-0 { margin: 0; }
.m-1 { margin: var(--space-xs); }
.m-2 { margin: var(--space-sm); }
.m-3 { margin: var(--space-md); }
.m-4 { margin: var(--space-lg); }
.m-5 { margin: var(--space-xl); }

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: var(--space-xs); }
.mt-2 { margin-top: var(--space-sm); }
.mt-3 { margin-top: var(--space-md); }
.mt-4 { margin-top: var(--space-lg); }
.mt-5 { margin-top: var(--space-xl); }

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: var(--space-xs); }
.mb-2 { margin-bottom: var(--space-sm); }
.mb-3 { margin-bottom: var(--space-md); }
.mb-4 { margin-bottom: var(--space-lg); }
.mb-5 { margin-bottom: var(--space-xl); }

.p-0 { padding: 0; }
.p-1 { padding: var(--space-xs); }
.p-2 { padding: var(--space-sm); }
.p-3 { padding: var(--space-md); }
.p-4 { padding: var(--space-lg); }
.p-5 { padding: var(--space-xl); }

/* ===== FLEXBOX UTILITIES ===== */
.flex { display: flex; }
.flex-col { flex-direction: column; }
.flex-row { flex-direction: row; }
.flex-wrap { flex-wrap: wrap; }
.flex-nowrap { flex-wrap: nowrap; }

.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.items-end { align-items: flex-end; }
.items-stretch { align-items: stretch; }

.justify-center { justify-content: center; }
.justify-start { justify-content: flex-start; }
.justify-end { justify-content: flex-end; }
.justify-between { justify-content: space-between; }
.justify-around { justify-content: space-around; }
.justify-evenly { justify-content: space-evenly; }

.gap-1 { gap: var(--space-xs); }
.gap-2 { gap: var(--space-sm); }
.gap-3 { gap: var(--space-md); }
.gap-4 { gap: var(--space-lg); }
.gap-5 { gap: var(--space-xl); }

/* ===== GRID UTILITIES ===== */
.grid { display: grid; }
.grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
.grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

/* ===== LAYOUT COMPONENTS ===== */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-lg);
}

@media (max-width: 768px) {
    .container {
        padding: 0 var(--space-md);
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 var(--space-sm);
    }
}

/* ===== MAIN LAYOUT ===== */
main {
    flex: 1;
    min-height: calc(100vh - 200px);
    padding: var(--space-xl) 0;
    position: relative;
    overflow: hidden;
}

.main-content {
    display: flex;
    align-items: center;
    min-height: 100vh;
    padding: var(--space-2xl) 0;
    position: relative;
    overflow: hidden;
}

/* ===== MATRIX BACKGROUND ===== */
.matrix-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        180deg,
        rgba(0, 255, 0, 0.1) 0%,
        rgba(0, 255, 0, 0.05) 50%,
        rgba(0, 255, 0, 0.1) 100%
    );
    opacity: 0.3;
    z-index: -1;
    pointer-events: none;
}

.matrix-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.3;
    z-index: -1;
    pointer-events: none;
}

.main-container {
    display: flex;
    align-items: center;
    gap: var(--space-2xl);
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-lg);
}

.main-left {
    flex: 1;
    max-width: 600px;
}

.main-right {
    width: clamp(280px, 35vw, 410px);
    height: clamp(280px, 35vw, 410px);
    flex-shrink: 0;
    animation: float 4s ease-in-out infinite;
}

/* ===== HERO SECTION ===== */
.hero-title {
    font-weight: 900;
    font-size: clamp(2rem, 5vw, 3.5rem);
    text-shadow: 5px 4px 10px var(--primary-color);
    letter-spacing: 2px;
    line-height: 1.2;
    margin-bottom: var(--space-lg);
    color: var(--text-primary);
}

.hero-subtitle {
    font-weight: 500;
    font-size: clamp(1rem, 2.5vw, 1.5rem);
    color: var(--text-secondary);
    line-height: 1.4;
    margin-bottom: var(--space-xl);
}

.hero-subtitle .accent {
    color: var(--text-accent);
    letter-spacing: 3px;
}

/* ===== ANIMATIONS ===== */
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-24px); }
}

@keyframes glow {
    0%, 100% { box-shadow: 0 0 20px var(--primary-glow); }
    50% { box-shadow: 0 0 40px var(--primary-glow), 0 0 60px var(--primary-glow); }
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== GLOWING CIRCLE COMPONENT ===== */
.glowing-circle {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: var(--radius-full);
    display: flex;
    justify-content: center;
    align-items: center;
}

.glowing-circle::after {
    content: '';
    position: absolute;
    width: clamp(280px, 35vw, 380px);
    height: clamp(280px, 35vw, 380px);
    background-color: var(--background-primary);
    border-radius: var(--radius-full);
}

.glowing-circle span {
    position: absolute;
    width: 100%;
    height: 100%;
    background: linear-gradient(var(--background-primary), var(--primary-transparent));
    border-radius: var(--radius-full);
    animation: rotate 5s linear infinite;
}

.glowing-circle span:nth-child(1) {
    filter: blur(10px);
}

@keyframes rotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.circle-image {
    position: relative;
    width: clamp(280px, 35vw, 380px);
    height: clamp(280px, 35vw, 380px);
    border-radius: var(--radius-full);
    z-index: 1;
}

.circle-image img {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    max-width: clamp(250px, 32vw, 350px);
    object-fit: cover;
    border-radius: var(--radius-full);
}

/* ===== BUTTON COMPONENTS ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    padding: var(--space-sm) var(--space-lg);
    background: linear-gradient(45deg, var(--primary-color), var(--primary-dark));
    color: var(--background-primary);
    border: none;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: clamp(14px, 2.5vw, 16px);
    cursor: pointer;
    transition: all var(--transition-normal);
    text-decoration: none;
    min-height: 44px;
    white-space: nowrap;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    transition: left var(--transition-slow);
}

.btn:hover::before {
    left: 100%;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn:active {
    transform: translateY(0);
}

.btn:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

.btn-secondary {
    background: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

.btn-secondary:hover {
    background: var(--primary-transparent);
    border-color: var(--primary-light);
    color: var(--primary-light);
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--border-primary);
    color: var(--text-primary);
}

.btn-outline:hover {
    background: var(--primary-transparent);
    border-color: var(--primary-color);
    color: var(--primary-color);
}

/* ===== CARD COMPONENTS ===== */
.card {
    background: var(--background-secondary);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    transition: all var(--transition-normal);
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-color), var(--primary-light));
    transform: scaleX(0);
    transition: transform var(--transition-normal);
}

.card:hover::before {
    transform: scaleX(1);
}

.card:hover {
    border-color: var(--border-hover);
    box-shadow: var(--shadow-primary);
    transform: translateY(-4px);
}

.card-header {
    margin-bottom: var(--space-md);
    padding-bottom: var(--space-sm);
    border-bottom: 1px solid var(--border-secondary);
}

.card-title {
    font-size: clamp(1.25rem, 3vw, 1.5rem);
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--space-xs);
}

.card-subtitle {
    font-size: clamp(14px, 2.5vw, 16px);
    color: var(--text-secondary);
}

.card-body {
    margin-bottom: var(--space-md);
}

.card-footer {
    padding-top: var(--space-sm);
    border-top: 1px solid var(--border-secondary);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--space-sm);
}

/* ===== FORM COMPONENTS ===== */
.form-group {
    margin-bottom: var(--space-lg);
}

.form-label {
    display: block;
    margin-bottom: var(--space-sm);
    font-weight: 500;
    color: var(--text-accent);
    font-size: clamp(14px, 2.5vw, 16px);
}

.form-input,
.form-textarea,
.form-select {
    width: 100%;
    padding: var(--space-sm);
    background: var(--background-secondary);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: clamp(14px, 2.5vw, 16px);
    transition: all var(--transition-normal);
    min-height: 44px;
    font-family: inherit;
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px var(--primary-transparent);
    background: var(--background-tertiary);
}

.form-textarea {
    min-height: 120px;
    resize: vertical;
}

.form-error {
    color: #ff3333;
    font-size: clamp(12px, 2vw, 14px);
    margin-top: var(--space-xs);
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 1200px) {
    .main-container {
        padding: 0 var(--space-md);
        gap: var(--space-xl);
    }
}

@media (max-width: 1024px) {
    .main-container {
        flex-direction: column;
        text-align: center;
        gap: var(--space-xl);
    }
    
    .main-left {
        max-width: 100%;
    }
    
    .main-right {
        width: 320px;
        height: 320px;
    }
    
    .glowing-circle::after {
        width: 300px;
        height: 300px;
    }
    
    .circle-image {
        width: 300px;
        height: 300px;
    }
    
    .circle-image img {
        max-width: 270px;
    }
}

@media (max-width: 768px) {
    main {
        margin-top: 70px;
        padding: var(--space-lg) 0;
    }
    
    .main-content {
        min-height: calc(100vh - 250px);
        padding: var(--space-lg) 0;
    }
    
    .main-container {
        padding: 0 var(--space-sm);
        gap: var(--space-lg);
    }
    
    .main-right {
        width: 280px;
        height: 280px;
    }
    
    .glowing-circle::after {
        width: 260px;
        height: 260px;
    }
    
    .circle-image {
        width: 260px;
        height: 260px;
    }
    
    .circle-image img {
        max-width: 230px;
    }
    
    .hero-title {
        font-size: clamp(2rem, 7vw, 2.5rem);
    }
    
    .hero-subtitle {
        font-size: clamp(1rem, 3.5vw, 1.2rem);
    }
    
    .card {
        padding: var(--space-md);
    }
    
    .btn {
        padding: var(--space-sm) var(--space-md);
        font-size: clamp(13px, 2.5vw, 14px);
    }
}

@media (max-width: 480px) {
    main {
        margin-top: 60px;
        padding: var(--space-md) 0;
    }
    
    .main-content {
        min-height: calc(100vh - 200px);
        padding: var(--space-md) 0;
    }
    
    .main-container {
        padding: 0 var(--space-xs);
        gap: var(--space-md);
    }
    
    .main-right {
        width: 240px;
        height: 240px;
    }
    
    .glowing-circle::after {
        width: 220px;
        height: 220px;
    }
    
    .circle-image {
        width: 220px;
        height: 220px;
    }
    
    .circle-image img {
        max-width: 190px;
    }
    
    .hero-title {
        font-size: clamp(1.8rem, 8vw, 2.2rem);
    }
    
    .hero-subtitle {
        font-size: clamp(0.9rem, 4vw, 1.1rem);
    }
    
    .card {
        padding: var(--space-sm);
    }
    
    .btn {
        padding: var(--space-xs) var(--space-sm);
        font-size: clamp(12px, 2.5vw, 13px);
        min-height: 40px;
    }
}

/* ===== GRID SYSTEM ===== */
.grid {
    display: grid;
    gap: var(--space-lg);
}

.grid-cols-1 { grid-template-columns: repeat(1, 1fr); }
.grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
.grid-cols-3 { grid-template-columns: repeat(3, 1fr); }
.grid-cols-4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 1024px) {
    .grid-cols-4 { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 768px) {
    .grid-cols-3,
    .grid-cols-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
    .grid-cols-2,
    .grid-cols-3,
    .grid-cols-4 { grid-template-columns: 1fr; }
}
/* === CANVAS === */
#matrixCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}
/* ===== UTILITY CLASSES ===== */
.hidden { display: none; }
.block { display: block; }
.inline { display: inline; }
.inline-block { display: inline-block; }

.relative { position: relative; }
.absolute { position: absolute; }
.fixed { position: fixed; }
.sticky { position: sticky; }

.w-full { width: 100%; }
.h-full { height: 100%; }
.min-h-screen { min-height: 100vh; }

.rounded { border-radius: var(--radius-md); }
.rounded-lg { border-radius: var(--radius-lg); }
.rounded-full { border-radius: var(--radius-full); }

.shadow { box-shadow: var(--shadow-secondary); }
.shadow-lg { box-shadow: var(--shadow-primary); }

/* ===== ACCESSIBILITY ===== */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ===== FOCUS STYLES ===== */
.btn:focus,
.form-input:focus,
.form-textarea:focus,
.form-select:focus,
a:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* ===== PRINT STYLES ===== */
@media print {
    .main-right,
    .glowing-circle,
    .circle-image {
        display: none;
    }
    
    body {
        background: white;
        color: black;
    }
    
    .hero-title,
    .hero-subtitle {
        color: black;
        text-shadow: none;
    }
    
    .card {
        border: 1px solid #ccc;
        box-shadow: none;
    }
}

/* ===== DARK MODE SUPPORT ===== */
@media (prefers-color-scheme: dark) {
    :root {
        --background-primary: #000000;
        --background-secondary: rgba(0, 0, 0, 0.8);
        --background-tertiary: rgba(0, 0, 0, 0.95);
    }
}

/* ===== HIGH CONTRAST MODE ===== */
@media (prefers-contrast: high) {
    :root {
        --primary-color: #00ff00;
        --text-primary: #ffffff;
        --border-primary: #00ff00;
    }
    
    .card {
        border-width: 2px;
    }
    
    .btn {
        border-width: 2px;
    }
}

