Package export does not work like I expect

In reply to dave_59:
Hello Dave,
Hope you doing good
I have a dummy uvm environment with all components like for environment(seqr,driver,monitor,scoreboard) and a package file (env_pkg.sv) ,

for sequences( seq_pkg.sv) and for tests(test_pkg.sv)

when i try to include these in top file

module top;

 import uvm_pkg::*;
`include "uvm_macros.svh"             //UVM Library Package
 import seq_pkg::*;
 import env_pkg::*;
logic reset;
logic clk;
axi_intf intf(.clk(clk),.reset(reset));
 
initial
begin
  clk =0;
  reset =0;
  #10ns clk =1;
  reset =1;
end    

always #10 clk = ~clk;

//DUT dut_inst(.clk(intf.clk),.reset(intf.reset));

initial begin
uvm_config_db#(virtual axi_intf)::set(null, "uvm_test_top", "intf", intf);
factory.print();
run_test();

end

Iget error as "Error-[SV-LCM-PND] Package not defined
top.sv, 6
top, “seq_pkg::”
Package scope resolution failed. Token ‘seq_pkg’ is not a package.
Originating module ‘top’.
Move package definition before the use of the package.

Error-[SV-LCM-PND] Package not definedtop.sv, 7
top, “env_pkg::”
Package scope resolution failed. Token ‘env_pkg’ is not a package.
Originating module ‘top’.
Move package definition before the use of the package.
Please guide ,thnks